# Introduction Welcome to the dnd5eapi, the Dungeons & Dragons 5th Edition API! This documentation should help you familiarize yourself with the resources available and how to consume them with HTTP requests. Read through the getting started section before you dive in. Most of your problems should be solved just by reading through it. ## Getting Started Let's make our first API request to the D&D 5th Edition API! Open up a terminal and use [curl](http://curl.haxx.se/) or [httpie](http://httpie.org/) to make an API request for a resource. You can also scroll through the definitions below and send requests directly from the endpoint documentation! For example, if you paste and run this `curl` command: ```bash curl -X GET "https://www.dnd5eapi.co/api/ability-scores/cha" -H "Accept: application/json" ``` We should see a result containing details about the Charisma ability score: ```bash { "index": "cha", "name": "CHA", "full_name": "Charisma", "desc": [ "Charisma measures
https://www.dnd5eapi.co47 endpoints available
/apiGet all resource URLs.
/api/spellsGet list of spells with optional filtering.
/api/monstersGet list of monsters with optional filtering
/api/{endpoint}Get list of all available resources for an endpoint.
/api/feats/{index}Get a feat by index.
/api/races/{index}Get a race by index.
/api/rules/{index}Get a rule by index.
/api/skills/{index}Get a skill by index.
/api/spells/{index}Get a spell by index.
/api/traits/{index}Get a trait by index.
/api/classes/{index}Get a class by index.
/api/features/{index}Get a feature by index.
/api/monsters/{index}Get monster by index.
/api/subraces/{index}Get a subrace by index.
/api/equipment/{index}Get an equipment item by index.
/api/languages/{index}Get a language by index.
/api/alignments/{index}Get an alignment by index.
/api/conditions/{index}Get a condition by index.
/api/subclasses/{index}Get a subclass by index.
/api/backgrounds/{index}Get a background by index.
/api/magic-items/{index}Get a magic item by index.
/api/damage-types/{index}Get a damage type by index.
/api/races/{index}/traitsGet traits available for a race.
/api/magic-schools/{index}Get a magic school by index.
/api/proficiencies/{index}Get a proficiency by index.
/api/rule-sections/{index}Get a rule section by index.
/api/ability-scores/{index}Get an ability score by index.
/api/classes/{index}/levelsGet all level resources for a class.
/api/classes/{index}/spellsGet spells available for a class.
/api/races/{index}/subracesGet subraces available for a race.
/api/subraces/{index}/traitsGet traits available for a subrace.
/api/classes/{index}/featuresGet features available for a class.
/api/subclasses/{index}/levelsGet all level resources for a subclass.
/api/weapon-properties/{index}Get a weapon property by index.
/api/classes/{index}/subclassesGet subclasses available for a class.
/api/races/{index}/proficienciesGet proficiencies available for a race.
/api/subclasses/{index}/featuresGet features available for a subclass.
/api/classes/{index}/spellcastingGet spellcasting info for a class.
/api/equipment-categories/{index}Get an equipment category by index.
/api/classes/{index}/proficienciesGet proficiencies available for a class.
/api/classes/{index}/multi-classingGet multiclassing resource for a class.
/api/subraces/{index}/proficienciesGet proficiences available for a subrace.
/api/classes/{index}/levels/{class_level}Get level resource for a class and level.
/api/subclasses/{index}/levels/{subclass_level}Get level resources for a subclass and level.
/api/classes/{index}/levels/{spell_level}/spellsGet spells of the requested level available to the class.
/api/classes/{index}/levels/{class_level}/featuresGet features available to a class at the requested level.
/api/subclasses/{index}/levels/{subclass_level}/featuresGet features of the requested spell level available to the class.
# Introduction Welcome to the dnd5eapi, the Dungeons & Dragons 5th Edition API! This documentation should help you familiarize yourself with the resources available and how to consume them with HTTP requests. Read through the getting started section before you dive in. Most of your problems should be solved just by reading through it. ## Getting Started Let's make our first API request to the D&D 5th Edition API! Open up a terminal and use [curl](http://curl.haxx.se/) or [httpie](http://httpie.org/) to make an API request for a resource. You can also scroll through the definitions below and send requests directly from the endpoint documentation! For example, if you paste and run this `curl` command: ```bash curl -X GET "https://www.dnd5eapi.co/api/ability-scores/cha" -H "Accept: application/json" ``` We should see a result containing details about the Charisma ability score: ```bash { "index": "cha", "name": "CHA", "full_name": "Charisma", "desc": [ "Charisma measures
https://www.dnd5eapi.co47 endpoints available
/apiGet all resource URLs.
/api/spellsGet list of spells with optional filtering.
/api/monstersGet list of monsters with optional filtering
/api/{endpoint}Get list of all available resources for an endpoint.
/api/feats/{index}Get a feat by index.
/api/races/{index}Get a race by index.
/api/rules/{index}Get a rule by index.
/api/skills/{index}Get a skill by index.
/api/spells/{index}Get a spell by index.
/api/traits/{index}Get a trait by index.
/api/classes/{index}Get a class by index.
/api/features/{index}Get a feature by index.
/api/monsters/{index}Get monster by index.
/api/subraces/{index}Get a subrace by index.
/api/equipment/{index}Get an equipment item by index.
/api/languages/{index}Get a language by index.
/api/alignments/{index}Get an alignment by index.
/api/conditions/{index}Get a condition by index.
/api/subclasses/{index}Get a subclass by index.
/api/backgrounds/{index}Get a background by index.
/api/magic-items/{index}Get a magic item by index.
/api/damage-types/{index}Get a damage type by index.
/api/races/{index}/traitsGet traits available for a race.
/api/magic-schools/{index}Get a magic school by index.
/api/proficiencies/{index}Get a proficiency by index.
/api/rule-sections/{index}Get a rule section by index.
/api/ability-scores/{index}Get an ability score by index.
/api/classes/{index}/levelsGet all level resources for a class.
/api/classes/{index}/spellsGet spells available for a class.
/api/races/{index}/subracesGet subraces available for a race.
/api/subraces/{index}/traitsGet traits available for a subrace.
/api/classes/{index}/featuresGet features available for a class.
/api/subclasses/{index}/levelsGet all level resources for a subclass.
/api/weapon-properties/{index}Get a weapon property by index.
/api/classes/{index}/subclassesGet subclasses available for a class.
/api/races/{index}/proficienciesGet proficiencies available for a race.
/api/subclasses/{index}/featuresGet features available for a subclass.
/api/classes/{index}/spellcastingGet spellcasting info for a class.
/api/equipment-categories/{index}Get an equipment category by index.
/api/classes/{index}/proficienciesGet proficiencies available for a class.
/api/classes/{index}/multi-classingGet multiclassing resource for a class.
/api/subraces/{index}/proficienciesGet proficiences available for a subrace.
/api/classes/{index}/levels/{class_level}Get level resource for a class and level.
/api/subclasses/{index}/levels/{subclass_level}Get level resources for a subclass and level.
/api/classes/{index}/levels/{spell_level}/spellsGet spells of the requested level available to the class.
/api/classes/{index}/levels/{class_level}/featuresGet features available to a class at the requested level.
/api/subclasses/{index}/levels/{subclass_level}/featuresGet features of the requested spell level available to the class.