Skip to main content
Query operators let you control search behavior directly in the q parameter. They work when parseOperators is enabled (the default).

Site operators

Restrict or exclude results from specific domains:
OperatorDescriptionExample
site:Results only from this domainsite:github.com python libraries
-site:Exclude results from this domainmachine learning -site:wikipedia.org
curl "https://search-api.andisearch.com/api/v1/search?q=site:github.com+python+libraries" \
  -H "x-api-key: YOUR_API_KEY"

Term operators

Require or exclude specific terms:
OperatorDescriptionExample
+termTerm must appear in results+python web framework
-termTerm must not appear in resultsapple -fruit

Content operators

Filter by where terms appear:
OperatorDescriptionExample
filetype:Filter by file extension (alias: ext:)filetype:pdf machine learning
intitle:Term must be in the page titleintitle:tutorial react hooks
inurl:Term must be in the URLinurl:api documentation
intext:Term must be in the body text (alias: inbody:)intext:benchmarks LLM performance
curl "https://search-api.andisearch.com/api/v1/search?q=filetype:pdf+machine+learning+survey" \
  -H "x-api-key: YOUR_API_KEY"

Date operators

Filter results by publication date:
OperatorDescriptionExample
after:Results published after this dateafter:2025-01-01 AI news
before:Results published before this datebefore:2024-06-01 product launch
Dates use YYYY-MM-DD format.

Language operator

Filter results by language:
OperatorDescriptionExample
lang:Results in this language (alias: language:)lang:es inteligencia artificial
Uses ISO 639-1 two-letter language codes.

Combining operators

Operators can be combined in a single query:
curl "https://search-api.andisearch.com/api/v1/search?q=site:github.com+filetype:md+intitle:readme+machine+learning+after:2025-01-01" \
  -H "x-api-key: YOUR_API_KEY"
This searches GitHub for markdown README files about machine learning published after January 2025.

Disabling operator parsing

If your query contains text that looks like an operator but shouldn’t be treated as one, set parseOperators=false:
curl "https://search-api.andisearch.com/api/v1/search?q=how+to+use+site:+prefix+in+DNS&parseOperators=false" \
  -H "x-api-key: YOUR_API_KEY"
When disabled, the entire query is treated as literal text.