---
title: "Get wiki link graph"
method: GET
path: "/knowledgebase/{kb_id}/wiki/graph"
tags: ["Wiki"]
---

# Get wiki link graph

`GET /knowledgebase/{kb_id}/wiki/graph`

Returns a slice of the wiki link graph for visualization. Supports
`mode=overview` (top-N most-connected pages, default) and
`mode=ego` (BFS neighborhood of a center slug) to keep response
size tractable for knowledge bases with tens of thousands of pages.

## Path parameters

- `kb_id` string, required

## Query parameters

- `mode` string
- `center` string
- `depth` integer
- `types` string
- `limit` integer

## Response `200`

OK

- GithubComTencentWeKnoraInternalTypesWikiGraphData
  - `edges` GithubComTencentWeKnoraInternalTypesWikiGraphEdge[]
    - `source` string — source slug
    - `target` string — target slug
  - `meta` GithubComTencentWeKnoraInternalTypesWikiGraphMeta
    - `center` string — populated in ego mode
    - `depth` integer — populated in ego mode
    - `familiar_count` integer — FamiliarCount is how many returned nodes are lit up for this person.
    - `mode` string
    - `returned` integer — number of nodes actually returned
    - `total` integer — total node count in the KB before filtering/limit
    - `truncated` boolean — true when Returned < Total (after filters)
  - `nodes` GithubComTencentWeKnoraInternalTypesWikiGraphNode[]
    - `familiar` boolean — Familiar is true when this page was built from a document this person keeps citing in answers. It is a personal overlay, not a property of the page: two people looking at the same wiki see different highlights.
    - `link_count` integer — Number of inbound + outbound links
    - `page_type` string
    - `slug` string
    - `title` string

## Changes

> 62 revisions in range; 8 could not be searched.

- **2026-05-21** `3f276bf7acc8` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledgebase/:kb_id/wiki/graph/get.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
