Configure the set of domains included or excluded from your web research results.
This feature is currently in beta and requires passing the parallel-beta: source-policy-2025-07-03
header.
Source Policy is available for both the Parallel Task API and Search API - giving you granular control over the sources Parallel processors has access to. This feature enables you to allow or disallow specific domains to tailor search relevance.
Configure domain filtering using these parameters:
Parameter | Type | Description |
---|---|---|
include_domains | Array of strings | List of domains to allow. Only sources from these domains will be included in results. |
exclude_domains | Array of strings | List of domains to block. Sources from these domains will be excluded from results. |
When you specify a domain like example.com
, it will match the base domain and all its subdomains like example.com
, www.example.com
, blog.example.com
, api.example.com
include_domains
or exclude_domains
. Do not use both in one query. If you set both parameters, only domains in include_domains
will be considered.example.com
) and omit any schemes (http://
, https://
) or subdomain prefixes such as (www.
).