> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tako.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Graph

export const AgentPromptCard = ({title, description, children}) => <div className="relative mt-4 rounded-xl border border-zinc-950/10 dark:border-white/10 bg-zinc-50/60 dark:bg-white/[0.03] px-4 pt-3 pb-1">
    <div className="absolute top-3.5 right-4 flex items-center gap-2 text-zinc-900 dark:text-zinc-100">
      <svg role="img" aria-label="Claude" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="#D97757" className="h-5 w-5"><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z" /></svg>
      <svg role="img" aria-label="Cursor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" fillRule="evenodd" className="h-5 w-5"><path d="M22.106 5.68L12.5.135a.998.998 0 00-.998 0L1.893 5.68a.84.84 0 00-.419.726v11.186c0 .3.16.577.42.727l9.607 5.547a.999.999 0 00.998 0l9.608-5.547a.84.84 0 00.42-.727V6.407a.84.84 0 00-.42-.726zm-.603 1.176L12.228 22.92c-.063.108-.228.064-.228-.061V12.34a.59.59 0 00-.295-.51l-9.11-5.26c-.107-.062-.063-.228.062-.228h18.55c.264 0 .428.286.296.514z" /></svg>
      <svg role="img" aria-label="ChatGPT" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" fillRule="evenodd" className="h-5 w-5"><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z" /></svg>
    </div>
    <div className="text-sm font-semibold text-zinc-900 dark:text-zinc-100" style={{
  paddingRight: '6rem'
}}>{title}</div>
    <div className="mt-1 text-sm text-zinc-600 dark:text-zinc-400" style={{
  paddingRight: '6rem'
}}>{description}</div>
    <div style={{
  marginTop: '-2px',
  marginBottom: '-14px'
}}>
      {children}
    </div>
  </div>;

export const CodingAgentCTA = ({description, href}) => <p className="mt-2 text-lg prose prose-gray dark:prose-invert [&>*]:[overflow-wrap:anywhere]">
    {description} Building with a coding agent?{" "}
    <a href={href}>Give your agent the full reference →</a>
  </p>;

<CodingAgentCTA description="Discovery endpoints that tell your agent what data Tako actually has — resolve names to graph nodes, explore their relationships, then pin them into Search for grounded results. No credits consumed." href="/documentation/integrating-tako/data-graph/for-coding-agent" />

<AgentPromptCard title={<>Give your coding agent the <code>tako-graph-agent</code> skill</>} description={<>Teaches your agent the graph-grounded workflow — resolve names to nodes, read what data exists, compose pinned searches, report gaps honestly. Its main use is <strong>building agentic applications that integrate Tako Search</strong>; it's equally handy for checking what Tako covers or debugging searches that return vague cards. One command installs it:</>}>
  ````bash theme={null}
  mkdir -p .claude/skills/tako-graph-agent && \
    curl -fsSL https://docs.tako.com/skills/tako-graph-agent.md \
      | sed -n '/^```/,/^```/p' | sed '1d;$d' \
      > .claude/skills/tako-graph-agent/SKILL.md && \
    curl -fsSL https://docs.tako.com/skills/tako-graph-agent/resolve-example.md \
      | sed -n '/^```/,/^```/p' | sed '1d;$d' \
      > .claude/skills/tako-graph-agent/resolve-example.ts
  ````
</AgentPromptCard>

## When to use the Data Graph

The Data Graph is Tako's index of **what its curated data actually covers** — every entity (companies, countries, teams, commodities…) and metric (revenue, CPI, win percentage…) as a node, connected by real relationships. Query it **before** [Search](/documentation/integrating-tako/search/overview) so your agent composes queries that hit, pins the exact nodes it resolved, and honestly reports what's missing. Reach for it when:

<CardGroup cols={2}>
  <Card title="You want to know what Tako has before you search" icon="map">
    Resolve a name ("Nvidia", "inflation") to real graph nodes and read what data exists for them — instead of spending searches on guesses.
  </Card>

  <Card title="You want deterministic grounding" icon="anchor">
    Pin resolved node ids into Search via `sources.data.node_ids` for guaranteed retrieval candidacy — or add `strict: true` to return only cards matching your nodes.
  </Card>

  <Card title="You want real relationships, not model memory" icon="diagram-project">
    Competitors, subsidiaries, industry peers, cohort members — read them off named graph edges like `rel:competes_with` and `members`. A database read replaces the LLM-recalled lists that produce hallucinated comparisons.
  </Card>

  <Card title="You want honest gaps" icon="scale-balanced">
    When the graph can't ground part of a question, your agent can say so — *"Tako has X and Y, but not Z."* An empty result is an honest answer, not a failure.
  </Card>
</CardGroup>

No general-purpose AI-search API — Exa, Perplexity, Tavily, Brave — exposes a typed knowledge-graph traversal your agent can query before it searches. The closest analogues are the symbol-search endpoints of financial data APIs; the Data Graph extends that pattern to Tako's whole curated index, with relationships.

## The three endpoints

| Endpoint                                                                    | What it does                                                                                                                                                          |
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[Graph Search](/api-reference/graph-search)** `GET /beta/graph/search`    | Resolve a name to entity or metric nodes — "nvidia" → the company node, with its id, aliases, and description.                                                        |
| **[Graph Related](/api-reference/graph-related)** `GET /beta/graph/related` | Explore what a node connects to — its metrics, its entities, named relations (`rel:competes_with`, `rel:in_industry`…), and cohort membership (`part_of`, `members`). |
| **[Graph Node](/api-reference/graph-node)** `GET /beta/graph/node/{id}`     | Confirm what a node id refers to. Occasional use — mostly for verifying ids you got from a card.                                                                      |

## Free to call, easy to explore

<CardGroup cols={2}>
  <Card title="No credits consumed" icon="coins">
    Graph calls use the same `X-API-Key` header as every Tako endpoint and consume **no credits** — they're bounded only by rate limits (180/minute, 10,000/day). Discovery is free; spend your credits on the searches it grounds.
  </Card>

  <Card title="Explore the graph at tako.com/data" icon="compass" href="https://tako.com/data">
    Browse the Data Graph visually with your Tako account — search any entity or metric, walk its relationships, and see exactly what your agent will see before you write a line of code.
  </Card>
</CardGroup>

<Warning>
  **The Data Graph is in beta, and it's a guide — not a guarantee.** A node's related metrics come from the datasets that *cover* that entity, so a listed metric is strong evidence, not proof of that exact combination. And the graph is not the whole index: stock prices, market quotes, rankings, and overviews often live outside it, yet [Search](/documentation/integrating-tako/search/overview) has them. Confirm coverage with a search; treat a thin graph result for a well-covered entity as a cue to search anyway, not to declare a gap.
</Warning>

## Example — discover, then search grounded

<Steps>
  <Step title="Resolve the entity">
    ```bash theme={null}
    curl "https://tako.com/api/beta/graph/search?q=nvidia&types=entity" \
      -H "X-API-Key: $TAKO_API_KEY"
    ```

    Returns nodes with `id`, `name`, `aliases`, `subtype` — pick the company node and keep its `id`.
  </Step>

  <Step title="See what data exists for it">
    ```bash theme={null}
    curl "https://tako.com/api/beta/graph/related?node_id=$NODE_ID&relation=metrics&q=revenue" \
      -H "X-API-Key: $TAKO_API_KEY"
    ```

    Metrics matching "revenue", ranked by popularity and match strength — the combinations Tako actually covers.
  </Step>

  <Step title="Search, pinned to what you resolved">
    ```bash theme={null}
    curl -X POST https://tako.com/api/v3/search \
      -H "X-API-Key: $TAKO_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "query": "Nvidia quarterly revenue",
        "sources": { "data": { "node_ids": ["'$NODE_ID'"] } }
      }'
    ```

    Pinned nodes get guaranteed retrieval candidacy plus a strong boost; organic results are unaffected.
  </Step>
</Steps>

## Next steps

* **[For your coding agent →](/documentation/integrating-tako/data-graph/for-coding-agent)** — the complete build reference: every parameter, label boosts, relation kinds, response shapes, and the common mistakes.
* **Building an agentic app?** Install the `tako-graph-agent` skill (card at the top of this page) — it packages the whole discover → ground → report-gaps loop for your coding agent.
