Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/dndencounter-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}