Graph Search
Resolve a metric or entity in Tako’s data graph by name
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.
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:
Authorizations
Query Parameters
Search text (min 1 char).
1Facets to include. Defaults to metric and entity.
metric, entity Max results (default 20, max 50).
x >= 1Prefer results with this NER label (boost, not a filter — matching nodes rank higher; others still return). Supplying label disables inference.
PERSON, ORG, GPE, LOC, PRODUCT, EVENT, LANGUAGE, MONEY, METRIC, STOCK_TICKER, WEBSITE When true, Tako NER infers the label and grounded-node boosts from q. Set false to disable. Tako ignores this parameter when you supply label. Default true.
Response
Matching metrics and entities
Labels that Tako NER inferred from q when infer_label ran (boost applied). An empty list means inference ran and found nothing. The field is absent when you supplied an explicit label, when infer_label=false, or when there was no q.
PERSON, ORG, GPE, LOC, PRODUCT, EVENT, LANGUAGE, MONEY, METRIC, STOCK_TICKER, WEBSITE