/v1/score
Score a Farkle roll
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/farkle-api/v1/score" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/farkle-api/v1/score", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/farkle-api/v1/score");
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/farkle-api/v1/score",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"note": "Common Farkle scoring: single 1 = 100, single 5 = 50; three of a kind = face × 100 (three 1s = 1000); four/five/six of a kind = 1000/2000/3000; a 1-6 straight or three pairs = 1500; two triplets = 2500. No scoring dice is a 'farkle' and you lose the turn's points. Rulesets vary — check your house rules.",
"score": 2500,
"farkle": false,
"inputs": {
"dice": [
1,
1,
1,
5,
5,
5
]
},
"breakdown": [
{
"combo": "two triplets",
"points": 2500
}
],
"all_dice_score": true
},
"meta": {
"timestamp": "2026-06-06T15:30:50.791Z",
"request_id": "a69b89cb-a10b-4508-b154-3c47548654a8"
},
"status": "ok",
"message": "Farkle score",
"success": true
}