D&D 5th Edition API Documentation

Documentation

Introduction

Welcome to the dnd5eapi, the Dungeons & Dragons 5th Edition API! This documentation should help you familiarise 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 or httpie to make an API request for a resource. In the example below, we're trying to get the first spell, Acid Arrow:

http dnd5eapi.co/api/spells/1/

We'll use httpie for our examples as it displays responses nicely and gives us a whole lot more useful information. If you don't want to download httpie, just use the curl command instead.

Here is the response we get:

{
  "_id": "58671690c9e7ce9f72144f5f",
  "index": 1,
  "name": "Acid Arrow",
  "desc": [
    "A shimmering green arrow streaks toward a target within range and bursts in a spray of acid. Make a ranged spell attack against the target. On a hit, the target takes 4d4 acid damage immediately and 2d4 acid damage at the end of its next turn. On a miss, the arrow splashes the target with acid for half as much of the initial damage and no damage at the end of its next turn."
  ],
  "higher_level": [
    "When you cast this spell using a spell slot of 3rd level or higher, the damage (both initial and later) increases by 1d4 for each slot level above 2nd."
  ],
  "page": "phb 259",
  "range": "90 feet",
  "components": [
    "V",
    "S",
    "M"
  ],
  "material": "Powdered rhubarb leaf and an adder’s stomach.",
  "ritual": "no",
  "duration": "Instantaneous",
  "concentration": "no",
  "casting_time": "1 action",
  "level": 2,
  "school": {
    "url": "http://dnd5eapi.co/api/magic-schools/5",
    "name": "Evocation"
  },
  "classes": [
    {
      "name": "Wizard",
      "url": "http://dnd5eapi.co/api/classes/12"
    }
  ],
  "url": "http://dnd5eapi.co/api/spells/1"
}
 

If your response looks slightly different don't panic. This is probably because more data has been added to dnd5eapi since we made this documentation.

Base URL

The Base URL is the root URL for all of the API, if you ever make a request to dnd5eapi and you get back a 404 NOT FOUND response then check the Base URL first.

The Base URL for dnd5eapi is:

http://dnd5eapi.co/api/

The documentation below assumes you are prepending the Base URL to the endpoints in order to make requests.

Authentication

dnd5eapi is a completely open API. No authentication is required to query and get data. This also means that we've limited what you can do to just GET-ing the data. If you find a mistake in the data, feel free to email me.

Resource Lists

Calling any API endpoint without a resource index or name will return a list of available resources for that API.

GET api/{endpoint}

{
  "count": 12,
  "results": [
    {
      "name": "Acid Arrow",
      "url": "http://dnd5eapi.co/api/spells/1"
    },
    {
      "name": "Acid Splash",
      "url": "http://dnd5eapi.co/api/spells/2"
    },
    {
      "name": "Aid",
      "url": "http://dnd5eapi.co/api/spells/3"
    },
    {
      "name": "Alarm",
      "url": "http://dnd5eapi.co/api/spells/4"
    },
    {
      "name": "Alter Self",
      "url": "http://dnd5eapi.co/api/spells/5"
    },
    {
      "name": "Animal Messenger",
      "url": "http://dnd5eapi.co/api/spells/6"
    },
    {
      "name": "Animal Shapes",
      "url": "http://dnd5eapi.co/api/spells/7"
    },

    ...

  ]
}

NamedAPIResourceList

Name Description Data Type
count Total number of resource available from this API integer
results A list of named API resource lists list NamedAPIResource
{
  "count": 12,
  "results": [
    {
      "class": "Barbarian",
      "url": "http://dnd5eapi.co/api/tables/1"
    },
    {
      "class": "Bard",
      "url": "http://dnd5eapi.co/api/tables/2"
    },
    {
      "class": "Cleric",
      "url": "http://dnd5eapi.co/api/tables/3"
    },
    {
      "class": "Druid",
      "url": "http://dnd5eapi.co/api/tables/4"
    },
    
    ...

  ]
}

ClassAPIResourceList

Name Description Data Type
count Total number of resource available from this API integer
results A list of class API resource lists list NamedAPIResource

Character Data

Ability Scores

Each of a creature’s abilities has a score, a number that defines the magnitude of that ability. An ability score is not just a measure of innate capabilities, but also encompasses a creature’s training and competence in activities related to that ability.

GET api/ability-scores/{index}

{
  "_id": "58674d69c9e7ce9f72145677",
  "index": 1,
  "name": "STR",
  "full_name": "Strength",
  "desc": [
    "Strength measures bodily power, athletic training, and the extent to which you can exert raw physical force.",
    "A Strength check can model any attempt to lift, push, pull, or break something, to force your body through a space, or to otherwise apply brute force to a situation. The Athletics skill reflects aptitude in certain kinds of Strength checks."
  ],
  "skills": [
    {
      "name": "Athletics",
      "url": "http://dnd5eapi.co/api/skills/4"
    }
  ],
  "url": "http://dnd5eapi.co/api/ability-scores/1"
}

Ability Score

Name Description Data Type
_id The string _id used by the database for this ability score resource string
index The ability score index for shorthand searching integer
name The abbreviated name for this ability score string
full_name The full name for this ability scores string
desc A brief description on this ability score and its uses/td> list string
skills A list of skills that uses this ability score list NamedAPIResource (Skills)
url The URL of the referenced resource string

Skills

Each ability covers a broad range of capabilities, including skills that a character or a monster can be proficient in. A skill represents a specific aspect of an ability score, and an individual’s proficiency in a skill demonstrates a focus on that aspect.

GET api/skills/{index}

{
	"_id": "58674b98c9e7ce9f7214566a",
	"index": 3,
	"name": "Arcana",
	"desc": [
		"Your Intelligence (Arcana) check measures your ability to recall lore about spells, magic items, eldritch symbols, magical traditions, the planes of existence, and the inhabitants of those planes."
	],
	"ability_score": {
		"url": "http://dnd5eapi.co/api/ability-scores/4",
		"name": "INT"
	},
	"url": "http://dnd5eapi.co/api/skills/3"
}

Skill

Name Description Data Type
_id The string _id used by the database for this skill resource string
index The skill index for shorthand searching integer
name The abbreviated name for this skill string
desc A brief description on this skill and its uses/td> list string
ability_score The ability score associated with this skill. list NamedAPIResource (Ability Score)
url The URL of the referenced resource string

Proficiencies

By virtue of your race, your character can speak, read, and write certain Proficiencies.

GET api/proficiencies/{index or class}

{
  "_id": "58c655aac9e7ce9f7214da02",
  "index": 2,
  "type": "Armor",
  "name": "Medium armor",
  "classes": [
    {
      "name": "Barbarian",
      "url": "http://dnd5eapi.co/api/classes/1"
    },
    {
      "name": "Cleric",
      "url": "http://dnd5eapi.co/api/classes/3"
    },
    {
      "name": "Druid",
      "url": "http://dnd5eapi.co/api/classes/4"
    },
    {
      "name": "Ranger",
      "url": "http://dnd5eapi.co/api/classes/8"
    }
  ],
  "races": [],
  "url": "http://dnd5eapi.co/api/proficiencies/2"
}

Proficiency

Name Description Data Type
_id The string _id used by the database for this proficiency resource string
index The proficiency index for shorthand searching integer
type The general category of the proficiency string
name The name of this proficiency resource string
classes Classes that start with this proficiency. list NamedAPIResource (Class)
races Races that start with this proficiency. list NamedAPIResource (Race)
url The URL of the referenced resource string

Languages

By virtue of your race, your character can speak, read, and write certain languages.

GET api/languages/{index}

{
	"_id": "58617b4bc9e7ce9f7214352d",
	"index": 1,
	"name": "Common",
	"type": "Standard",
	"typical_speakers": [
		"Humans"
	],
	"script": "Common",
	"url": "http://dnd5eapi.co/api/languages/1"
}

Language

Name Description Data Type
_id The string _id used by the database for this language resource string
index The language index for shorthand searching integer
name The name of this language resource string
type Whether the language is standard or exotic string
typical_speakers Races that tend to speak this language array string
script The script used for writing in this language string
url The URL of the referenced resource string

Classes

Classes

A character class is a fundamental part of the identity and nature of characters in the Dungeons & Dragons role-playing game. A character's capabilities, strengths, and weaknesses are largely defined by its class. A character's class affects a character's available skills and abilities.

GET api/classes/{index or class}

{
  "_id": "58c9eb6bc9e7ce9f7214efa7",
  "index": 11,
  "name": "Warlock",
  "hit_die": 8,
  "proficiency_choices": [
    {
      "from": [
        {
          "name": "Skill: Arcana",
          "url": "http://dnd5eapi.co/api/proficiencies/107"
        },
        {
          "name": "Skill: Deception",
          "url": "http://dnd5eapi.co/api/proficiencies/109"
        },
        {
          "name": "Skill: History",
          "url": "http://dnd5eapi.co/api/proficiencies/110"
        },
        {
          "name": "Skill: Intimidation",
          "url": "http://dnd5eapi.co/api/proficiencies/112"
        },
        {
          "name": "Skill: Investigation",
          "url": "http://dnd5eapi.co/api/proficiencies/113"
        },
        {
          "name": "Skill: Nature",
          "url": "http://dnd5eapi.co/api/proficiencies/115"
        },
        {
          "name": "Skill: Religion",
          "url": "http://dnd5eapi.co/api/proficiencies/119"
        }
      ],
      "type": "proficiencies",
      "choose": 2
    }
  ],
  "proficiencies": [
    {
      "url": "http://dnd5eapi.co/api/proficiencies/1",
      "name": "Light armor"
    },
    {
      "url": "http://dnd5eapi.co/api/proficiencies/19",
      "name": "Simple weapons"
    }
  ],
  "saving_throws": [
    {
      "url": "http://dnd5eapi.co/api/ability-scores/5",
      "name": "WIS"
    },
    {
      "url": "http://dnd5eapi.co/api/ability-scores/6",
      "name": "CHA"
    }
  ],
  "starting_equipment": {
    "url": "http://dnd5eapi.co/api/startingequipment/11",
    "class": "Warlock"
  },
  "class_levels": {
    "url": "http://dnd5eapi.co/api/Warlock/levels",
    "class": "Warlock"
  },
  "subclasses": [
    {
      "name": "Fiend",
      "url": "http://dnd5eapi.co/api/subclasses/11"
    }
  ],
  "spellcasting": {
    "url": "http://dnd5eapi.co/api/spellcasting/7",
    "class": "Warlock"
  },
  "url": "http://dnd5eapi.co/api/classes/11"
}

Class

Name Description Data Type
_id The string _id used by the database for this class resource string
index The class index for shorthand searching. integer
name The name for this class resource string
hit_die The hit die of the class. (ex: 12 == 1d12) integer
proficiency_choices Starting proficiencies where the player must choose a certain number from the given list of proficiencies. list Choice (Proficiencies)
proficiencies Starting proficiencies all new characters of this class start with. list NamedAPIResource (Proficiencies)
starting_equipment An object with the possible choices of equipment for new characters of this class. ClassAPIResource (StartingEquipment)
class_levels All possible levels that this class can obtain (excluding subclass-specific features) list Levels
subclasses All possible subclasses that this class can specialize in. list NamedAPIResource (Subclass)
spellcasting The reference object for the class's spellcasting. Contains information such as spells known, spellcasting ability, and cantrips known. ClassAPIResource (Spellcasting)
url The URL reference of this resource. string

Subclasses

Subclasses reflect the different paths a class may take as levels are gained.

GET api/subclasses/{index or name}

{
	"_id": "58674419c9e7ce9f72145635",
	"index": 5,
	"class": {
		"url": "http://dnd5eapi.co/api/classes/5",
		"name": "Fighter"
	},
	"name": "Champion",
	"subclass_flavor": "Martial Archetype",
	"desc": [
		"The archetypal Champion focuses on the development of raw physical power honed to deadly perfection. Those who model themselves on this archetype combine rigorous training with physical excellence to deal devastating blows."
	],
	"features": "http://dnd5eapi.co/api/features/fighter/?subclass=Champion",
	"url": "http://dnd5eapi.co/api/subclasses/5"
}

Subclass

Name Description Data Type
_id The string _id used by the database for this subclass resource string
index The subclass index for shorthand searching. integer
name The name for this subclass resource string
class The parent class for this subclass. NamedAPIResource (Class)
subclass_flavor The lore-friendly flavor text for a classes respective subclasses. string
desc Desription of the subclass resource. string
features All possible features that this subclassclass can obtain. list NamedAPIResource (Features)
url The URL reference of this resource. string

Features

When you gain a new level in a class, you get its features for that level. You don’t, however, receive the class’s starting Equipment, and a few features have additional rules when you’re multiclassing: Channel Divinity, Extra Attack, Unarmored Defense, and Spellcasting.

GET api/features/{index}

{
	"_id": "586865bec9e7ce9f72145f88",
	"index": 300,
	"name": "Elusive",
	"level": 18,
	"url": "http://dnd5eapi.co/api/features/300",
	"desc": [
		"Beginning at 18th level, you are so evasive that attackers rarely gain the upper hand against you. No attack roll has advantage against you while you aren’t incapacitated."
	],
	"class": {
		"url": "http://dnd5eapi.co/api/classes/9",
		"name": "Rogue"
	}
}

Condition

Name Description Data Type
_id The string _id used by the database for this feature resource string
index The feature index for shorthand searching integer
name The name for this feature resource string
level The level this feature is gained. integer
class The class that gains this feature. NamedAPIResource (Class)
subclass The subclass that gains feature resource NamedAPIResource (Subclass)
desc A brief description of the feature list string
url The URL of the referenced resource string

Levels

Object that describes character advancements for every level gained.

GET api/classes/{class name}/level/{integer 1-20}

{
  "_id": "58f40badc9e7ce9f7215344f",
  "level": 1,
  "ability_score_bonuses": 0,
  "prof_bonus": 2,
  "feature_choices": [],
  "features": [
    {
      "url": "http://www.dnd5eapi.co/api/features/71",
      "name": "Spellcasting"
    },
    {
      "url": "http://www.dnd5eapi.co/api/features/72",
      "name": "Divine Domain"
    },
    {
      "url": "http://www.dnd5eapi.co/api/features/73",
      "name": "Domain Spells 1"
    }
  ],
  "spellcasting": {
    "cantrips_known": 3,
    "spells_known": 4,
    "spell_slots_level_1": 2,
    "spell_slots_level_2": 0,
    "spell_slots_level_3": 0,
    "spell_slots_level_4": 0,
    "spell_slots_level_5": 0,
    "spell_slots_level_6": 0,
    "spell_slots_level_7": 0,
    "spell_slots_level_8": 0,
    "spell_slots_level_9": 0
  },
  "class_specific": {
    "channel_divinity_charges": 0,
    "destroy_undead_cr": 0
  },
  "index": 41,
  "class": {
    "name": "Cleric",
    "url": "http://www.dnd5eapi.co/api/classes/cleric"
  },
  "url": "http://www.dnd5eapi.co/api/classes/cleric/level/1"
}

Level

Name Description Data Type
_id The string _id used by the database for this class resource string
index The level index for shorthand searching<. integer
level The number value for the current level object. integer
ability_score_bonuses Total number of ability score bonuses gained, added from previous levels. integer
prof_bonus Proficiency bonus for this class at the specified level. integer
feature_choices Special features which require a player to choose a new feature to be added. list NamedAPIResource (Features)
features Features automatically gained by players at this level. list NamedAPIResource (Features)
spellcasting Information regarding spellcasting, such as spell slots and number of cantrips. object
class_specific Class specific information such as dice values for bard songs and number of warlock invocations. object
class The class which this level refers to. NamedAPIResource (Class)
url The URL reference of this resource. string

Races

Races

Each race grants your character ability and skill bonuses as well as racial traits.

GET api/races/{index}

{
  "_id": "58f40b94c9e7ce9f7215325f",
  "index": 1,
  "name": "Dwarf",
  "speed": 30,
  "ability_bonuses": [
    0,
    0,
    2,
    0,
    0,
    0
  ],
  "alignment": "Most dwarves are lawful, believing firmly in the benefits of a well-ordered society. They tend toward good as well, with a strong sense of fair play and a belief that everyone deserves to share in the benefits of a just order.",
  "age": "Dwarves mature at the same rate as humans, but they’re considered young until they reach the age of 50. On average, they live about 350 years.",
  "size": "Medium",
  "size_description": "Dwarves stand between 4 and 5 feet tall and average about 150 pounds. Your size is Medium.",
  "starting_proficiencies": [
    {
      "name": "Battleaxes",
      "url": "http://www.dnd5eapi.co/api/proficiencies/20"
    },
    {
      "name": "Handaxes",
      "url": "http://www.dnd5eapi.co/api/proficiencies/24"
    },
    {
      "name": "Light hammers",
      "url": "http://www.dnd5eapi.co/api/proficiencies/26"
    },
    {
      "name": "Warhammers",
      "url": "http://www.dnd5eapi.co/api/proficiencies/51"
    },
    {
      "from": [
        {
          "name": "Smith's tools",
          "url": "http://www.dnd5eapi.co/api/proficiencies/71"
        },
        {
          "name": "Brewer's supplies",
          "url": "http://www.dnd5eapi.co/api/proficiencies/59"
        },
        {
          "name": "Mason's tools",
          "url": "http://www.dnd5eapi.co/api/proficiencies/68"
        }
      ],
      "type": "proficiencies",
      "choose": 1
    }
  ],
  "languages": [
    {
      "name": "Common",
      "url": "http://www.dnd5eapi.co/api/languages/1"
    },
    {
      "name": "Dwarvish",
      "url": "http://www.dnd5eapi.co/api/languages/2"
    }
  ],
  "language_desc": "You can speak, read, and write Common and Dwarvish. Dwarvish is full of hard consonants and guttural sounds, and those characteristics spill over into whatever other language a dwarf might speak.",
  "traits": [
    {
      "url": "http://www.dnd5eapi.co/api/traits/1",
      "name": "Darkvision (Dwarf)"
    },
    {
      "url": "http://www.dnd5eapi.co/api/traits/2",
      "name": "Dwarven Resilience"
    },
    {
      "url": "http://www.dnd5eapi.co/api/traits/3",
      "name": "Stonecunning"
    }
  ],
  "subraces": [
    {
      "name": "Hill Dwarf",
      "url": "http://www.dnd5eapi.co/api/subraces/1"
    }
  ],
  "url": "http://www.dnd5eapi.co/api/races/1"
}

Class

Name Description Data Type
_id The string _id used by the database for this race resource string
index The race index for shorthand searching. string
name The name for this race resource string
speed Base move speed for this race (in feet per round) integer
ability_bonuses Racial bonuses to each of the six ability scores array (integer)
alignment Flavor description of likely alignments this race takes. string
age Flavor description of possible ages for this race string
size Size class of this race string
size_description Flavor description of height and weight for this race string
starting_proficiencies Starting proficiencies for all new characters of this race list NamedAPIResource (Proficiencies)
languages Starting languages for all new characters of this race list NamedAPIResource (Proficiencies)
language_desc Flavor description of the languages this race knows string
traits Racial traits that provide benefits to its members list NamedAPIResource (Trait)
subraces The reference object for the class's spellcasting. Contains information such as spells known, spellcasting ability, and cantrips known. NamedAPIResource (Subrace)
url The URL reference of this resource. string

Subraces

Subraces reflect the different varieties of a certain parent race

GET api/subraces/{index or race}

{
  "_id": "58f40b5dc9e7ce9f721530f9",
  "index": 1,
  "name": "Hill Dwarf",
  "race": {
    "url": "http://www.dnd5eapi.co/api/races/1",
    "name": "Dwarf"
  },
  "desc": "As a hill dwarf, you have keen senses, deep intuition, and remarkable resilience.",
  "ability_bonuses": [
    0,
    0,
    0,
    0,
    1,
    0
  ],
  "starting_proficiencies:": [],
  "languages": [],
  "racial_traits": [
    {
      "name": "Dwarven Toughness",
      "url": "http://www.dnd5eapi.co/api/traits/4"
    }
  ],
  "url": "http://www.dnd5eapi.co/api/subraces/1"
}

subrace

Name Description Data Type
_id The string _id used by the database for this subrace resource string
index The subrace index for shorthand searching. integer
name The name for this subrace resource string
race The parent race for this subrace. NamedAPIResource (Race)
desc Flavor description of this subrace string
ability_bonuses Additional ability bonuses granted by this sub race array (integer)
starting_proficiencies Starting proficiencies for all new characters of this subrace list NamedAPIResource (Proficiencies)
languages Starting languages for all new characters of this subrace list NamedAPIResource (Proficiencies)
traits Racial traits that provide benefits to its members list NamedAPIResource (Trait)
url The URL reference of this resource. string

Equipment

Equipment

Opportunities abound to find treasure, equipment, weapons, armor, and more in the dungeons you explore. Normally, you can sell your treasures and trinkets when you return to a town or other settlement, provided that you can find buyers and merchants interested in your loot.

GET api/equipment/{index}

{
  "_id": "58676431c9e7ce9f721456d4",
  "index": 1,
  "name": "Club",
  "type": "Weapon",
  "subtype:": "Simple",
  "weapon_range": "Melee",
  "weapon_category": "Simple Melee",
  "cost": {
    "quantity": 1,
    "unit": "sp"
  },
  "damage": {
    "dice_count": 1,
    "dice_value": 4,
    "damage_type": {
      "url": "http://dnd5eapi.co/api/damage-types/2",
      "name": "Bludgeoning"
    }
  },
  "weight": 2,
  "properties": [
    "light",
    "monk"
  ],
  "url": "http://dnd5eapi.co/api/equipment/1"
}

Weapon

Name Description Data Type
_id The string _id used by the database for this damage type resource string
index The damage type index for shorthand searching integer
name The name for this damage type resource string
type A brief description of the damage type list string
subtype A brief description of the damage type list string
weapon_range A brief description of the damage type list string
weapon_category A brief description of the damage type list string
cost A brief description of the damage type list string
damage A brief description of the damage type list string
weight A brief description of the damage type list string
properties A brief description of the damage type list string
url The URL of the referenced resource string

GET api/equipment/{index}

{
  "_id": "5867adbbc9e7ce9f7214598b",
  "index": 38,
  "name": "Padded",
  "type": "Armor",
  "subtype:": "Light",
  "armor_class": {
    "base": 11,
    "dex_bonus": true,
    "max_bonus": 1000
  },
  "strength": 0,
  "stealth": "Disadvantage",
  "weight": 8,
  "cost": {
    "quantity": 5,
    "unit": "gp"
  },
  "url": "http://dnd5eapi.co/api/equipment/38"
}

Armor

Name Description Data Type
_id The string _id used by the database for this damage type resource string
index The damage type index for shorthand searching integer
name The name for this damage type resource string
type A brief description of the damage type list string
subtype A brief description of the damage type list string
weapon_range A brief description of the damage type list string
weapon_category A brief description of the damage type list string
cost A brief description of the damage type list string
damage A brief description of the damage type list string
weight A brief description of the damage type list string
properties A brief description of the damage type list string
url The URL of the referenced resource string

Game Mechanics

Conditions

Conditions alter a creature’s capabilities in a variety of ways and can arise as a result of a spell, a class feature, a monster’s attack, or other effect. Most conditions, such as blinded, are impairments, but a few, such as invisible, can be advantageous.

GET api/conditions/{index}

{
  "_id": "586762a5c9e7ce9f721456c4",
  "index": 1,
  "name": "Blinded",
  "desc": [
    "• A blinded creature can’t see and automatically fails any ability check that requires sight.",
    "• Attack rolls against the creature have advantage, and the creature’s attack rolls have disadvantage."
  ],
  "url": "http://dnd5eapi.co/api/conditions/1"
}

Condition

Name Description Data Type
_id The string _id used by the database for this condition resource string
index The condition index for shorthand searching integer
name The name for this condition resource string
desc A brief description of the condition list string
url The URL of the referenced resource string

Damage Types

Different attacks, damaging spells, and other harmful effects deal different types of damage. Damage types have no rules of their own, but other rules, such as damage resistance, rely on the types.

GET api/damage-types/{index}

{
  "_id": "5867a51fc9e7ce9f72145941",
  "index": 1,
  "name": "Acid",
  "desc": [
    "The corrosive spray of a black dragon’s breath and the dissolving enzymes secreted by a black pudding deal acid damage."
  ],
  "url": "http://dnd5eapi.co/api/damage-types/1"
}

Damage Type

Name Description Data Type
_id The string _id used by the database for this damage type resource string
index The damage type index for shorthand searching integer
name The name for this damage type resource string
desc A brief description of the damage type list string
url The URL of the referenced resource string

Magic Schools

Academies of magic group spells into eight categories called schools of magic. Scholars, particularly wizards, apply these categories to all spells, believing that all magic functions in essentially the same way, whether it derives from rigorous study or is bestowed by a deity.

GET api/magic-schools/{index}

{
	"_id": "58b73e07c9e7ce9f7214c3bb",
	"index": 1,
	"name": "Abjuration",
	"url": "http://dnd5eapi.co/api/magic-schools/1"
}

Magic School

Name Description Data Type
_id The string _id used by the database for this magic school resource string
index The magic school index for shorthand searching integer
name The name for this magic school resource string
desc A brief description of the magic school list string
url The URL of the referenced resource string

Common Models

Common Models

NamedAPIResource

Name Description Data Type
name The name of the referenced resource string
url The URL of the referenced resource string

ClassAPIResource

Name Description Data Type
class The class of whom the resource belongs to string
url The URL of the referenced resource string

Choice

Name Description Data Type
choose The number of items to pick from the list integer
type The type of the resources to choose from string
from A list of resources to choose from list APIResource

Cost

Name Description Data Type
quantity The numerical amount of coins integer
unit The unit of coinage string