POST
/
contents
curl -X POST 'https://api.exa.ai/contents' \
  -H 'Authorization: Bearer YOUR-EXA-API-KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "urls": ["https://arxiv.org/abs/2307.06435"],
    "text": true
  }'

Get your Exa API key

Authorizations

Authorization
string
header
required

API key can be provided either via x-api-key header or Authorization header with Bearer scheme

Body

application/json
urls
string[]
required

Array of URLs to crawl (backwards compatible with 'ids' parameter).

ids
string[]
deprecated

Deprecated - use 'urls' instead. Array of document IDs obtained from searches.

text

If true, returns full page text with default settings. If false, disables text return.

highlights
object

Text snippets the LLM identifies as most relevant from each page.

summary
object

Summary of the webpage

livecrawl
enum<string>

Options for livecrawling pages. 'never': Disable livecrawling (default for neural search). 'fallback': Livecrawl when cache is empty (default for keyword search). 'always': Always livecrawl. 'auto': Use an LLM to detect if query needs real-time content.

Available options:
never,
fallback,
always,
auto
livecrawlTimeout
integer
default:
10000

The timeout for livecrawling in milliseconds.

subpages
integer
default:
0

The number of subpages to crawl. The actual number crawled may be limited by system constraints.

subpageTarget

Keyword to find specific subpages of search results. Can be a single string or an array of strings, comma delimited.

extras
object

Extra parameters to pass.

Response

200 - application/json
OK
requestId
string

Unique identifier for the request

results
object[]
costDollars
object