POST
/
search

Get your Exa API key

Authorizations

x-api-key
string
headerrequired

Body

application/json
query
string
required

The query string.

useAutoprompt
boolean

If true, your query will be converted to a Exa query. Default false. Neural or Auto search only.

type
string

The Type of search, 'keyword', 'neural', or 'auto' (decides between keyword and neural). Default neural.

category
enum<string>

(beta) A data category to focus on, with higher comprehensivity and data cleanliness. Categories right now include company, research paper, news article, linkedin profile, github, tweet, movie, song, personal site, pdf and financial report.

Available options:
company,
research paper,
news,
linkedin profile,
github,
tweet,
movie,
song,
personal site,
pdf,
financial report
numResults
integer

Number of search results to return. Default 10. Max 10 for basic plans. Up to thousands for custom plans.

includeDomains
string[]

List of domains to include in the search. If specified, results will only come from these domains.

excludeDomains
string[]

List of domains to exclude in the search. If specified, results will not include any from these domains.

startCrawlDate
string

Crawl date refers to the date that Exa discovered a link. Results will include links that were crawled after this date. Must be specified in ISO 8601 format.

endCrawlDate
string

Crawl date refers to the date that Exa discovered a link. Results will include links that were crawled before this date. Must be specified in ISO 8601 format.

startPublishedDate
string

Only links with a published date after this will be returned. Must be specified in ISO 8601 format.

endPublishedDate
string

Only links with a published date before this will be returned. Must be specified in ISO 8601 format.

includeText
string[]

List of strings that must be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words.

excludeText
string[]

List of strings that must not be present in webpage text of results. Currently, only 1 string is supported, of up to 5 words.

contents
object

Response

200 - application/json
results
object[]

A list of search results containing title, URL, published date, author, and score.

autopromptString
string

The Exa query created by the autoprompt functionality.