/v1/meta
Spec
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"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
}