---
title: "Get Kg Search"
method: GET
path: "/api/v1/kg/debug/search"
tags: ["v1", "KG Debug"]
---

# Get Kg Search

`GET /api/v1/kg/debug/search`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/kg/debug/search`
- Auth: none declared

Node picker AND type-browser for the KG Toolkit explorer (JEEVY-709
toolkit UX rework + explorer reframe, 2026-07-13).

ILIKE substring match, case-insensitive, over display_name OR
canonical_key when q is given. With q omitted and node_type set, lists
that type's entities by display_name — the explorer's Level 2 drill-in
(type → its entities). Reuses kg_nodes_repo.search_by_label for both
shapes — no new SQL beyond that one query.

## Query parameters

- `q` string, nullable: Substring to match against display_name / canonical_key. Omit (with node_type set) to browse/list that type's entities.
- `node_type` string, nullable: Restrict to one node type. Required if q is omitted.
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- KgSearchResponse
  - `data` KgSearchData, required
    - `rows` KgSearchNode[], required
      - `id` string, required
      - `node_type` string, required
      - `canonical_key` string, required
      - `display_name` string, nullable
      - `observation_count` integer
    - `total` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
