/v1/meta
Spec
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}