Search operators
What Search operators means
Search operators change how a query is matched. In Google, quotes match an exact phrase, a minus sign excludes a word, site: limits results to one domain, and OR matches either of two terms. They work in the search box and in any API that passes the query through.
Operators are how monitoring and research tools make broad searches precise: "Acme Corp" -jobs finds mentions of a company without its job ads, and site:example.com lists the pages Google has for a domain.
Clair's Google Search and Google News APIs pass q to Google as typed, so operators work in both.
Google search operators, with examples
Write operators without a space after the colon: site:nytimes.com works, site: nytimes.com does not. Operators combine freely in one query.
| Operator | What it does | Example |
|---|---|---|
| "…" | Matches the exact word or phrase | "tallest building" |
| - | Excludes a word | jaguar speed -car |
| site: | Limits results to a site, domain, or URL prefix | site:youtube.com cat videos |
| filetype: | Limits results to one file type | photoelectric effect paper filetype:pdf |
| before: | Pages last updated before a date | astronomy discovery before:2025/11/01 |
| after: | Pages last updated after a date | avengers endgame after:2020 |
| OR | Matches either term; write it in capitals | marathon OR triathlon |
Undocumented and retired operators
Operators such as intitle:, inurl:, and intext: still change results in practice, but Google does not document them on its help page and does not promise how they behave. Use them to explore, not to count.
cache: no longer works. Google retired its cached copies of pages in February 2024; for an old version of a page, use the Internet Archive's Wayback Machine.
Using search operators through an API
Operators are part of the query text, so a SERP API passes them through to Google. In Clair's Google Search and Google News APIs, q is sent as typed: q=site:stripe.com pricing returns Stripe's own pages about pricing, and q="acme corp" -jobs leaves job ads out. URL-encode the query so the quotes and colons arrive intact.
How it appears in a response
GET /v1/google-search?q=albert+einstein&country=us&page=1 · query
{
"q": "albert einstein",
"language": "en",
"country": "us",
"page": 1
}Common questions
Does site: list every page Google has indexed?
No. site: results are a sample, not a complete index count. For your own site, the page indexing report in Google Search Console is the reliable source.
How do I search a date range on Google?
Combine after: and before: in one query, such as avengers endgame after:2019-03-01 before:2019-03-05. Both take a year or a full date.

Glassdoor API
Crunchbase API
Instagram API
Bloomberg API
Associated Press API