# Icd Kcb — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Look up Vietnamese ICD-10 medical diagnostic and procedure codes with detailed information, or browse the complete hierarchy of all available codes in the system. Quickly find the specific clinical codes you need for medical records, billing, or healthcare documentation.

**Category:** Healthcare | **Website:** [icd.kcb.vn/](https://icd.kcb.vn/) | **Docs:** [parse.bot/marketplace/78778160-a7cc-4700-813b-23ae3a9ae9d4/icd-kcb-vn-api](https://parse.bot/marketplace/78778160-a7cc-4700-813b-23ae3a9ae9d4/icd-kcb-vn-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-icd-kcb-vn-api-78778160/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### query_all_code

Retrieve a list of ICD-10 codes from the classification tree. By default returns 3-character category codes. Set include_subcategories to true to also retrieve 4-character subcategory codes (significantly slower). Use limit_chapters to restrict traversal scope.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `include_subcategories` | boolean | No | When true, also fetches 4-character subcategory codes under each 3-character category. Significantly increases response time. |
| `limit_chapters` | integer | No | Limit traversal to first N chapters (1-22). Omitting returns all 22 chapters. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-icd-kcb-vn-api-78778160/query_all_code \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"include_subcategories":"<boolean>","limit_chapters":"<integer>"}'
```

### query_code

Get detailed information for a specific ICD-10 code, including disease name, description, and classification hierarchy (chapter, section, parent group). Returns Vietnamese-language disease data. Returns stale_input when the code is not found in the database.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `code` | string | Yes | ICD-10 code to look up (e.g. 'K35.8', 'A00.0', 'J18.9'). Supports both 3-character categories and 4-character subcategories with or without dots. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-icd-kcb-vn-api-78778160/query_code \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"code":"<string>"}'
```
