Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Exa Search

Documentación de la 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.

Precio
$0.0105USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 10 opcionales

Entorno de pruebas

Entrada
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. Rango: de 1 a 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. Formato: fecha y hora ISO 8601.
Only return results published on or before this ISO 8601 date. Formato: fecha y hora 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.
SalidaEjemplo
Respuestaoutputs · 6.2 KB · 110 líneas
{
  "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
}

Ejemplos

Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.

README de la 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Exa SearchEsta API
Exa
$0.0105 por llamadaJSON
Exa$0.0075 por llamadaJSON
Exa$0.0045 por llamadaJSON

Guías:Exa alternatives: compare Tavily and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents

Preguntas

FAQ

¿Cómo uso la API de Exa Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/exa/search con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Exa Search?

$0.0105 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Exa Search?

Requeridos: query (string). Opcionales: type (una de auto, fast, instant, deep-lite, deep, deep-reasoning), numResults (integer), category (una de company, research paper, news, personal site, financial report, people), includeDomains (array), excludeDomains (array) y startPublishedDate (string) y 4 más. La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Exa Search?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Exa?

No. Exa Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Exa por separado.

¿Cómo limito una búsqueda de Exa a dominios seleccionados y solicito destacados?

Usa includeDomains para restringir los resultados a dominios seleccionados, o excludeDomains para omitir dominios. Solicita extractos con contents: {"highlights": true}. Estos son parámetros de Search, separados del texto de la consulta. Una URL de origen o un extracto es un punto de partida para la verificación, no una prueba de que una afirmación sea correcta. Sigue la referencia actual para las combinaciones admitidas y los campos devueltos.

¿numResults proporciona paginación o garantiza la cantidad solicitada de páginas?

numResults controla la cantidad solicitada de resultados; no es un número de página ni un cursor de continuación. La referencia actual de SandBase Search no lista ningún parámetro de cursor ni offset. Los resultados pueden ser menores de los solicitados. No añadas un campo de paginación no documentado ni trates un filtro por fecha de publicación como una garantía de completitud en tiempo real.