X-API-Key header. See Authentication.
Endpoints
Search the Web
Parameters
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. Maximum 2000 characters.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.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.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.Comma-separated list of domains to restrict results to (e.g.
github.com,arxiv.org).
include_domains and exclude_domains together can be at most 1000 characters.Comma-separated list of domains to exclude from results (e.g.
pinterest.com,quora.com).
include_domains and exclude_domains together can be at most 1000 characters.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.Lower date bound in
YYYY-MM-DD format. Use this when you want results after a calendar date cutoff, such as 2026-06-01.Upper date bound in
YYYY-MM-DD format. Use this when you want results before a calendar date cutoff, such as 2026-06-18.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.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.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.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
results[]
SDK Methods
Related
TinySearch Reference
Errors, rate limits, and billing for every endpoint
How-to Guides
Filter by country, site, or date, and paginate