Dungeons and Dragons (Alternate) API

⭐ Beginner's Pick Games & Comics / No Auth Required Beginner HTTPS CORS
Free to Use Varies (check documentation)

Overview

Open5e provides a comprehensive REST API for D&D 5th Edition SRD content, covering monsters, spells, classes, magic items, and more. It supports HTTPS, CORS, and requires no API key, making it very beginner-friendly and browser-compatible. This is an excellent alternative to the standard D&D API when you need a wider content selection including third-party materials.

💡

Beginner Tip

Open5e offers a search endpoint (?search=) that works across all content types at once — try it to discover spells, monsters, and items by keyword. The API returns paginated results, so check the next field in the response to load more.

Available Data

IP address details
latitude and longitude
city and country
timezone
ISP information

Example Response

JSON Response
{
  "id": 1,
  "name": "Dungeons and Dragons (Alternate)",
  "data": "Includes all monsters and spells from the SRD (System Reference Document) as well as a search API",
  "source": "Dungeons and Dragons (Alternate)"
}

Field Reference

slug URL-friendly unique identifier for the resource (e.g., ancient-dragon).
name Display name of the monster, spell, or item.
desc Description text for the resource.
document__title Source document the resource comes from (e.g., Systems Reference Document).
count Total number of matching results available (shown in the top-level response object).
next URL for the next page of results; null if on the last page.

Implementation Example

const url = "https://open5e.com/";
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

404 Not Found The resource slug or endpoint path is incorrect.
List available resources first (e.g., /v1/monsters/) and use the slug field from results for specific lookups.
Empty results The search term did not match any content.
Try a broader search term or check the spelling against official D&D 5e SRD content names.
Unexpected null fields Some third-party content entries may have incomplete data.
Add null checks in your code and filter by document__slug to limit results to official SRD content.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 453ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Games & Comics
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →