Endpoint
X-API-Key header. See Authentication.
Request
Parameters
string
required
The search query string. Deprecated for domain filtering: the query string still
accepts
site:/-site: operators (e.g. python tutorial site:docs.python.org or
recipe ideas -site:facebook.com -site:youtube.com), but prefer the dedicated
include_domains / exclude_domains params below — they don’t collide with other
query syntax.string
An optional short statement of why you are searching — the underlying goal or task the
results will be used for. A query is often a terse set of keywords; supplying the intent behind
it gives us additional signal to further inform and deliver better-quality results. When omitted,
search behaves exactly as before. Maximum 2000 characters. For example,
Find an open-source library for parsing PDF invoices in Python.string
Country code for geo-targeted results (e.g.
US, GB, FR, DE). When omitted, auto-resolves based on language (e.g. fr → FR). Defaults to US if both location and language are omitted.string
Language code for result language (e.g.
en, fr, de). When omitted, auto-resolves based on location (e.g. FR → fr). Defaults to en if both location and language are omitted.string
Comma-separated list of domains to restrict results to (e.g.
github.com,arxiv.org).string
Comma-separated list of domains to exclude from results (e.g.
pinterest.com,quora.com).number
Freshness window in minutes. Must be an integer from
1 to 5256000 (10 years). Use this when you want recent results relative to now, such as 60 for the last hour.string
Lower date bound in
YYYY-MM-DD format. Use this when you want results after a calendar date cutoff, such as 2026-06-01.string
Upper date bound in
YYYY-MM-DD format. Use this when you want results before a calendar date cutoff, such as 2026-06-18.string
Type of search to perform. One of
"web" (default), "news", or "research_paper". Use "news" to retrieve recent news articles with publisher and date; use "research_paper" to search academic papers with authors, venue, and citation count.number
Lower publication-year bound, inclusive. Must be an integer from
0 to 9999, and no greater than pub_year_max if both are set. Only supported for domain_type=research_paper.number
Upper publication-year bound, inclusive. Must be an integer from
0 to 9999, and no less than pub_year_min if both are set. Only supported for domain_type=research_paper.number
Page number for pagination, starting from
0 (e.g. 2 to retrieve the third page of results). Maximum value is 10.Freshness and date filter rules:
recency_minutes cannot be combined with after_date or before_date. If you send both after_date and before_date, they must be valid YYYY-MM-DD values and after_date must be less than or equal to before_date.Research paper date restrictions:
after_date, before_date, and recency_minutes are not supported for domain_type=research_paper. Use pub_year_min / pub_year_max to scope by publication year instead (e.g. pub_year_min=2017&pub_year_max=2017).Location & language auto-resolution: If only one of
location or language is provided, the other is automatically resolved to the most predominant pairing. For example, setting location=BR without language resolves to language=pt. Setting language=ja without location resolves to location=JP. If neither is set, they default to US and en.Response
Top-level fields
string
The search query that was executed.
object[]
Array of search results.
number
Total number of results returned.
number
The current page number, starting from
0.results[]
number
Position in search results (1-indexed).
string
Domain name of the result.
string
Page title.
string
Text snippet from the result.
string
URL of the result.
string
Publication date. Present for news results and some web results.
string
Publisher name. Present for news results (
domain_type=news).string[]
Author list. Present for academic results (
domain_type=research_paper).string
Journal or conference name. Present for academic results (
domain_type=research_paper).number
Publication year. Present for academic results (
domain_type=research_paper).number
Citation count. Present for academic results (
domain_type=research_paper).string
PDF URL. Present for academic results when a PDF is available (
domain_type=research_paper).SDK Methods
Error Codes
Rate Limits
Limits apply per API key, measured in requests per minute across all requests.
When the limit is exceeded, the API returns
HTTP 429.
Billing
Search requests do not consume credits, but your account still needs access to the Search API.Related
Search Overview
First request, success shape, and product routing
Authentication
API key setup and troubleshooting
Error Codes
Full list of API error codes