/v1/component
Crosswind & headwind components
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/crosswind-api/v1/component" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crosswind-api/v1/component", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crosswind-api/v1/component");
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/crosswind-api/v1/component",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Crosswind = wind·sin(θ), headwind = wind·cos(θ), where θ is the angle between the wind direction and the runway heading. A 30° offset at 20 kt gives 10 kt crosswind and 17.3 kt headwind.",
"inputs": {
"wind_speed": 20,
"runway_heading": 90,
"wind_direction": 120
},
"headwind": 17.3205,
"tailwind": 0,
"crosswind": 10,
"head_or_tail": "headwind",
"angle_off_deg": 30,
"crosswind_from": "right"
},
"meta": {
"timestamp": "2026-06-05T19:50:18.398Z",
"request_id": "6d505d52-21c6-45cf-b6cd-2be86636e740"
},
"status": "ok",
"message": "Wind components",
"success": true
}