What Contents does
POST https://tako.com/api/v1/contents takes a result url and returns the full content behind that result — one of two forms, depending on what the URL points to: a structured-data CSV export of a Tako card’s underlying data, or the full extracted text of any other web page. You don’t pass a format — Tako detects the right content from the URL and the response reports what it produced.
Reach for it when you’ve already found the right result with Search or Answer and you want the content itself, fast, in a form you can parse and feed to a model. The CSV is the Tako card’s data and the extracted text is the web page — there’s no synthesis and nothing to re-derive — which makes Contents well suited to agentic loops that need precise, source-grounded inputs quickly.
- Base URL:
https://tako.com/api/ - Auth: send your API key in the
X-API-Keyrequest header (not a bearer token). Create a key in the Tako console. - Prerequisite: a result is downloadable only when it carries a
contentdescriptor in the Search/Answer response. Use that result’s URL here — a card’swebpage_urlor a web result’surl. If a result has nocontentdescriptor, its data isn’t exportable — don’t call Contents on it; the endpoint will refuse it (see Errors).
Minimal working example
This downloads the data behind a Tako card. The defaulturl mode returns a short-lived presigned link; fetch that link to get the CSV.
cURL
Response
Request parameters
The body is aContentsRequest. Only url is required.
Delivery modes
mode controls how the content comes back:
inline mode
What a response looks like
A200 returns a ContentsResponse. contents is a list (today it always carries exactly one item, so the contract stays stable if a result ever yields multiple artifacts).
Each
ContentItem carries:
The CSV behind a Tako card
For a Tako card, the CSV has a header row naming each series exactly as the card sources it, then one row per data point. A time-series card is keyed by an ISO‑8601Timestamp (with timezone offset), one column per series:
When to use Contents
Contents fetches the full content behind a result you already have from Search or Answer — a structured-data CSV export of a Tako card’s underlying series, or the full extracted text of any other web page. Reach for it when:- You’ve already found the result and want the content itself, not prose. There’s no synthesis and nothing to re-derive — the CSV is the card’s data, and the extracted text is the page, ready to use directly.
- It’s a second step, not a search. Contents operates on a URL you already have: find the result with Search or Answer first, then fetch what’s behind it.
- You’re building agentic apps that need precise, source-grounded inputs fast. Pull the exact numbers behind a card, or the full clean text behind a web result, and act on real content instead of scraping it yourself.
include_contents setting.
Common mistakes
Errors
Failures return aBaseAPIError body: { "error_message": "...", "error_type": "..." }.