Vai al contenuto
GET /v1/meta

Spec

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/pendulum-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "notes": "Idealised, no air resistance or string mass. Default g = 9.81 m/s². The simple-pendulum period is the small-angle limit unless an amplitude is given.",
        "service": "pendulum-api",
        "formulae": {
            "simple": "T = 2π·√(L/g)",
            "conical": "T = 2π·√(L·cosθ/g),  r = L·sinθ,  tension = m·g/cosθ",
            "physical": "T = 2π·√(I/(m·g·d)),  L_eq = I/(m·d)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/simple": "Simple pendulum period T = 2π√(L/g); solves length from a period; optional large-angle correction.",
            "GET /v1/conical": "Conical pendulum period, circle radius, bob speed and string tension.",
            "GET /v1/physical": "Physical/compound pendulum T = 2π√(I/(m·g·d)) and the equivalent simple-pendulum length."
        },
        "description": "Gravity-driven pendulum calculator: simple, physical (compound) and conical pendulum periods, frequencies and dynamics under constant gravity."
    },
    "meta": {
        "timestamp": "2026-06-04T10:18:37.380Z",
        "request_id": "b516af10-1ae9-413f-abb1-c9e8c2311cba"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}