Skip to main content

Notes

  • Authenticated, no credits — send the same X-API-Key header 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 via sources.data.node_ids.
  • Each result is a GraphNode whose id you can pass straight to Graph Related to explore what it connects to.
This endpoint is in beta. A returned metric or entity is a guide, not a guarantee — it does not promise that a specific entity + metric combination exists, or that data is available for it. Use it to steer what you ask Search or Answer for, and confirm coverage there.

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 are ORG. An unknown value is a 400.
  • Auto-inference is on by default (infer_label=true): with no explicit label, Tako detects the entities in q and applies the matching boost. The labels it found come back in inferred_labels — an empty list means inference ran and found nothing; the key is absent when inference didn’t run. Disable with infer_label=false (also 0/no/off); passing an explicit label also disables inference.
  • Each node reports its own label and subtype (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 the label=ORG call above — the airline now outranks the country:
Results are ordered by a relevance + popularity blend; fields that are null are omitted from the response.