/v1/list
List / filter any resource type
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/dnd-api/v1/list" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dnd-api/v1/list", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dnd-api/v1/list");
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/list",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"type": "spells",
"count": 42,
"results": [
{
"name": "Animate Dead",
"index": "animate-dead"
},
{
"name": "Beacon of Hope",
"index": "beacon-of-hope"
},
{
"name": "Bestow Curse",
"index": "bestow-curse"
},
{
"name": "Blink",
"index": "blink"
},
{
"name": "Call Lightning",
"index": "call-lightning"
},
{
"name": "Clairvoyance",
"index": "clairvoyance"
},
{
"name": "Conjure Animals",
"index": "conjure-animals"
},
{
"name": "Counterspell",
"index": "counterspell"
},
{
"name": "Create Food and Water",
"index": "create-food-and-water"
},
{
"name": "Daylight",
"index": "daylight"
},
{
"name": "Dispel Magic",
"index": "dispel-magic"
},
{
"name": "Fear",
"index": "fear"
},
{
"name": "Fireball",
"index": "fireball"
},
{
"name": "Fly",
"index": "fly"
},
{
"name": "Gaseous Form",
"index": "gaseous-form"
},
{
"name": "Glyph of Warding",
"index": "glyph-of-warding"
},
{
"name": "Haste",
"index": "haste"
},
{
"name": "Hypnotic Pattern",
"index": "hypnotic-pattern"
},
{
"name": "Lightning Bolt",
"index": "lightning-bolt"
},
{
"name": "Magic Circle",
"index": "magic-circle"
},
{
"name": "Major Image",
"index": "major-image"
},
{
"name": "Mass Healing Word",
"index": "mass-healing-word"
},
{
"name": "Meld Into Stone",
"index": "meld-into-stone"
},
{
"name": "Nondetection",
"index": "nondetection"
},
{
"name": "Phantom Steed",
"index": "phantom-steed"
},
{
"name": "Plant Growth",
"index": "plant-growth"
},
{
"name": "Protection From Energy",
"index": "pr
…