---
title: "Search Kg Entities"
method: GET
path: "/api/kg/entities"
tags: ["knowledge-graph"]
---

# Search Kg Entities

`GET /api/kg/entities`

## 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/entities`
- Auth: none declared

Search knowledge graph entities (people, texts, schools, concepts) by name.

搜索知识图谱实体（人物、经典、宗派、概念）。

## Query parameters

- `q` string, required
- `entity_type` string, nullable
- `has_relations` boolean, nullable
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- KGSearchResponse
  - `total` integer, required
  - `results` KGEntityResponse[], required
    - `id` integer, required
    - `entity_type` string, required
    - `name_zh` string, required
    - `name_sa` string, nullable
    - `name_pi` string, nullable
    - `name_bo` string, nullable
    - `name_en` string, nullable
    - `description` string, nullable
    - `properties` object, nullable
    - `text_id` integer, nullable
    - `external_ids` object, nullable
    - `relation_count` integer

## Other responses

- `422`: Validation Error

---

[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)
