Notes
- Authenticated, no credits — send the same
X-API-Keyheader as every Tako endpoint. Graph calls consume no credits; rate limits are 180/minute and 10,000/day. - Use graph search to discover and confirm what data exists before you query it. Resolve the metric and the entity you care about here, then ask Search (
/v3/search) or Answer (/v1/answer) for that specific entity + metric combination — and pin the resolved ids viasources.data.node_ids. - Each result is a
GraphNodewhoseidyou can pass straight to Graph Related to explore what it connects to.
Scoping with types
types is a comma-separated list of facets to return. Omit it to search both:
metric— a measure (e.g. “GDP”, “stock price”).entity— a thing the metric is tracked for (e.g. a country, a company).
Steering the ranking with label
Many names are homonyms — “Air China” contains a country’s name, so the airline competes with China itself in the results. Pass label to bias the ranking toward one entity category. It is a boost, not a filter — matching nodes rank higher, but off-label nodes still return:
- Values:
PERSON,ORG,GPE,LOC,PRODUCT,EVENT,LANGUAGE,MONEY,METRIC,STOCK_TICKER,WEBSITE. Sports teams areORG. An unknown value is a400. - Auto-inference is on by default (
infer_label=true): with no explicitlabel, Tako detects the entities inqand applies the matching boost. The labels it found come back ininferred_labels— an empty list means inference ran and found nothing; the key is absent when inference didn’t run. Disable withinfer_label=false(also0/no/off); passing an explicitlabelalso disables inference. - Each node reports its own
labelandsubtype(e.g.Countries,Companies) in the response — read them to pick the right node rather than assuming the list is filtered.
A
q shorter than 2 characters returns an empty results list (200, not an error), and limit above 50 is clamped rather than rejected.Example response
The response to thelabel=ORG call above — the airline now outranks the country: