Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Exa Search

API 文件
https://api.sandbase.ai/v1/api/exa/search

Neural web search for AI apps and agents. Ask in natural language and get the most relevant pages, with optional highlights, summaries or full text, domain filters and date ranges.

價格
$0.0105美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 10 個選填

Playground

輸入
The natural-language search query.
Search mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.
1100
Number of results to return. 範圍:1 到 100。
Optional hint about the kind of pages to prioritize.
Only return results from these domains.
Exclude results from these domains.
Only return results published on or after this ISO 8601 date. 格式:ISO 8601 日期與時間。
Only return results published on or before this ISO 8601 date. 格式:ISO 8601 日期與時間。
Content options to return alongside each result.
JSON Schema used to synthesize a structured output from the results.
Instruction that guides how the structured output is generated.
輸出範例
回應outputs · 6.2 KB · 110 行
{
  "costDollars": {
    "search": {
      "neural": 0.007
    },
    "total": 0.007
  },
  "requestId": "4e501adfb0964e93aeb79ea00e2fda20",
  "resolvedSearchType": "",
  "results": [
    {
      "highlights": [
        "Recognizing the coupling between ferroelectricity and chirality in optically active ferroelectrics opens a route for manipulating chirality via ferroelectricity under an external electric field, enabling control over chirality-dependent quantum states. Here, we report the experimental demonstration of the coupling between ferroelectricity and phonon chirality in the molecular ferroelectric triglycine sulfate. By electrically switching the crystal chirality, we achieve reversible and device-compatible control of phonon chirality, as revealed by in situ time-resolved magneto-optical Kerr effect …"
      ],
      "id": "https://www.nature.com/articles/s41467-026-73317-4",
      "image": "https://media.springernature.com/m685/springer-static/image/art%3A10.1038%2Fs41467-026-73317-4/MediaObjects/41467_2026_73317_Fig1_HTML.png",
      "publishedDate": "2026-05-29T00:00:00.000Z",
      "title": "Coupled ferroelectricity and phonon chirality | Nature Communications",
      "url": "https://www.nature.com/articles/s41467-026-73317-4"
    },
    {
      "author": "Hao Chen, Weikang Wu, Sun KangTai, Shengyuan A. Yang, Lifa Zhang",
      "entities": [
        {
          "id": "https://exa.ai/library/publication/bnnscj7n6cy",
          "properties": {
            "abstract": "Chiral phonons have attracted increasing attention, as they play important roles in many different systems and processes. However, a method to control phonon chirality by external fields is still lacking. Here, we propose that in displacement-type ferroelectric materials, an external electric field can reverse the chirality of chiral phonons via ferroelectric switching. Using first-principles calculations, we demonstrate this point in the well-known two-dimensional ferroelectric In2Se3. This reversal may lead to a number of electrically switchable phenomena, such as chiral phonon induced magne…",
            "authors": [
              {
                "id": null,
                "name": "Hao Chen"
              },
              {
                "id": null,
                "name": "Weikang Wu"
              },
              {
                "id": null,
                "name": "Sun KangTai"
              },
              "… 2 more items in the full response"
            ],
            "citationCount": 5,
            "date": "2024-02-26",
            "doi": "10.1063/5.0196731",
            "language": "en",
            "referenceCount": 38,
            "title": "Electrically controllable chiral phonons in ferroelectric materials",
            "type": "article",
            "year": 2024
          },
          "type": "publication",
          "version": 1
        }
      ],
      "highlights": [
        "# Electrically controllable chiral phonons in ferroelectric materials\n...\nChiral phonons have attracted increasing attention, as they play important roles in many different systems and processes. However, a method to control phonon chirality by external fields is still lacking. Here, we propose that in displacement-type ferroelectric materials, an external electric field can reverse the chirality of chiral phonons via ferroelectric switching. Using first-principles calculations, we demonstrate this point in the well-known two-dimensional ferroelectric In2Se3. This reversal may lead to a number…"
      ],
      "id": "https://exa.ai/library/publication/bnnscj7n6cy",
      "publishedDate": "2024-02-26T00:00:00.000Z",
      "title": "Electrically controllable chiral phonons in ferroelectric materials",
      "url": "https://doi.org/10.1063/5.0196731"
    },
    {
      "author": "Hiroki Ueda, Abhishek Nag, Carl P. Romao, Mirian García‐Fernández, Ke‐Jin Zhou, U. Staub",
      "entities": [
        {
          "id": "https://exa.ai/library/publication/1s4tb68ndjt",
          "properties": {
            "abstract": "Abstract Quasiparticles describe collective excitations in many-body systems, and their symmetry classification is of fundamental importance for physical processes such as excited states, transport phenomena, and phase transitions. Recent studies have introduced chirality as an additional degree of freedom in condensed matter physics, leading to a range of novel phenomena. Among these, chiral phonons are of special interest because they carry angular momentum and therefore intrinsically break time reversal symmetry, which non-trivially bridges the spin system with the lattice. Here, we directl…",
            "authors": [
              {
                "id": null,
                "name": "Hiroki Ueda"
              },
              {
                "id": null,
                "name": "Abhishek Nag"
              },
              {
                "id": null,
                "name": "Carl P. Romao"
              },
              "… 3 more items in the full response"
            ],
            "citationCount": 7,
            "date": "2025-12-05",
            "doi": "10.1038/s41467-025-66911-5",
            "language": "en",
            "referenceCount": 33,
            "title": "Chiral phonons in polar LiNbO3",
            "type": "article",
            "year": 2025
          },
          "type": "publication",
          "version": 1
        }
      ],
      "highlights": [
        "Quasiparticles describe collective excitations in many-body systems, and their symmetry classification is of fundamental importance for physical processes such as excited states, transport phenomena, and phase transitions. Recent studies have introduced chirality as an additional degree of freedom in condensed matter physics, leading to a range of novel phenomena. Among these, chiral phonons are of special interest because they carry angular momentum and therefore intrinsically break time reversal symmetry, which non-trivially bridges the spin system with the lattice. Here, we directly prove t…"
      ],
      "id": "https://exa.ai/library/publication/1s4tb68ndjt",
      "publishedDate": "2025-12-05T00:00:00.000Z",
      "title": "Chiral phonons in polar LiNbO3",
      "url": "https://doi.org/10.1038/s41467-025-66911-5"
    },
    "… 2 more items in the full response"
  ],
  "searchTime": 952.1
}

範例

選擇一個範例,將其輸入與結果載入 playground。

API README

Exa Search API

Exa Search returns web pages ranked by meaning for a natural-language query. It needs a query and can also return highlights, summaries or full text for each result.

Use cases

  • Feed relevant web pages into an LLM agent as sources for an answer.
  • Search only openai.com or other chosen domains to find official documentation.
  • Find news or research papers on a topic within a set publish-date window.
  • Pull highlight snippets for many pages to check which ones match a topic before reading them in full.

The Python Exa search example with domain filters and highlights shows how to request sources using the documented SandBase envelope. For an independently generated answer, inspect the Exa Answer request reference; the Search filter settings are not automatically carried into that call.

Request

curl -X POST "https://api.sandbase.ai/v1/api/exa/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "OpenAI Codex documentation", "type": "fast", "numResults": 3, "contents": {"highlights": true}}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesThe natural-language search query.
categorystringNoOptional hint about the kind of pages to prioritize.
contentsobjectNoContent options to return alongside each result.
endPublishedDatestringNoOnly return results published on or before this ISO 8601 date.
excludeDomainsarrayNoExclude results from these domains.
includeDomainsarrayNoOnly return results from these domains.
numResultsintegerNoNumber of results to return.
outputSchemaobjectNoJSON Schema used to synthesize a structured output from the results.
startPublishedDatestringNoOnly return results published on or after this ISO 8601 date.
systemPromptstringNoInstruction that guides how the structured output is generated.
typestringNoSearch mode. auto lets Exa choose; the deep modes trade latency for higher-quality retrieval.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "requestId": "d90a84d1907c9964235784d496c7fe4b",
  "resolvedSearchType": "",
  "results": [
    {
      "highlights": [
        "# Codex — full documentation\n\n> Single-file Markdown export of ChatGPT docs for …"
      ],
      "id": "https://learn.chatgpt.com/docs/llms-full.txt",
      "title": "",
      "url": "https://learn.chatgpt.com/docs/llms-full.txt"
    }
  ],
  "searchTime": 407.6
}

Response fields

FieldMeaning
requestIdID of this search request.
resolvedSearchTypeSearch mode that ran. It can be an empty string, as in this fast request.
results[]List of matching pages, ordered by relevance.
results[].url / results[].idPage URL. In this response id has the same value as url.
results[].titlePage title. It can be an empty string when the page has no title.
results[].highlights[]Text snippets from the page that match the query. These appear when contents.highlights is true, and long snippets are cut.
searchTimeTime the search took. The response shows no unit, so check it against your own timing before relying on it.

Notes

  • Set numResults between 1 and 100 to control how many results come back. The default is 10.
  • Set contents.text, contents.summary or contents.highlights to true to get page content in each result. Without it, results hold only the basic fields.
  • Use includeDomains or excludeDomains with startPublishedDate and endPublishedDate (ISO 8601) to narrow results.
  • To read the full content of known URLs, call Exa Contents. To get a direct answer with sources, call Exa Question Answering.

Pricing

$0.0105 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Exa Search此 API
Exa
每次呼叫 $0.0105JSON
Exa每次呼叫 $0.0075JSON
Exa每次呼叫 $0.0045JSON

指南:Exa alternatives: compare Tavily and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

問題

常見問題

我要如何使用 Exa Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/exa/search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Exa Search API 的費用是多少?

每次 $0.0105,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Exa Search API 接受哪些參數?

必要:query (string)。 選填:type(auto, fast, instant, deep-lite, deep, deep-reasoning 之一), numResults (integer), category(company, research paper, news, personal site, financial report, people 之一), includeDomains (array), excludeDomains (array) 和 startPublishedDate (string),以及另外 4 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Exa Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Exa 開發者帳號或 API 金鑰嗎?

不需要。Exa Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Exa API 存取權。

我要如何將 Exa 搜尋限制在指定網域並要求 highlights?

使用 includeDomains 將結果限制在指定網域,或使用 excludeDomains 排除網域。以 contents: {"highlights": true} 來要求摘要。這些是 Search 參數,與查詢文字分開。來源 URL 或摘要只是供驗證的起點,不是主張正確的證明。請依照目前參考文件確認支援的組合與回傳欄位。

numResults 會提供分頁或保證要求的頁數嗎?

numResults 只控制請求的結果數;它不是頁碼,也不是續接游標。目前 SandBase Search 參考文件未列出游標或偏移參數。結果可能少於要求數。不要自行加入未列出的分頁欄位,也不要把發佈日期篩選當成即時完整性保證。