querystring필수
The question to answer.
https://api.sandbase.ai/v1/api/exa/answerReturns direct answers and cited web sources for a given query. Supports custom retrieval modes, optional full page text, and structured schema definitions.
{
"answer": "In 2025, the top three global electric vehicle manufacturers by sales were BYD, Geely, and Tesla [1]. While specific reporting metrics vary between total new energy vehicles and battery-only electric vehicles, BYD led the global market [2][1][3]. Data indicates BYD secured the top position, followed by Geely in second and Tesla in third, based on total sales volume rankings for the year [1].",
"citations": [
{
"favicon": "https://taitonmai.co.jp/favicon.ico?603d046c9a6fdfbb",
"id": "https://taitonmai.co.jp/en/column/global-ev-sales-ranking-2025",
"image": "https://taitonmai.co.jp/images/column/covers/global-ev-sales-ranking-2025.jpg",
"publishedDate": "2026-04-08T13:20:48.000Z",
"title": "Global EV Sales Ranking 2025 — Country, Manufacturer, and Model Data Compiled | Taitonmai",
"url": "https://taitonmai.co.jp/en/column/global-ev-sales-ranking-2025"
},
{
"favicon": "https://cdn.statcdn.com/static/favicon.svg",
"id": "https://www.statista.com/statistics/541390/global-sales-of-plug-in-electric-vehicle-manufacturers/",
"image": "https://cdn.statcdn.com/Statistic/540000/541390-blank-355.png",
"title": "Global EV market share by manufacturer 2025| Statista",
"url": "https://www.statista.com/statistics/541390/global-sales-of-plug-in-electric-vehicle-manufacturers/"
},
{
"author": "Fred Lambert",
"favicon": "https://electrek.co/wp-content/uploads/sites/3/2017/03/electrek.png?w=32",
"id": "https://electrek.co/2026/01/02/byd-crushes-tesla-all-electric-sales-for-2025-secures-global-bev-crown/",
"image": "https://secure.gravatar.com/avatar/86a7024c9fb5ccc0b3e36a5f98768c0d73b4c154f71a3386f139b087292a081f?s=30&d=identicon&r=g",
"publishedDate": "2026-01-02T19:36:13.000Z",
"title": "BYD officially crushes Tesla in all-electric sales for 2025, secures global BEV crown | Electrek",
"url": "https://electrek.co/2026/01/02/byd-crushes-tesla-all-electric-sales-for-2025-secures-global-bev-crown/"
},
"… 5 more items in the full response"
],
"costDollars": {
"total": 0.005
},
"requestId": "ad3fc3052c9b828fae5b165f8430fe0d"
}예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.
Ask a question and get a short answer grounded in live web search, with the sources Exa used as citations (title, URL, publish date). Optionally return a structured answer that follows your JSON Schema.
outputSchema.Follow the Python guide to Exa searches and cited answers to keep request parameters separate. If you need domain-restricted source discovery rather than an independently generated answer, open the Exa Search request reference.
curl -X POST "https://api.sandbase.ai/v1/api/exa/answer" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "OpenAI"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The question to answer. |
outputSchema | object | No | JSON Schema for a structured answer output. |
text | boolean | No | Include the full page text of each citation. |
type | string | No | Retrieval mode used to gather sources before answering. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"answer": "OpenAI is an American artificial intelligence public benefit corporation based i…",
"citations": [
{
"author": "Unauthorized hacks",
"id": "https://en.wikipedia.org/wiki/OpenAI",
"publishedDate": "2026-10-27T00:00:00.000Z",
"title": "OpenAI",
"url": "https://en.wikipedia.org/wiki/OpenAI"
}
],
"requestId": "f07f69f06d8753ed462b91b73130a835"
}
| Field | Meaning |
|---|---|
answer | The answer text, or an object when outputSchema is set. |
citations[] | Sources: title, url, publishedDate, author, and text when requested. |
text: true to include each citation's page text, for example to verify the answer.$0.0075 per successful call. Failed calls, including lookups whose target does not exist, are not charged. It is included in the daily free quota of each organization.
빌드를 시작하세요
통합 인증 및 사용량 추적이 있는 플랫폼 API 엔드포인트입니다.
curl -X POST "https://api.sandbase.ai/v1/api/exa/answer" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "Which manufacturers had the top three global EV sales in 2025?"
}'서버 환경에 SandBase API 키를 설정하세요. 요청에는 Bearer 인증이 사용됩니다.
export SANDBASE_API_KEY="YOUR_API_KEY"키는 서버에 보관하세요. 브라우저 코드에 노출하지 마세요.
querystring필수The question to answer.
typestringRetrieval mode used to gather sources before answering.
가능한 값: auto, fast, instant, deep-lite, deep, deep-reasoning
textbooleanInclude the full page text of each citation.
outputSchemaobjectJSON Schema for a structured answer output.
이 API의 저장된 예시 응답입니다. 확인할 때 라이브 요청은 실행되지 않습니다.
{
"answer": "In 2025, the top three global electric vehicle manufacturers by sales were BYD, Geely, and Tesla [1]. While specific reporting metrics vary between total new energy vehicles and battery-only electric vehicles, BYD led the global market [2][1][3]. Data indicates BYD secured the top position, followed by Geely in second and Tesla in third, based on total sales volume rankings for the year [1].",
"citations": [
{
"favicon": "https://taitonmai.co.jp/favicon.ico?603d046c9a6fdfbb",
"id": "https://taitonmai.co.jp/en/column/global-ev-sales-ranking-2025",
"image": "https://taitonmai.co.jp/images/column/covers/global-ev-sales-ranking-2025.jpg",
"publishedDate": "2026-04-08T13:20:48.000Z",
"title": "Global EV Sales Ranking 2025 — Country, Manufacturer, and Model Data Compiled | Taitonmai",
"url": "https://taitonmai.co.jp/en/column/global-ev-sales-ranking-2025"
},
{
"favicon": "https://cdn.statcdn.com/static/favicon.svg",
"id": "https://www.statista.com/statistics/541390/global-sales-of-plug-in-electric-vehicle-manufacturers/",
"image": "https://cdn.statcdn.com/Statistic/540000/541390-blank-355.png",
"title": "Global EV market share by manufacturer 2025| Statista",
"url": "https://www.statista.com/statistics/541390/global-sales-of-plug-in-electric-vehicle-manufacturers/"
},
{
"author": "Fred Lambert",
"favicon": "https://electrek.co/wp-content/uploads/sites/3/2017/03/electrek.png?w=32",
"id": "https://electrek.co/2026/01/02/byd-crushes-tesla-all-electric-sales-for-2025-secures-global-bev-crown/",
"image": "https://secure.gravatar.com/avatar/86a7024c9fb5ccc0b3e36a5f98768c0d73b4c154f71a3386f139b087292a081f?s=30&d=identicon&r=g",
"publishedDate": "2026-01-02T19:36:13.000Z",
"title": "BYD officially crushes Tesla in all-electric sales for 2025, secures global BEV crown | Electrek",
"url": "https://electrek.co/2026/01/02/byd-crushes-tesla-all-electric-sales-for-2025-secures-global-bev-crown/"
},
"… 5 more items in the full response"
],
"costDollars": {
"total": 0.005
},
"requestId": "ad3fc3052c9b828fae5b165f8430fe0d"
}더 살펴보기
| API | 가격 | 응답 |
|---|---|---|
Exa | $0.0075 / 호출 | JSON |
Exa | $0.0045 / 호출 | JSON |
Exa | $0.0105 / 호출 | JSON |
가이드:Exa alternatives: compare Tavily and Firecrawl searchExa vs Tavily vs Firecrawl for AI agents
질문
Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/exa/answer에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.
호출당 $0.0075, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.
필수: query (string). 선택: type(auto, fast, instant, deep-lite, deep, deep-reasoning 중 하나), text (boolean) 및 outputSchema (object). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.
같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.
아니요. Exa Question Answering은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Exa API 액세스를 별도로 신청할 필요는 없습니다.
아니요. 인용은 답변에 사용된 웹 출처를 식별할 뿐, 사실 정확성 증명서는 아닙니다. 출처를 열어 날짜와 맥락을 확인하고 해당 주장을 뒷받침하는지 검증하세요. 현재 README는 answer와 citations를 응답 필드로 설명하지만, 축약된 예시가 모든 실행에서 모든 출처나 필드가 항상 존재함을 보장하지는 않습니다.
현재 SandBase Answer 참조에는 query, type, text, outputSchema만 나와 있습니다. includeDomains나 Search의 contents 파라미터는 없습니다. 두 엔드포인트는 별도 요청이므로, 이전 Search가 이 Answer를 자동으로 제한하지는 않습니다. 필요할 때는 text: true로 인용용 페이지 텍스트를 요청하고, 실제로 반환된 출처를 확인하세요.