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
Give a large export to an agent
A model reads every row you pass it as tokens, so keep the export out of the model’s context. Write the export to a file, on disk or in memory, and give your agent a code tool that parses it. The tool returns only what the model needs, such as the latest 12 rows or a computed growth rate.card.csv. In memory, have your tool functions read df. Either way, the model sees the tool’s result, not the rows. The download url is short-lived, so fetch it before expires_at.
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:
People and company list cards
A people or company list card from Search shows the top 25 matches. Exporting it runs the card’s search again and returns up to 1,000 rows. The search card’scontent.total_rows is the most rows that export returns, and content.truncated is true when that’s more than the card shows. Pass total_rows as max_rows to get them all.
- Row links. Each row carries a
tako_urlthat opens a card for that one person (https://tako.com/card/pe_…/) or company (https://tako.com/card/co_…/). Pass that URL asurlto export just that row. card_json. A people list returns apeoplearray of records in rank order, each with aperson_id, and a company list acompaniesarray of records, each with anentity_id.card_jsonnever carries premium values: each record lists the premium fields that hold a value inwithheld_fields.- Paging. List cards keep their first rows, so
offsetandmax_rowsexport one slice, for example to reveal the contacts of 50 people at a time. The row order can change between calls, so check the rows you receive, for example by name.
Premium columns
Some columns cost more to reveal than the rest of the card. These are the premium columns today. On a real export,manifest[].premium_class is the authority: it marks each premium column with its class.
By default these cells are withheld. A withheld cell reads
[premium: withheld] in CSV and is null in json_records and json_compact, and redacted_cells lists where they are. Search and Answer never reveal them.
To reveal them, send the export again with "premium": true:
export_pricing.premium_row_cpm_usd[class] per 1,000 premium records, on top of the standard row rate, and premium_rows reports the count. Contents pricing defines a premium record and explains how to estimate the charge before you export.
premiumhas no effect on a card without premium columns or on a web URL.- Contents answers
400topremium: truewithcontent_format: "card_json". - Over MPP,
premium: truereturns403before any charge, unlessquote_onlyis alsotrue.
Which rows a capped export keeps
When a card holds more rows thanmax_rows or the 100,000-row ceiling, Contents returns part of it. Which part depends on the format.
csv, json_records, and json_compact:
- A league schedule, or a game, standings, team stats, or player card cuts by tab or table, even when it has a date column. A league schedule keeps the tab the card shows, then the tabs nearest to it. The others keep an even share of each table.
- Any other card with a date column, a team schedule included, keeps the rows with the latest dates. Contents counts back from the latest date in the card’s data, not from today. On a card with future rows, such as a weather forecast, a capped export keeps the far end of the future and drops the dates nearest today.
- A card without a date column, such as a ranking or a comparison table, keeps its first rows.
- In every case, the rows stay in the card’s own order. A card that shows newest first exports newest first.
card_json cuts each card type its own way. A price or indicator series keeps its newest readings. A forecast or a ranking keeps its first records. A league schedule, game, standings, or team stats card keeps rows from the same tabs and tables as its csv. A team schedule or a player card keeps its first records, so a capped team schedule can return its latest games as csv and its earliest games as card_json.
To get a specific stretch of a large card, don’t rely on the cap. Check truncated and total_rows, and raise max_rows until truncated is false, or use a card that covers a narrower range.
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": "..." }.