# D&D 5e on Onekey > 4 endpoints for D&D 5e (4 stable, 0 beta), 1 to 5 credits each. Category: Gaming. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/dnd5e Reference (Markdown): https://onekey.dev/docs/api/dnd5e.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 4 mapped D&D 5e endpoints return each: - `entity.id` (string): 4 - `entity.name` (string): 4 - `content.text` (string): 2 - `entity.type` (string): 1 - plus 12 platform-specific fields under `ext.` ## Endpoints ### dnd5e.monster Fetch a D&D 5e monster (SRD). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/dnd5e/monster?index=adult-black-dragon` with header `x-api-key: YOUR_API_KEY` - Parameters: - `index` (string, required): Resource index, e.g. fireball - Fields returned: `entity.id`, `entity.name`, `entity.type`, `content.text`, `ext.size`, `ext.alignment`, `ext.armorClass`, `ext.hitPoints`, `ext.challengeRating`, `ext.xp` - Reference: https://onekey.dev/docs/api/dnd5e/monster.md ### dnd5e.monster_search Search D&D 5e monsters by name. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/dnd5e/monster_search?q=dragon` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Name fragment - Fields returned: `entity.id`, `entity.name` - Reference: https://onekey.dev/docs/api/dnd5e/monster_search.md ### dnd5e.spell Fetch a D&D 5e spell (SRD). - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/dnd5e/spell?index=fireball` with header `x-api-key: YOUR_API_KEY` - Parameters: - `index` (string, required): Resource index, e.g. fireball - Fields returned: `entity.id`, `entity.name`, `content.text`, `ext.level`, `ext.school`, `ext.castingTime`, `ext.range`, `ext.duration`, `ext.concentration` - Reference: https://onekey.dev/docs/api/dnd5e/spell.md ### dnd5e.spell_search Search D&D 5e spells by name. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/dnd5e/spell_search?q=fire` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Name fragment - Fields returned: `entity.id`, `entity.name`, `ext.level` - Reference: https://onekey.dev/docs/api/dnd5e/spell_search.md ## Sample request ```bash curl "https://api.onekey.dev/v1/dnd5e/monster?index=adult-black-dragon" \ -H "x-api-key: YOUR_API_KEY" ```