# Db Damijing — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Db Damijing provides 2 callable API endpoints through the Parse marketplace.

**Category:** Entertainment | **Website:** [db.damijing.com/](https://db.damijing.com/) | **Docs:** [parse.bot/marketplace/76cf7404-ed88-4bd3-9a3b-650259aeffc1/db-damijing-com-api](https://parse.bot/marketplace/76cf7404-ed88-4bd3-9a3b-650259aeffc1/db-damijing-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/db-damijing/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get item detail

Get detailed information for a specific equipment item by its numeric ID. Returns stats, damage, slot, binding info, durability, flavor text, and drop source. The item_id can be obtained from search_items results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `item_id` | string | Yes | Numeric item ID (e.g. 268200). Obtainable from search_items results. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/db-damijing/get-item-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"item_id":"<string>"}'
```

### Search items

Search game equipment items with optional filters for item type, name, and quality. Returns paginated results ordered by item level descending. Requires class_id to scope the search to a specific item category (weapons, armor, etc). Without class_id, returns recently added items across all categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `class_id` | string | No | Item class ID to filter by category. Common values: 2 (weapons), 4 (armor). When provided, scopes the search and enables name filtering. |
| `name` | string | No | Item name search keyword (Chinese). Filters items whose name contains this string. Requires class_id to be set. |
| `page` | integer | No | Page number for pagination (1-based). |
| `page_size` | integer | No | Number of items per page (1-50). |
| `quality` | string | No | Quality filter. Values observed: 普通 (Common), 优秀 (Uncommon), 精良 (Rare), 史诗 (Epic), 传说 (Legendary). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/db-damijing/search-items \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"class_id":"<string>","name":"<string>","page":"<integer>","page_size":"<integer>","quality":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.