---
title: "An article's neighborhood subgraph"
method: GET
path: "/graph/{slug}"
---

# An article's neighborhood subgraph

`GET /graph/{slug}`

## Request

- Base URL: `https://www.edgechat.ai/api/v1`
- URL: `https://www.edgechat.ai/api/v1/graph/{slug}`
- Auth: none declared

Nodes and the links among them. `complete: false` means the route's time budget cut the answer short; such an answer is cached for a minute only.

## Path parameters

- `slug` string, required

## Query parameters

- `depth` 1 | 2
- `limit` integer
- `format` 'json' | 'mermaid'
- `fields` string

## Response `200`

OK

- GetGraphResponse: Shape read from a live answer of 2026-10-07; fields may be added, never renamed or removed. Every field is optional: an answer carries the fields of its own branch.
  - `id` string
  - `slug` string
  - `title` string
  - `depth` integer
  - `limit` integer
  - `neighbors` integer
  - `complete` boolean: false when the route's time budget (about a second) cut the answer short: fewer results or edges, or importance by in-degree alone. Such an answer is cached for a minute only.
  - `nodes` object[]
    - `id` string
    - `slug` string
    - `title` string
    - `topic` string
    - `depth` integer
    - `url` string
    - `excerpt` string
    - `node` string
    - `api_url` string
  - `edges` object[]
    - `from` string
    - `to` string
    - `anchor` string
  - `license` object
    - `name` string
    - `url` string
    - `summary` string

## Other responses

- `400`: An error: { error: { code, message } }
- `404`: An error: { error: { code, message } }
- `503`: An error: { error: { code, message } }

---

[API](https://skmtc.dev/edgechat/apis/edgepedia-api.md) · [All operations](https://skmtc.dev/edgechat/apis/edgepedia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edgechat/apis/edgepedia-api/revisions/cd4eb5972d56?raw)
