/v1/distance
Distance from parallax
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/parallax-api/v1/distance" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/parallax-api/v1/distance", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/parallax-api/v1/distance");
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/parallax-api/v1/distance",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "d(pc) = 1/p(arcsec). A parallax of 1 arcsec is 1 parsec ≈ 3.2616 light-years. Proxima Centauri's 0.7687 arcsec gives ≈1.30 pc (4.24 ly).",
"inputs": {
"parallax_arcsec": 0.7687
},
"distance_au": 268329.3951,
"distance_parsec": 1.30089762,
"distance_light_years": 4.24296055
},
"meta": {
"timestamp": "2026-06-05T19:50:26.354Z",
"request_id": "3455a0aa-1050-4e49-af56-1271597308e8"
},
"status": "ok",
"message": "Distance from parallax",
"success": true
}