/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/servo-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/servo-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/servo-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/servo-api/v1/meta",
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": {
"notes": "µs, degrees, Hz, %. angle = (pulse−min)/(max−min)×travel; pulse = min+(angle/travel)×span; duty = pulse/period, period = 1e6/freq. RC servos are pulse-width, not duty, devices. For stepper steps/mm use a stepper-motor API.",
"service": "servo-api",
"endpoints": {
"GET /v1/duty": "PWM period and duty cycle from a pulse and refresh frequency.",
"GET /v1/meta": "This document.",
"GET /v1/angle": "Servo angle from a pulse width (and min/max/travel).",
"GET /v1/pulse": "Pulse width for a target angle."
},
"description": "RC servo / PWM maths: servo angle from a pulse width, pulse width for an angle, and PWM period and duty cycle."
},
"meta": {
"timestamp": "2026-06-06T23:53:51.519Z",
"request_id": "e090cfdd-debf-4225-bd7a-3e4b3bc5436c"
},
"status": "ok",
"message": "Meta",
"success": true
}