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

# Kg Stats

`GET /api/kg/stats`

## Request

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

Get knowledge graph statistics (entity and relation counts by type).

获取知识图谱统计信息（各类型实体与关系数量）。

Cached: the underlying query is two full GROUP BY COUNT(*) scans over
kg_entities/kg_relations and the result only changes when the KG is
re-imported, so a ~1h cache is plenty and keeps the dashboard off the
hot path.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform.md) · [All operations](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/fojin/apis/fojin-api-buddhist-digital-text-platform/revisions/969714238c61?raw)
