Aller au contenu
GET /v1/pitch

Pitch / TPI / lead

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/thread-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "tpi": 16.9333,
        "note": "TPI = 25.4 / pitch(mm). Lead = pitch × number of starts (distance advanced per turn).",
        "starts": 1,
        "lead_in": 0.059055,
        "lead_mm": 1.5,
        "pitch_in": 0.059055,
        "pitch_mm": 1.5
    },
    "meta": {
        "timestamp": "2026-06-04T01:59:07.324Z",
        "request_id": "5d53e1b6-2f5c-4099-a5ff-0482bd1b5cf6"
    },
    "status": "ok",
    "message": "Pitch / TPI / lead",
    "success": true
}