Temporal
Integrate You.com’s APIs into Temporal workflows as durable activities that survive crashes and automatically resume where they left off.
The youdotcom-temporal package provides six activities covering every You.com API, wrapped in a YouPlugin (a Temporal SimplePlugin) for one-line worker setup:
youdotcom_searchfor real-time web and news searchyoudotcom_answerfor synthesized answers with inline citationsyoudotcom_researchfor multi-step research with citationsyoudotcom_research_backgroundfor long-running background researchyoudotcom_finance_researchfor finance-focused researchyoudotcom_contentsfor webpage content extraction
Every activity returns JSON-serializable dicts, maps SDK errors to Temporal error types with correct retryability, and disables the SDK’s built-in HTTP retries so Temporal is the single retry authority.
Getting Started
Configure Credentials
The plugin reads the API key from the YDC_API_KEY environment variable on the worker. Never pass the key as a workflow or activity argument—Temporal records workflow inputs in event history in plaintext.
To override the resolved key programmatically on the worker:
YouConfig also accepts server_url and timeout_seconds (defaults to 300 seconds).
Usage
Plugin path (recommended)
Manual path
Search activity
Answer activity
Research activity
Background research
Finance research activity
Webpage contents
Add YouPlugin() to your worker and all six activities are auto-registered. The plugin also configures the workflow sandbox to pass through the SDK’s runtime modules.
Activities
Error Handling
The SDK’s built-in HTTP retries are disabled so Temporal is the single retry authority. Set RetryPolicy on workflow.execute_activity to control backoff and max attempts.
Resources
Source code, examples, and CHANGELOG
Install with pip install youdotcom-temporal
Official Temporal Python SDK documentation
You.com Python SDK used by the plugin
Full Web Search API parameters and response schema
Full Research API parameters and response schema
Full Answer API parameters and response schema
Full Contents API parameters and response schema
Full Finance Research API parameters and response schema