Skip to main content
All parameters are passed as query string parameters on the GET /api/v1/search endpoint.

Core parameters

ParameterTypeDefaultDescription
qstringrequiredSearch query string. Also accepts a JSON array of up to 5 queries (e.g., ["query one", "query two"]).
limitinteger10Maximum results to return (minimum 1)
offsetinteger0Results to skip for pagination
depthstringfastSearch mode: fast or deep
intentstringautoForce search intent. See intent values below.

Intent values

When not set, the API auto-detects intent from the query. You can force a specific intent using common aliases:
AliasDescriptionAliasDescription
searchGeneral web searchnewsLatest news results
videoVideo searchimagesImage search
weatherWeather datacalculateMath computation
wikiWikipedia/knowledgeknowledgeAcademic knowledge
codeProgramming resultsrecipeRecipe results
placeBusiness searchplacesLocation search
questionsQ&A resultstimeTime queries
The API also accepts full intent names (e.g., FallbackSearchIntent, VideoSearchIntent) and resolves matches flexibly through exact match, case-insensitive match, and substring match.

Output parameters

ParameterTypeDefaultDescription
formatstringjsonResponse format: json or context. The context format returns results as markdown text, suitable for passing to language models.
metadatastringbasicMetadata level: basic or full. With full, results include contentType and reader data.
extractsbooleanfalseInclude longer text extracts from result pages

Filtering parameters

ParameterTypeDefaultDescription
safebooleanfalseEnable safe search filtering. Pass true to filter explicit content.
countrystringUSISO 3166-1 country code (e.g., US, GB, DE)
languagestringenISO 639-1 language code (e.g., en, es, fr)
unitsstringautoUnit system for weather/calculations: metric, imperial. Defaults based on countryimperial for US, metric for all others.

Date filtering

ParameterTypeDescription
dateRangestringRelative range: day, week, month, year, 24h, 7d, 30d, 90d, 1y
dateFromdateResults published on or after this date (YYYY-MM-DD)
dateTodateResults published on or before this date (YYYY-MM-DD)
Use either dateRange for relative filtering or dateFrom/dateTo for absolute date ranges. See filtering for details.

Domain filtering

ParameterTypeDescription
includeDomainsstringComma-separated domains to restrict results to
excludeDomainsstringComma-separated domains to exclude from results
Both support wildcards: *.example.com matches all subdomains. See filtering for details.

Term filtering

ParameterTypeDescription
includeTermsstringComma-separated terms that must appear in results
excludeTermsstringComma-separated terms to exclude from results

Content filtering

ParameterTypeDescription
filetypestringFile extension to filter by (e.g., pdf, doc)
intitlestringTerm that must appear in the page title
inurlstringTerm that must appear in the page URL
intextstringTerm that must appear in the page body

Behavior parameters

ParameterTypeDefaultDescription
noCachebooleanfalseBypass cached results
parseOperatorsbooleantrueParse query operators from the query string

Examples

# First page
curl "https://search-api.andisearch.com/api/v1/search?q=machine+learning&limit=10" \
  -H "x-api-key: YOUR_API_KEY"

# Second page
curl "https://search-api.andisearch.com/api/v1/search?q=machine+learning&limit=10&offset=10" \
  -H "x-api-key: YOUR_API_KEY"

Deep search with extracts

curl "https://search-api.andisearch.com/api/v1/search?q=climate+change+effects&depth=deep&extracts=true" \
  -H "x-api-key: YOUR_API_KEY"

Filtered by date and domain

curl "https://search-api.andisearch.com/api/v1/search?q=product+launch&dateRange=month&includeDomains=techcrunch.com,theverge.com" \
  -H "x-api-key: YOUR_API_KEY"
curl -G "https://search-api.andisearch.com/api/v1/search" \
  --data-urlencode 'q=["artificial intelligence", "machine learning"]' \
  -H "x-api-key: YOUR_API_KEY"