curl --request GET \
--url https://tako.com/api/v1/graph/node/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://tako.com/api/v1/graph/node/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://tako.com/api/v1/graph/node/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tako.com/api/v1/graph/node/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tako.com/api/v1/graph/node/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tako.com/api/v1/graph/node/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tako.com/api/v1/graph/node/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "metric",
"name": "<string>",
"aliases": [
"<string>"
],
"description": "<string>",
"subtype": "Companies",
"label": "PERSON",
"match_kind": "name",
"usage": {
"total_cost_usd": 123,
"compute": {
"cost_usd": 123
},
"data": {
"cost_usd": 123,
"datasets": 123,
"data_points": 123
},
"variable_cost": {
"cost_usd": 123
}
}
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_type": "<string>",
"error_message": "<string>",
"balance_cents": 123
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_message": "<string>",
"error_type": "RATE_LIMIT_EXCEEDED"
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}Graph Node
Look up a single node in Tako’s data graph by its id
curl --request GET \
--url https://tako.com/api/v1/graph/node/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://tako.com/api/v1/graph/node/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://tako.com/api/v1/graph/node/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://tako.com/api/v1/graph/node/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://tako.com/api/v1/graph/node/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://tako.com/api/v1/graph/node/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://tako.com/api/v1/graph/node/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "<string>",
"type": "metric",
"name": "<string>",
"aliases": [
"<string>"
],
"description": "<string>",
"subtype": "Companies",
"label": "PERSON",
"match_kind": "name",
"usage": {
"total_cost_usd": 123,
"compute": {
"cost_usd": 123
},
"data": {
"cost_usd": 123,
"datasets": 123,
"data_points": 123
},
"variable_cost": {
"cost_usd": 123
}
}
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_type": "<string>",
"error_message": "<string>",
"balance_cents": 123
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_message": "<string>",
"error_type": "RATE_LIMIT_EXCEEDED"
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}{
"error_message": "<string>",
"error_type": "BAD_REQUEST"
}Notes
-
Authenticated, $1 per 1,000 requests — send the same
X-API-Keyheader as every Tako endpoint. On a self-serve account, a successful graph call costs $0.001 in API credits, and a failed call costs nothing. A contract account pays only if its contract names a graph rate. Tako limits each user on a self-serve account to 60 graph requests a minute and 1,000 a day. To raise these limits, contact support@tako.com about a contract. For the402and theusageobject, see Credits & billing. - Use graph node to confirm what a node id actually refers to. Given an id — from a Search or Answer card, from Graph Search, or from Graph Related — resolve it here to get the node’s full
name,aliases, anddescriptionand verify it’s the entity or metric you expected before you rely on it. - The
idis the opaque public id Tako returns everywhere it exposes a node. The same id works across all graph endpoints.
Disambiguation flow
The node id is the through-line that ties search results back to the graph. A typical loop:- Run a Search or Answer query and read the node ids off the card’s
nodesarray. - Resolve each id here to confirm the card was built from the entities and metrics you meant — compare
name,aliases, andlabel. The names themselves settle homonyms:Chinathe country andChina, TXare distinct nodes with distinct ids. - If a node isn’t the one you wanted, resolve the intended one with Graph Search instead, then re-run the query pinned to that id via
sources.data.node_ids.
Path format
The path takes the full opaque id, so URL-encode it — ids contain::. The trailing slash is required; without it Tako responds 301 to the canonical path, which clients only follow when told to (curl -L).
# ent::china::f9a471b8, percent-encoded
curl "https://tako.com/api/v1/graph/node/ent%3A%3Achina%3A%3Af9a471b8/" \
-H "X-API-Key: $TAKO_API_KEY"
Example response
{
"id": "ent::china::f9a471b8",
"type": "entity",
"name": "China",
"aliases": ["CHN", "China PR", "Chinese"],
"label": "GPE"
}
404 means the id does not resolve to a node — either it’s malformed, it uses an unknown prefix, or no such node exists.Authorizations
Path Parameters
Opaque public id of the node.
Response
A single graph node
Opaque, human-friendly public id (::::, where prefix is ent for an entity or mt for a metric). Ids are not durable across knowledge-graph rebuilds — resolve them at request time rather than storing them.
Whether the node is a metric or an entity.
metric, entity Display name. Several metrics can share a name when publishers report different series, such as two GDP metrics; read description to tell them apart.
Other names Tako matches to this node, such as abbreviations, tickers, and former names. /v1/graph/search matches q against these as well as name.
What the node is. For a metric, what it measures, often with its unit and basis. For an entity, a short identification. Absent when Tako has none.
The entity's class, such as Companies, Countries, or People. Absent for metrics, and for an entity whose class Tako didn't resolve for this response. /v1/graph/search and /v1/graph/related resolve it; /v1/graph/node doesn't.
Companies, Cryptocurrencies, Financial Instruments, Internet Browsers, Commodities, People, Currencies, Stock Exchanges, Securities, IPOs, Government Debt Instruments, Treasury Securities, Segments, Airports, Airlines, Vehicle Types, Transportation Modes, Drugs, Drug Categories, Diseases, Injury Mechanisms, Injury Intents, Chemical Elements, Chemical Compounds, Celestial Bodies, Occupations, Social Media Platforms, Operating Systems, Search Engines, Device Types, LLMs, LLM Families, LLM Benchmarks, AI Gateway Entity, Industries, NAICS Industries, BLS Industries, PSC Categories, Purchase Categories, Federal Contractors, Federal Agencies, Federal Subagencies, ICE Contracts, ICE Contractors, Elections, Political Offices, Pollsters, Balancing Authorities, Agricultural Products, Tobacco Products, Prediction Markets, Prediction Events, Real Estate Property Types, Continents, World Regions, Countries, States, Counties, Metro Areas, Cities, F1 Drivers, F1 Teams, F1 Circuits, F1 Events, NASCAR Drivers, NASCAR Teams, NASCAR Tracks, NASCAR Events, NASCAR Races, NASCAR Owners, NASCAR Manufacturers, Golf Players, Golf Tournaments, Golf Venues, Golf Courses, Soccer Teams, Soccer Players, Soccer Competitions, Soccer Conferences, Basketball Teams, Basketball Players, Basketball Conferences, Basketball Divisions, Baseball Teams, Baseball Players, Baseball Conferences, Baseball Divisions, Baseball Competitions, Football Teams, Football Players, Football Conferences, Football Divisions, Ice Hockey Teams, Ice Hockey Players, Ice Hockey Conferences, Ice Hockey Divisions, Sports, Sports Leagues Public NER label of the node (PERSON, ORG, GPE, ...). Derived from the node's stored annotation; null when the internal annotation has no public equivalent.
PERSON, ORG, GPE, LOC, PRODUCT, EVENT, LANGUAGE, MONEY, METRIC, STOCK_TICKER, WEBSITE How this result matched q: name when q is the node's name, alias when q is one of its aliases, mention when a phrase in q is the node's name or alias (Apple Inc. for q=Apple revenue), and fuzzy for any other partial or approximate match. A fuzzy result can be unrelated to what you asked for, so check it before you rely on it. Set on /v1/graph/search results only.
name, alias, mention, fuzzy Usage for one metered request. total_cost_usd is always present (the
total quoted charge). compute, data, and variable_cost are the
additive breakdown; each appears only where it applies. total_cost_usd always equals the sum
of the components that appear.
Show child attributes
Show child attributes