/v1/monster
A monster statblock by index or name
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/dnd-api/v1/monster" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dnd-api/v1/monster", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dnd-api/v1/monster");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/dnd-api/v1/monster",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"monster": {
"xp": 18000,
"name": "Adult Red Dragon",
"size": "Huge",
"type": "dragon",
"index": "adult-red-dragon",
"speed": {
"fly": "80 ft.",
"walk": "40 ft.",
"climb": "40 ft."
},
"senses": {
"blindsight": "60 ft.",
"darkvision": "120 ft.",
"passive_perception": 23
},
"actions": [
{
"desc": "The dragon can use its Frightful Presence. It then makes three attacks: one with its bite and two with its claws.",
"name": "Multiattack"
},
{
"desc": "Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 19 (2d10 + 8) piercing damage plus 7 (2d6) fire damage.",
"name": "Bite"
},
{
"desc": "Melee Weapon Attack: +14 to hit, reach 5 ft., one target. Hit: 15 (2d6 + 8) slashing damage.",
"name": "Claw"
},
{
"desc": "Melee Weapon Attack: +14 to hit, reach 15 ft., one target. Hit: 17 (2d8 + 8) bludgeoning damage.",
"name": "Tail"
},
{
"desc": "Each creature of the dragon's choice that is within 120 ft. of the dragon and aware of it must succeed on a DC 19 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.",
"name": "Frightful Presence"
},
{
"desc": "The dragon exhales fire in a 60-foot cone. Each creature in that area must make a DC 21 Dexterity saving throw, taking 63 (18d6) fire damage on a failed save, or half as much damage on a successful one.",
"name": "Fire Breath"
}
],
"hit_dice": "19d12",
"abilities": {
"cha": 21,
"con": 25,
"dex": 10,
"int": 16,
"str": 27,
"wis": 13
},
"alignment": "chaotic evil",
"languages": "Common, Draconic",
"hit_points": 256,
"armor_class": [
{
"type": "natural",
"value": 19
}
],
"challenge_rating": 17,
"legendary_actions": [
{
"desc": "The dragon makes a Wisdom (Perception) check.",
"name": "Detect"
},
{
…