Skip to navigation

Search and research

Unified surface for retrieval-style models: Exa, Tavily, Linkup, Perplexity Search. Each model has a different parameter surface; see the per-model docs for the full schema (e.g. exa-search exposes 43 params including search_type, category, user_location, output_schema, max_age_hours, subpages, summary_query, code_tokens). With output_schema, an exa-search response also carries output, a synthesized answer with the sources for each field.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
modelstringRequired

Search model id, for example tavily-search or exa-search.

querystringRequired
What to search for.

Response

Sources / answer / structured data depending on model.

objectstringOptional
modelstringOptional
querystringOptional
resultslist of objectsOptional

The results. On exa-search each has title, url, id, score, published_date, author and favicon, and when present image, text, highlights, summary, subpages, entities (company, person or publication data) and extras (the links, images and code blocks a request asks for).

answerstringOptional

A synthesized answer when the model returns one. On exa-search: the text of output (an object output as a JSON block, left out with disable_formatting), or the code context of operation: code.

outputobjectOptional

exa-search with output_schema: the synthesized content, text or an object matching the schema, and the grounding of each field.

noticeslist of objectsOptional

exa-search: notes on how the results were produced, written to be passed to a model with them, such as RESTRICTIONS_RELAXED when a site or exact-phrase restriction in the query matched nothing.

usageobjectOptional

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error