# Jgw Aynu — 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.

> Search and explore ancient oracle bone inscriptions and characters from the Yinqi Wenyuan database, discovering detailed information about individual characters, collections, and radical components. Access a comprehensive font database of historical Chinese script used in divination practices during ancient dynasties.

**Category:** Education | **Website:** [jgw.aynu.edu.cn/](https://jgw.aynu.edu.cn/) | **Docs:** [parse.bot/marketplace/3117a9ae-b133-49b2-9060-0cc51a4f4d36/jgw-aynu-edu-cn-api](https://parse.bot/marketplace/3117a9ae-b133-49b2-9060-0cc51a4f4d36/jgw-aynu-edu-cn-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-jgw-aynu-edu-cn-api-3117a9ae/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_character_detail

Get detailed information for a specific oracle bone character including citation sources and related characters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `unicode_id` | string | Yes | Unicode ID of the character from search_characters results (e.g. 'U608C1') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jgw-aynu-edu-cn-api-3117a9ae/get_character_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"unicode_id":"<string>"}'
```

### get_collections

List available oracle bone collections and books in the 著录库. Returns all collections with their codes that can be used to filter search_inscriptions results.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jgw-aynu-edu-cn-api-3117a9ae/get_collections \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_radicals

List radicals used for indexing characters in the oracle bone font database. Returns Unicode Private Use Area codes used as radical identifiers.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jgw-aynu-edu-cn-api-3117a9ae/get_radicals \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_characters

Search for oracle bone characters in the font database (字形库). Returns characters with meanings, pinyin, and reference sources.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term - a Chinese character (when type=1) or pinyin string (when type=3) |
| `type` | integer | No | Search type: 1 for Chinese character lookup, 3 for Pinyin lookup |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jgw-aynu-edu-cn-api-3117a9ae/search_characters \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>","type":"<integer>"}'
```

### search_inscriptions

Search for oracle bone inscriptions (rubbings/bones) in the 著录库 database. Returns paginated results with basic metadata and image URLs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `book_code` | string | No | Filter by collection/book code from get_collections endpoint (e.g. '010001H'). Omitting returns results across all collections. |
| `page` | integer | No | Page number for pagination. |
| `query` | string | Yes | Search term for inscription name/片号 (e.g. '合', '拼') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jgw-aynu-edu-cn-api-3117a9ae/search_inscriptions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"book_code":"<string>","page":"<integer>","query":"<string>"}'
```
