/v1/of
X percent of a value
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/percentage-api/v1/of" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/percentage-api/v1/of", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/percentage-api/v1/of");
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/percentage-api/v1/of",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"value": 200,
"result": 30,
"percent": 15
},
"meta": {
"timestamp": "2026-06-03T01:09:42.254Z",
"request_id": "b23d3ed9-9ec0-45be-a01a-f3a4ffb6d662"
},
"status": "ok",
"message": "X percent of Y",
"success": true
}