---
title: "Get Kg Stats"
method: GET
path: "/api/knowledge-graph/stats"
tags: ["knowledge-graph", "knowledge-graph"]
---

# Get Kg Stats

`GET /api/knowledge-graph/stats`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge-graph/stats`
- Auth: none declared

Get Knowledge Graph statistics.

## Response `200`

Successful Response

- KGStatsResponse: Knowledge Graph statistics.
  - `total_entities` integer, required
  - `total_relationships` integer, required
  - `entities_by_type` object, required
  - `relationships_by_type` object, required
  - `recent_entities` EntityResponse[], required
    - `id` integer, required
    - `entity_type` string, required
    - `canonical_name` string, required
    - `display_name` string, required
    - `aliases` string[]
    - `channel_refs` string[]
    - `first_seen_at` string, date-time, nullable
    - `last_seen_at` string, date-time, nullable
    - `mention_count` integer
    - `metadata` object, nullable
    - `notes` string, nullable
    - `tags` TagResponse[]
      - `id` integer, required
      - `name` string, required
      - `color` string
      - `description` string, nullable

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
