Dungeons and Dragons API
Overview
The Dungeons and Dragons API provides reference data for D&D 5th Edition, including spells, monsters, classes, equipment, and more from the official System Reference Document (SRD). No authentication is needed, making it instantly accessible for building character sheets, spell lookup tools, or campaign aids. Note that this API currently uses HTTP (not HTTPS).
Beginner Tip
This API uses HTTP instead of HTTPS, so avoid sending sensitive data. Start with /api/spells or /api/monsters to browse available content — each returns a list with an index, name, and URL for detailed lookup.
Available Data
Example Response
{
"id": 1,
"name": "Dungeons and Dragons",
"data": "Reference for 5th edition spells, classes, monsters, and more",
"source": "Dungeons and Dragons"
} Field Reference
index URL-friendly identifier for the resource (e.g., fireball). name Display name of the resource (e.g., Fireball). desc Array of strings describing the spell or item in detail. level Spell level (0 for cantrips, 1-9 for leveled spells). url API path to retrieve the full details of this resource. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://www.dnd5eapi.co/docs/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Age of Empires II
Age of Empires II provides programmatic access to get information about age of empires ii resources via REST API.
AmiiboAPI
AmiiboAPI provides programmatic access to nintendo amiibo information via REST API.
Animal Crossing: New Horizons
⭐ Beginner's PickThe Animal Crossing: New Horizons API gives you free access to in-game data including villagers, critters, fossils, art, music, and furniture.
Autochess VNG
The Autochess VNG API provides game data for the Autochess VNG mobile game including heroes, items, and races.
Barter.VG
Barter.VG aggregates data about PC games, DLC, bundles, giveaways, and trading from Steam and other platforms.