For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

AnySearch Parallel Search

Runs multiple AnySearch queries in a single block (client-side concurrency, max 5 queries). Runs anonymously or with an ANYSEARCH_API_KEY credential - see the AnySearch Search page for setup.

What it is

Runs several AnySearch queries in parallel (client-side concurrency via asyncio)

How it works

The block fans out up to 5 queries client-side with asyncio.gather - each query is an independent POST to /v1/search, so this is client-side concurrency, not a server-side batch endpoint (the AnySearch REST surface does not expose one). Results return grouped per query in input order; a failing query does not fail the batch - the error field on that group carries the message while the other groups still return results. The shared vertical inputs apply to every query in the batch: sub_domain (e.g. finance.quote) is sent as tag and sub_domain_params as params; setting domain without sub_domain, or a sub_domain outside the domain prefix, is rejected by input validation before any request is sent. Providing more than five queries, or an empty list, is likewise rejected by input validation (queries allows 1-5 entries).

Inputs

Input
Description
Type
Required

auth

Anonymous tier (lower rate limit, no key) or an AnySearch API key credential

"api_key" | "anonymous"

No

queries

The search queries to run in parallel (max 5)

List[str]

Yes

max_results

Maximum number of results per query

int

No

domain

Restrict every query to a vertical domain

"academic" | "agriculture" | "business" | "code" | "energy" | "environment" | "film" | "finance" | "gaming" | "general" | "health" | "ip" | "legal" | "resource" | "security" | "social_media" | "travel"

No

sub_domain

Sub-domain inside the domain, applied to every query (e.g. finance.quote)

str

No

sub_domain_params

Structured parameters for the shared sub_domain

Dict[str, Any]

No

Outputs

Output
Description
Type

error

Error message if the operation failed

str

results

One result group per query, in input order

List[AnySearchQueryResults]

Possible use case

Multi-angle research: Fan out 2-5 phrasings or sub-topics of one question in parallel, then merge the groups for an LLM synthesis step.

Single-vertical sweep: Run several phrasings inside one shared vertical - e.g. domain=finance with sub_domain=finance.quote and sub_domain_params {"type": "stock", "symbol": "NVDA"} applied to earnings, guidance, and analyst-rating queries at once.

Bounded batch retrieval: Fetch up to 5 independent lookups in one node while sharing the same credential and result shape.


Last updated

Was this helpful?