Zum Inhalt springen
GET /v1/simple

Simple pendulum

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/pendulum-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/pendulum-api/v1/simple" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pendulum-api/v1/simple", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pendulum-api/v1/simple");
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/pendulum-api/v1/simple",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Small-angle (θ→0) period. Pass an 'amplitude' in degrees for the large-angle correction.",
        "inputs": {
            "length": 1,
            "gravity": 9.81,
            "amplitude_deg": 0
        },
        "period_s": 2.006067,
        "solved_for": null,
        "frequency_hz": 0.498488,
        "angular_frequency": 3.132092,
        "large_angle_period_s": 2.006067,
        "large_angle_correction_factor": 1
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:37.255Z",
        "request_id": "c568febb-7005-4197-891d-a273dac0dd5a"
    },
    "status": "ok",
    "message": "Simple pendulum",
    "success": true
}