Dungeons and Dragons (Alternate) API

Beginner's Pick Games & Comics / No Auth Required Beginner HTTPS CORS
Free to Use
58 C
Measured Score 0 50 100 Speed 2/30 Consistency 13/20 Security 20/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

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.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.open5e.com/v1/monsters/?search=dragon&limit=5
Result
HTTP 200 · application/json · 21,900 bytes · compressed
Response time
1397 ms (median of 3) · fastest 1206 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
cloudflare
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
count integer 312
next string (url) https://api.open5e.com/v1/monsters/?limit=5&p…
previous null null
results array [1 item]

Captured Response

Captured from a real request to https://api.open5e.com/v1/monsters/?search=dragon&limit=5 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "count": 312,
  "next": "https://api.open5e.com/v1/monsters/?limit=5&page=2&search=dragon",
  "previous": null,
  "results": [
    {
      "slug": "adult-amethyst-dragon-a5e",
      "desc": "",
      "name": "Adult Amethyst Dragon",
      "size": "Huge",
      "type": "Dragon",
      "subtype": "",
      "group": null,
      "alignment": "",
      "armor_class": 18,
      "armor_desc": "",
      "hit_points": 220,
      "hit_dice": "21d12+84",
      "speed": {
        "…": "(3 more fields)"
      },
      "strength": 18,
      "…": "(36 more fields)"
    }
  ]
}

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.
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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.open5e.com/v1/monsters/?search=dragon&limit=5";
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.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist application/json
{
  "detail": "No Monster matches the given query."
}

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 2/30
Consistency 13/20
Security 20/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 1397ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Games & Comics
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →