/v1/parallax
Parallax distance
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/starmagnitude-api/v1/parallax" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starmagnitude-api/v1/parallax", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starmagnitude-api/v1/parallax");
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/starmagnitude-api/v1/parallax",
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": {
"note": "Distance (pc) = 1 / parallax (arcseconds). 1 parsec is the distance at which 1 AU subtends 1 arcsecond.",
"inputs": {
"parallax_mas": 768.7,
"parallax_arcsec": 0.7687
},
"distance_au": 268329.395,
"distance_ly": 4.242960553,
"distance_pc": 1.300897619
},
"meta": {
"timestamp": "2026-06-04T18:38:03.115Z",
"request_id": "d515db9a-c1f4-4e4b-baac-648268361fbf"
},
"status": "ok",
"message": "Parallax distance",
"success": true
}