/v1/meta
Spec
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/fraction-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fraction-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fraction-api/v1/meta");
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/fraction-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "Fraction API",
"notes": "Repeating decimals use parenthesis notation for the repeating part: 0.(3)=1/3, 0.1(6)=1/6. Values are exact via BigInt; very large numerators/denominators are returned as strings. This is fraction maths — for general expressions use a math-engine API and for prime factorization use a number-theory API. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/simplify",
"params": {
"fraction": "a fraction like 6/8 (or use numerator + denominator)",
"numerator": "the numerator (integer)",
"denominator": "the denominator (integer)"
},
"returns": "the reduced fraction, decimal, mixed number and gcd info"
},
{
"path": "/v1/calc",
"params": {
"a": "first value (n/d, integer, mixed, or decimal)",
"b": "second value",
"op": "add, subtract, multiply or divide"
},
"returns": "the simplified result fraction"
},
{
"path": "/v1/fromdecimal",
"params": {
"value": "a decimal — 0.75, or repeating like 0.1(6)"
},
"returns": "the equivalent fraction"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Exact fraction maths with arbitrary-precision integers. The simplify endpoint reduces a fraction to lowest terms and returns its decimal value, mixed-number form and whether it is whole. The calc endpoint adds, subtracts, multiplies or divides two fractions (or whole numbers, mixed numbers or decimals) and returns the simplified result. The fromdecimal endpoint turns a decimal into a fraction — exactly for terminating decimals, and precisely for repeating decimals written with parentheses (0.1(6) → 1/6). Inputs may be n/d, an integer, a mixed number like '1 1/2', or a decimal. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T17:42:21.280Z",
"request_id": "89e90731-71cb-4f0a-83f4-8056576a6ef7"
},
"status": "ok",
"message": "Meta",
"success": true
}