Naar de inhoud
GET /v1/arithmetic

Roman arithmetic

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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