← Развлечения

Подробности заклинания D&D

GET /dnd/spells/:name

Получение полных данных о конкретном заклинании D&D 5e по имени или ключу индекса. Возвращает уровень заклинания, школу магии, время произнесения, дальность, компоненты (вербальный, соматический, материальный), длительность, описание, кости урона, тип спасброска и какие классы могут его выучить. Данные из официального SRD 5e через D&D 5e API. Незаменимо для цифровых листов персонажей, трекеров ячеек заклинаний и справочных инструментов для боя.

Параметры

название обязательный

Spell name or index (e.g., fireball, magic-missile)

Примеры запросов

Базовое использование
curl https://nordapi.ee/api/v1/dnd/spells/fireball
Fireball spell details
curl https://nordapi.ee/api/v1/dnd/spells/fireball
Magic Missile spell details
curl https://nordapi.ee/api/v1/dnd/spells/magic-missile
Healing Word spell details
curl https://nordapi.ee/api/v1/dnd/spells/healing-word

Ответ в реальном времени

{
  "data": {
    "casting_time": "1 action",
    "classes": [
      "Sorcerer",
      "Wizard"
    ],
    "components": [
      "V",
      "S",
      "M"
    ],
    "desc": "A bright streak flashes from your pointing finger to a point you choose within range and then blossoms with a low roar into an explosion of flame. Each creature in a 20-foot-radius sphere centered on that point must make a dexterity saving throw. A target takes 8d6 fire damage on a failed save, or half as much damage on a successful one. The fire spreads around corners. It ignites flammable objects in the area that aren't being worn or carried.",
    "duration": "Instantaneous",
    "higher_level": "When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d6 for each slot level above 3rd.",
    "level": 3,
    "name": "Fireball",
    "range": "150 feet",
    "school": "Evocation"
  },
  "success": true
}