Request parameter reference
Response fields reference
Timestamps: Search
timestamp is in milliseconds. Fetch timestamp
is in seconds. Divide Search timestamps by 1000 when comparing across
endpoints.Error handling
Search returns400 for invalid requests and 401 for auth failures.
Common gotchas
API reference summary
See the full API reference for
the complete OpenAPI schema.
Sources
Web Search supports seven source types. Each returns a different result shape — always specifysources explicitly when you need
predictable parsing.
Result shapes by source
Theresults[] array shape depends on the source field of each result.
Use this reference when parsing multi-source responses.
- web / news
- scholar-articles
- ai
Standard web and news results share the same shape.
Result ordering and ranking
When querying a single source,
position
reflects the source’s natural ranking order. When querying multiple sources,
results from different sources are interleaved and position may reflect a
per-source rank rather than a global rank. metadata.total_results is the
total count across all requested sources and pages.Parsing multi-source responses
When you query multiple sources at once (or omitsources), the results[]
array can contain items with different shapes. Always check the source
field of each result to determine which fields are available:
Field presence by source
Use this reference to determine which fields are present for each source type.Naming note: The API uses
metadata in two different contexts. The
response-level metadata is an object with total_results,
failed_pages, and empty_pages. The per-result metadata field
(scholar-articles only) is a citation string like "Author - Year - Publisher". Always use the full path (response.metadata vs
result.metadata) to avoid confusion.web, news, social, and
scholar-articles / scholar-articles-enriched:
Academic article fields —
scholar-articles and
scholar-articles-enriched only:
Academic author fields —
scholar-author only:
Deep research mode fields —
ai only:

