Vai al contenuto
GET /v1/arithmetic

Roman arithmetic

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

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

{
    "data": {
        "note": "Operands may be given as integers or Roman numerals. The result must stay within 1–3999 to be expressible in standard Roman notation.",
        "inputs": {
            "a": 14,
            "b": 6,
            "operation": "add"
        },
        "result_roman": "XX",
        "result_value": 20,
        "operands_roman": {
            "a": "XIV",
            "b": "VI"
        }
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:34.630Z",
        "request_id": "df39ed36-664a-43c3-8d4e-e0d4d78f2e34"
    },
    "status": "ok",
    "message": "Roman arithmetic",
    "success": true
}