Skip to content
GET /v1/pendulum

Simple pendulum period

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/vibration-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "formula": "T = 2π·√(L/g); ωn = √(g/L); valid for small swings.",
        "length_m": 1,
        "period_s": 2.006409,
        "gravity_ms2": 9.80665,
        "frequency_hz": 0.498403,
        "angular_frequency_rad_s": 3.131557
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:49.743Z",
        "request_id": "d1c176ff-4a73-4acf-b6e3-a31862023735"
    },
    "status": "ok",
    "message": "Simple pendulum",
    "success": true
}