Discover/5e.tools API
live

5e.tools API5e.tools

Access D&D 5e races, classes, subclasses, and spells from 5e.tools. Filter by name, source book, or class. Ideal for character builders and campaign tools.

Endpoints
4
Updated
3mo ago
Try it
Case-insensitive search keyword to filter races by name (e.g. 'elf', 'dwarf').
api.parse.bot/scraper/8452e5a0-87b8-461e-9cfd-d9ac9fa336b4/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/8452e5a0-87b8-461e-9cfd-d9ac9fa336b4/get_races?query=elf' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 4 totalclick to expand

Retrieve all D&D 5e species and races from the 5e.tools data. Can be filtered by a search keyword matching race name.

Input
ParamTypeDescription
querystringCase-insensitive search keyword to filter races by name (e.g. 'elf', 'dwarf').
Response
{
  "type": "object",
  "fields": {
    "races": "array of race objects with name, source, size, speed, traits, and other attributes"
  },
  "sample": {
    "data": {
      "races": [
        {
          "name": "Astral Elf",
          "page": 10,
          "size": [
            "M"
          ],
          "speed": 30,
          "source": "AAG",
          "lineage": "VRGR",
          "hasFluff": true,
          "traitTags": [
            "Improved Resting",
            "Tool Proficiency",
            "Weapon Proficiency"
          ],
          "darkvision": 60,
          "creatureTypes": [
            "humanoid"
          ]
        }
      ]
    },
    "status": "success"
  }
}

About the 5e.tools API

The 5e.tools API exposes four endpoints covering the core pillars of D&D 5th Edition character data: races, classes, and spells. The get_spells endpoint alone can return spells across all available source books — each spell object carrying level, school, components, duration, range, and full entries. The get_classes endpoint delivers complete class details including subclasses and class features when a specific class name is provided.

Races and Species

The get_races endpoint returns all D&D 5e races and species available in 5e.tools data. Each race object includes name, source, size, speed, traits, and additional attributes. You can pass an optional query parameter — for example 'elf' or 'dwarf' — to filter by name in a case-insensitive match. No authentication or session is needed.

Classes and Subclasses

get_classes operates in two modes. Without class_name, it returns a summary list of all classes alongside an available_classes array of name strings — useful for populating a picker UI. When class_name is provided (e.g. 'wizard' or 'rogue'), the response expands to include the full class object: subclasses, class features at each level, and subclass features. This makes the endpoint suitable for building full class-progression displays.

Spells and Source Books

get_spells defaults to PHB spells when no parameters are given. You can narrow results with the query parameter (e.g. 'fireball') or switch source books using the source parameter. Use get_spell_sources first — it returns a sources object mapping source codes like 'PHB' or 'XGE' to their backing JSON filenames, so you know exactly which codes are valid. Set fetch_all to true to pull spells across every available source in a single call; note this can return a large result set. Each spell response includes a count field alongside the spells array and an available_sources list.

Common use cases
  • Character builder that populates race selection dropdowns with size, speed, and trait data from get_races
  • Class progression viewer that renders level-by-level features and subclass options using get_classes with a specific class_name
  • Spell reference tool filtered by source book code via the source parameter on get_spells
  • Campaign preparation app that searches spells by keyword using the query param and displays school, components, and range
  • Sourcebook coverage tracker that enumerates all available spell sources with get_spell_sources
  • Homebrew tool that cross-references official race traits from get_races to scaffold custom species
  • Encounter planner that pulls full class feature sets to model NPC or player character abilities
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does 5e.tools have an official developer API?+
5e.tools does not publish an official developer API. It is a community-maintained reference site that serves static JSON data files. The Parse 5e.tools API structures access to that data through consistent endpoints.
What does `get_classes` return differently when `class_name` is provided versus omitted?+
Without class_name, the response contains a classes summary array and an available_classes list of name strings — enough to populate a selector. When class_name is provided (e.g. 'fighter'), the response expands to include the full class object: subclasses, class features per level, and subclass features. The two modes serve different UI needs, so it is worth calling the summary form first to retrieve exact class name strings before requesting full detail.
Can I retrieve spells from multiple specific source books in one call without fetching all sources?+
The get_spells endpoint accepts a single source code per call. To combine spells from, say, PHB and XGE, you would make two separate requests and merge the results client-side. Setting fetch_all to true pulls every available source at once if you need broad coverage. You can fork this API on Parse and revise it to add a multi-source parameter if targeted batch fetching is important for your use case.
Does the API cover monsters, magic items, or other 5e content beyond races, classes, and spells?+
Not currently. The API covers races (via get_races), classes and subclasses (via get_classes), and spells (via get_spells and get_spell_sources). Monsters, magic items, backgrounds, feats, and equipment are not exposed by the current endpoints. You can fork this API on Parse and revise it to add endpoints for those data categories.
How fresh is the data returned by these endpoints?+
The data reflects the 5e.tools JSON data sources at the time of each request. 5e.tools is community-maintained and updated as new official sourcebooks are incorporated, so newly released content may appear with a short lag. The available_sources field in the get_spells response and the sources object from get_spell_sources are the reliable way to confirm which sourcebooks are currently indexed.
Page content last updated . Spec covers 4 endpoints from 5e.tools.
Related APIs in EntertainmentSee all →
noor-book.com API
Search and discover books across 1,800+ categories in the Noor Book library, retrieving detailed information about titles, authors, biographies, and book metadata. Access comprehensive author profiles and browse one of the largest Arabic and English digital book collections with over 289,000 authors.
vg.no API
Access VG.no's latest news, articles, sports scores, and TV guides through a single interface where you can browse the front page, search articles by topic, view category-specific content, and find related stories. Get real-time sports scores and television schedules alongside comprehensive news coverage from Norway's leading news outlet.
vegasinsider.com API
Retrieve MLB betting odds from major sportsbooks including bet365, FanDuel, and DraftKings, covering Moneyline, Total, and Runline markets for any supported date. Easily compare odds across books to identify the best available lines.
novelbin.me API
Search and browse novels by title, genre, or popularity, and explore trending, completed, or recently updated works. Access full novel details, chapter listings, chapter content, author information, related titles, and reader comments. Authenticated users can manage bookmarks with reading-status tracking and subscribe to novels for update notifications.
quizbowlpackets.com API
Search and browse thousands of quizbowl question sets across all competition levels, then access detailed metadata like difficulty, subjects, and download links for each packet. Find the perfect practice materials for High School, Collegiate, Middle School, or Pop Culture quizbowl competitions.
glastonburyfestivals.co.uk API
Discover historical and current Glastonbury Festival line-ups, find artist set times and stage locations, and search for specific performers across all festival years. Stay updated with the latest festival news and explore detailed information about festival areas and stages.
puntoticket.com API
Browse and search events happening in Chile with PuntoTicket, viewing featured shows, filtering by category, and checking detailed pricing and availability for concerts, theater, sports, and more. Find the perfect event by exploring all listings or discovering what's trending right now.
wynncraft.com API
Access detailed Wynncraft game information to look up item metadata and search across the complete item database, retrieve player statistics and character inventories, and browse guild information and global search results. Use this data to compare gear, track player progress, analyze guild rosters, or build tools for the Wynncraft community.