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/chaindrive-api

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/chaindrive-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/chaindrive-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/chaindrive-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/chaindrive-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": "US units (inches, teeth, rpm). L = 2C + (N1+N2)/2 + ((N2−N1)/2π)²/C (round up to even); PCD = pitch/sin(180°/N); speed = pitch·teeth·rpm/12. ANSI #40 = 0.5\" pitch. For gear ratios use a gear-ratio API; for belts use a pulley API.",
        "service": "chaindrive-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/speed": "Chain linear speed from teeth, pitch and rpm.",
            "GET /v1/sprocket": "Sprocket pitch and outside diameter from teeth and pitch.",
            "GET /v1/chain-length": "Chain length (pitches & inches) from sprocket teeth, pitch and centre distance."
        },
        "description": "Roller-chain drive maths: chain length from sprockets and centre distance, sprocket pitch/outside diameter, and chain linear speed."
    },
    "meta": {
        "timestamp": "2026-06-06T23:53:58.683Z",
        "request_id": "ca8c53ab-0388-4d6a-b452-c4c0b48cd93b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}