Answer
Get a written answer grounded in Tako knowledge cards and the web
Notes
- To authenticate, you’ll need a Tako API key. It’s best practice to store it as an environment variable to avoid hardcoding sensitive credentials in your code.
- Answer retrieves the same results as Search and adds a written
answergrounded in them. It takes the same request body as Search — the response adds the synthesizedansweralongside the cards and web results. - Use Answer when you want prose to show a user; use Search when you only need the underlying cards and web results.
POST /v1/answer.Choosing sources
sources controls where the answer is grounded — an object whose keys are the sources to ground in. A source is used only if its key is present; omit sources to use the default (both sources, 5 results each):
{ "data": {} }— grounded in Tako’s curated knowledge graph.{ "web": {} }— grounded in the live web.{ "data": {}, "web": {} }— both (same as omittingsources).
tako is accepted as a synonym for data.
Each source takes optional per-source settings: count (1–20, default 5) and include_contents (inline the underlying data). The curated-data source also supports defer_data_retrieval.Authorizations
Body
Natural language search query.
"Intel vs Nvidia headcount since 2013"
Search effort level: 'fast' (default), 'instant', or 'deep'.
fast, instant, deep Per-source settings. An index is searched iff its key is present; defaults to {data:{}, web:{}} (data + web, count 5 each). The legacy key 'tako' is accepted as a synonym for 'data'.
ISO 3166-1 alpha-2 country code for localization.
BCP-47 locale tag for language/formatting.
IANA timezone (e.g. 'America/New_York').
Settings controlling the response shape.
Response
Synthesized answer grounded in Tako and/or web results
Response for POST /api/v1/answer — synthesized answer + retrieval.
Synthesized text answer.
Tako cards backing the answer; cards[0] is the lead card — the best one to show alongside the answer.
Total quoted USD cost of the data inlined on this response — the summed per-fetch price of the results whose payload was populated (one charge per distinct extracted web URL; Tako card CSV is free). This is the QUOTE, not necessarily the amount billed: on a depleted prepaid (PAYG) balance the charge is clamped to the remaining balance, so the amount actually drawn can be less. A result's own cost is a per-fetch quote present whenever it is downloadable, so a result that was requested but whose extraction was skipped or failed still carries its quote; that un-inlined quote is excluded here. 0 when no contents were inlined.