/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/railway-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/railway-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/railway-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/railway-api/v1/meta",
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": {
"notes": "US units (hp, mph, tons, lbf). TE = 375·hp·eff/speed; grade resistance = 20·tons·grade%; curve = 0.8·tons·deg; adhesion TE = coeff·driver-weight. Excludes Davis rolling/air resistance. For highway curves use a horizontal-curve API.",
"service": "railway-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/adhesion": "Maximum starting tractive effort from adhesion.",
"GET /v1/resistance": "Grade and curve resistance for a train.",
"GET /v1/tractive-effort": "Tractive effort from power and speed."
},
"description": "Railway train-performance maths: tractive effort at speed, grade/curve resistance, and adhesion-limited starting effort."
},
"meta": {
"timestamp": "2026-06-07T08:17:58.368Z",
"request_id": "0c2a4931-2993-49fc-a656-98c2645be0a4"
},
"status": "ok",
"message": "Meta",
"success": true
}