Search
Search Tako knowledge cards and the web with a natural language query
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.
- Search returns Tako knowledge cards and web results for a natural language query — the results themselves, with no written answer on top. Use it when you want to render or post-process the cards and web results directly.
- Want a written answer over the same results? Use Answer — it takes the same request body and adds a synthesized
answer.
Choosing sources
sources controls where results come from — an object whose keys are the sources to search. A source is searched only if its key is present; omit sources to use the default (both sources, 5 results each):
{ "data": {} }— Tako knowledge cards from the curated knowledge graph.{ "web": {} }— web results.{ "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.
content descriptor. Pass that result’s URL to Contents to download it — a CSV for a Tako card, or extracted text for a web page.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
Fast-pipeline search results (Tako cards + web results)
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.