Aller au contenu
GET /v1/arithmetic

Roman arithmetic

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/roman-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}