exa/contents
exa/contents is a web tool from Exa that runs in the background and returns structured JSON. Pay as you go, with one API key.
Pricing
$0.0013 per page for each content type (text, highlights, summary), subpages included.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 2 minutes
- Run deadline
- 5 minutes
- Longest run, end to end
- 167 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
ids | list | — | Document IDs obtained from searches. |
text | JSON | — | Text extraction options for each result. |
urls | list | — | URLs to crawl (backwards compatible with the |
extras | JSON | — | Extra parameters to pass. |
context | JSON | — | Deprecated. Use |
summary | JSON | — | Summary of the webpage. |
subpages | number (whole) 0 to 100 | 0 | The number of subpages to crawl. The actual number crawled may be limited by system constraints. |
livecrawl | one of never, always, fallback, preferred | — | Deprecated. Use |
compliance | one of hipaa | — | Enterprise-only compliance mode. Set to |
highlights | JSON | — | Text snippets the LLM identifies as most relevant from each page. |
maxAgeHours | number (whole) -1 to 720 | — | Maximum age of cached content, in hours, up to 720. Cached content younger than this is used, and older pages are fetched fresh. |
snapshotAsOf | JSON | — | Return the newest stored version of each page as of this instant. Accepts an ISO 8601 date-time ( |
subpageTarget | JSON | — | Term to find specific subpages of search results. Can be a single string or an array of strings. |
livecrawlTimeout | number (whole) … to 90000 | 10000 | The timeout for livecrawling in milliseconds. |
crawledBeforeDate | text | — | Deprecated. Use |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "exa",
"model": "exa/contents",
"input": {}
}'