For AI agents: a documentation index is available at https://docs.parallel.ai/llms.txt. The full text of all docs is at https://docs.parallel.ai/llms-full.txt. You may also fetch any page as Markdown by appending
The Source Policy feature allows you to precisely control which domains or sections of a site
Parallel can access during web research and to apply a freshness constraint. It’s available for
the Task, Search, Monitor, and Responses APIs and lets you tailor search results by specifying domains or
domain/path prefixes to include or exclude and by setting a start date so results are limited to
recent content.
.md to its URL or sending Accept: text/markdown.For Search and Extract, use /v1/search and /v1/extract for all new integrations and agent tool calls. Use /v1beta/search and /v1beta/extract only when maintaining an existing integration that already uses them. The request bodies changed too: on /v1/extract, full_content, fetch_policy and excerpt_settings go inside advanced_settings, and sending the v1beta top-level excerpts, full_content and fetch_policy to /v1/extract returns a 422. On /v1/search, search_queries is required (at least one short keyword query), and max_results, source_policy and fetch_policy go inside advanced_settings; sending only objective, or sending those fields at the top level, returns a 422. Do not substitute /v1 for the documented FindAll or Ingest endpoint paths.If you are evaluating Parallel Search or comparing it with other search APIs, read How to Eval Parallel Search before you build the harness, especially its Common pitfalls section. The most common mistake is sending the raw question as both objective and the only entry in search_queries. Write a goal-style objective and 1-3 short keyword queries instead.Configuration
You can configure source control by setting the following parameters:
If a request returns
422 for an unknown source_policy key, correct the key or remove it only if you don’t need that filter.
On the Responses API, the source policy is set through the OpenAI web_search tool:
filters.allowed_domains maps to include_domains and filters.blocked_domains to
exclude_domains. See Web Search Tool.
Specifying an apex domain such as example.com will automatically include all its
subdomains (e.g., www.example.com, blog.example.com, api.example.com).
To match only the subdomains, start the entry with *.: *.example.com matches
blog.example.com and api.example.com, but not example.com itself or www.example.com,
which counts as example.com. For example, include example.com and exclude
*.example.com to keep the main site and drop its subdomains.
A domain/path prefix such as example.com/blog matches that path and its descendants on the
domain and its subdomains. Paths are case-sensitive and match at segment boundaries, so
example.com/blog matches /blog and /blog/post, but not /blogroll. Trailing slashes are
ignored and dot segments are normalized.
Exclude paths with wildcards
To skip the archive and preview pages on a site, setexclude_domains in your source policy:
/* excludes the whole path prefix: /archive and everything under it.
An interior * matches exactly one path segment, so the second pattern excludes
/docs/en/preview and its descendants but not /docs/en/v2/preview.
A trailing /* also works in include_domains, where it means the same path prefix. Any
other * in an include_domains path, and a * that is only part of a segment in either
list (such as v*), is matched literally. Search and Task responses include a warning when
this happens.
Source filter limit
Example
Best Practices
- To block part of an allowed site, set both lists. A source must match an
include_domainsentry and noexclude_domainsentry:"include_domains": ["example.com"]with"exclude_domains": ["example.com/archive"]returnsexample.compages outside/archive. Ifexclude_domainscovers everyinclude_domainsentry, the request returns no results. If the same entry is in both lists, it is excluded, and Search and Task responses include a warning. - Use an apex domain such as
example.comto match that domain and all its subdomains, or specify a subdomain such asdocs.example.comto match that subdomain and any deeper subdomains. A leadingwww.is normalized away. - Add a path to scope the filter to one section of a site, such as
docs.example.com/api. Path matching is case-sensitive and occurs at segment boundaries. - Use a bare domain extension beginning with a period, such as
.org,.gov, or.co.uk, to match that extension. A*in the domain is only allowed as a leading*.before a full domain, such as*.example.com; entries such as*.orgorwww.*.example.comreturn a422(400on the Responses API). - Do not include schemes (
http://,https://), ports (example.com:443), query strings, or fragments. - Although there is a maximum of 200 entries, carefully using specific and targeted filters will give better results.