/v1/roll
Roll a dice notation
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/dice-api/v1/roll" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dice-api/v1/roll", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dice-api/v1/roll");
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/dice-api/v1/roll",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"count": 1,
"total": 19,
"results": [
{
"total": 19,
"breakdown": [
{
"dice": "3d6",
"kept": [
6,
6,
5
],
"rolls": [
6,
6,
5
],
"subtotal": 17
},
{
"modifier": 2
}
]
}
],
"notation": "3d6+2"
},
"meta": {
"timestamp": "2026-05-30T14:35:20.351Z",
"request_id": "c80dddba-aa49-46dc-89c6-fc1abf6992ba"
},
"status": "ok",
"message": "OK",
"success": true
}