Search
Perform a search with an Exa prompt-engineered query and retrieve a list of relevant results. Optionally get contents.
Request body
Example request
{
"includeDomains": [
"arxiv.org",
"exa.ai/blog"
],
"excludeDomains": [
"docs.python.org/3"
],
"startCrawlDate": "2023-01-01T00:00:00.000Z",
"endCrawlDate": "2023-12-31T00:00:00.000Z",
"startPublishedDate": "2023-01-01T00:00:00.000Z",
"endPublishedDate": "2023-12-31T00:00:00.000Z",
"numResults": 10,
"context": true,
"moderation": true,
"contents": {
"text": {
"maxCharacters": 1000,
"verbosity": "standard",
"includeSections": [
"body",
"header"
],
"excludeSections": [
"navigation",
"footer",
"sidebar"
]
},
"highlights": {
"query": "Key advancements",
"dynamic": true,
"maxCharacters": 2000,
"numSentences": 1,
"highlightsPerUrl": 1
},
"summary": {
"query": "Main developments",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Title",
"type": "object",
"properties": {
"Property 1": {
"type": "string",
"description": "Description"
},
"Property 2": {
"type": "string",
"enum": [
"option 1",
"option 2",
"option 3"
],
"description": "Description"
}
},
"required": [
"Property 1"
]
}
},
"extras": {
"links": 1,
"imageLinks": 1
},
"context": true,
"livecrawl": "preferred",
"livecrawlTimeout": 1000,
"maxAgeHours": 24,
"subpages": 1
},
"query": "Latest developments in LLM capabilities",
"additionalQueries": [
"LLM advancements",
"large language model progress"
],
"type": "auto",
"category": "publication",
"userLocation": "US",
"compliance": "hipaa",
"systemPrompt": "Prefer official sources and avoid duplicate results."
}Response
OK
Example response
{
"requestId": "b5947044c4b78efa9552a7c89b306d95",
"results": [
{
"title": "A Comprehensive Overview of Large Language Models",
"url": "https://arxiv.org/pdf/2307.06435.pdf",
"publishedDate": "2023-11-16T01:36:32.547Z",
"author": "Humza Naveed",
"id": "https://arxiv.org/abs/2307.06435",
"image": "https://arxiv.org/pdf/2307.06435.pdf/page_1.png",
"favicon": "https://arxiv.org/favicon.ico",
"text": "Abstract Large Language Models (LLMs) have recently demonstrated remarkable capabilities...",
"highlights": [
"Such requirements have limited their adoption..."
],
"highlightScores": [
0.4600165784358978
],
"summary": "This overview paper on Large Language Models (LLMs) highlights key developments...",
"subpages": [
{
"title": "A Comprehensive Overview of Large Language Models",
"url": "https://arxiv.org/pdf/2307.06435.pdf",
"publishedDate": "2023-11-16T01:36:32.547Z",
"author": "Humza Naveed",
"id": "https://arxiv.org/abs/2307.06435",
"image": "https://arxiv.org/pdf/2307.06435.pdf/page_1.png",
"favicon": "https://arxiv.org/favicon.ico"
}
],
"extras": {
"links": []
}
}
],
"costDollars": {
"total": 0.007,
"search": {
"neural": 0.007,
"keyword": 0.0025
},
"summary": 0.005,
"contents": {
"text": 0.001,
"highlights": 0.001,
"summary": 0.001
}
},
"searchTime": 312.4
}Changes
Changed in 4 of the 8 revisions of this API.2116
- ▲
added
subschema #1subschema #2to the response bodyoneOflist for the response status200(media type: application/json)response-body-one-of-added
- ○
added the new optional request property
contents/anyOf[ContentsOptions]/highlights/anyOf[subschema #1]/oneOf[subschema #2: Advanced highlights options]/dynamicnew-optional-request-property
- ○
removed
subschema #1subschema #2from the response bodyoneOflist for the response status200(media type: application/json)response-body-one-of-removed
- ○
added the optional property
oneOf[subschema #3]/results/items/extras/codeBlocksto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
oneOf[subschema #3]/results/items/extras/imageLinksto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
oneOf[subschema #3]/results/items/extras/richImageLinksto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
oneOf[subschema #3]/results/items/extras/richLinksto the response with the200status (media type: text/event-stream)response-optional-property-added
- ▲
- ●
deleted the
headerrequest parameterExa-Versionrequest-parameter-removed
- ●
- ○
added the new optional
headerrequest parameterExa-Versionnew-optional-request-parameter
- ○
- ▲
added
subschema #1subschema #2to the response bodyoneOflist for the response status200(media type: application/json)response-body-one-of-added
- ○
removed
subschema #1subschema #2from the response bodyoneOflist for the response status200(media type: application/json)response-body-one-of-removed
- ○
added the media type
application/jsonfor the response with the status402response-media-type-added
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the non-success response with the status
500response-non-success-status-added
- ○
added the optional property
oneOf[subschema #5]/costDollars/contentsto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
oneOf[subschema #5]/costDollars/search/keywordto the response with the200status (media type: text/event-stream)response-optional-property-added
- ○
added the optional property
oneOf[subschema #5]/costDollars/summaryto the response with the200status (media type: text/event-stream)response-optional-property-added
- ▲