Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/dndencounter-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/dndencounter-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dndencounter-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dndencounter-api/v1/meta");
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/dndencounter-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "notes": "Party as party_size + party_level, or a 'levels' list for mixed parties (1–20). Monster XP as a comma list. Uses the DMG thresholds and encounter multipliers.",
        "service": "dndencounter-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/carry": "Carrying capacity, push/drag/lift and encumbrance from Strength and size.",
            "GET /v1/budget": "Easy/medium/hard/deadly XP thresholds and the daily budget for a party.",
            "GET /v1/difficulty": "Adjusted XP and difficulty rating for a set of monsters vs a party."
        },
        "description": "D&D 5e encounter maths: party XP thresholds, encounter difficulty with the monster-count multiplier, and carrying capacity."
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:07.890Z",
        "request_id": "33022ed8-44cb-4ff8-8b27-9b487e6c79d2"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}