Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Exa Search

Dokumentasi 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.

Harga
$0.0105USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 10 opsional

Playground

Input
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. Rentang: 1 hingga 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. Format: tanggal dan waktu ISO 8601.
Only return results published on or before this ISO 8601 date. Format: tanggal dan waktu 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.
OutputContoh
Responsoutputs · 6.2 KB · 110 baris
{
  "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
}

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Exa SearchAPI ini
Exa
$0.0105 per panggilanJSON
Exa$0.0075 per panggilanJSON
Exa$0.0045 per panggilanJSON

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

Pertanyaan

FAQ

Bagaimana cara menggunakan API Exa Search?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/exa/search dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Exa Search?

$0.0105 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Exa Search?

Wajib: query (string). Opsional: type (salah satu dari auto, fast, instant, deep-lite, deep, deep-reasoning), numResults (integer), category (salah satu dari company, research paper, news, personal site, financial report, people), includeDomains (array), excludeDomains (array) dan startPublishedDate (string) dan 4 lainnya. Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Exa Search?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Exa?

Tidak. Exa Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Exa secara terpisah.

Bagaimana cara membatasi pencarian Exa ke domain tertentu dan meminta highlight?

Gunakan includeDomains untuk membatasi hasil ke domain tertentu, atau excludeDomains untuk mengecualikan domain. Minta cuplikan dengan contents: {"highlights": true}. Ini adalah parameter Search, terpisah dari teks kueri. URL sumber atau cuplikan adalah titik awal untuk verifikasi, bukan bukti bahwa sebuah klaim benar. Ikuti referensi terbaru untuk kombinasi yang didukung dan field yang dikembalikan.

Apakah numResults menyediakan paginasi atau menjamin jumlah halaman yang diminta?

numResults mengontrol jumlah hasil yang diminta; itu bukan nomor halaman atau cursor lanjutan. Referensi Search SandBase saat ini tidak mencantumkan parameter cursor atau offset. Hasil bisa lebih sedikit dari yang diminta. Jangan menambahkan field paginasi yang tidak tercantum atau menganggap filter tanggal publikasi sebagai jaminan kelengkapan real-time.