/v1/meta
Spec
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/starmagnitude-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starmagnitude-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starmagnitude-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/starmagnitude-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"notes": "Magnitudes are dimensionless (smaller = brighter); distance in parsecs (also reported in light-years and AU). 1 pc = 3.26156 ly = 206264.8 AU.",
"service": "starmagnitude-api",
"formulae": {
"parallax": "d(pc) = 1 / p(arcsec)",
"brightness_ratio": "F₁/F₂ = 10^(0.4·(m₂−m₁))",
"distance_modulus": "m − M = 5·log₁₀(d/pc) − 5"
},
"endpoints": {
"GET /v1/flux": "Brightness ratio from a magnitude difference (or the difference from a ratio).",
"GET /v1/meta": "This document.",
"GET /v1/parallax": "Distance from a parallax angle, or the parallax for a distance.",
"GET /v1/magnitude": "Distance modulus — any two of apparent m, absolute M and distance give the third."
},
"description": "Stellar magnitude and distance calculator: the distance modulus relating apparent magnitude, absolute magnitude and distance; the brightness ratio between two magnitudes (Pogson); and the distance from a parallax angle."
},
"meta": {
"timestamp": "2026-06-04T18:38:03.215Z",
"request_id": "ec62c3c0-0478-4816-9d6a-b5d9f4635be4"
},
"status": "ok",
"message": "Meta",
"success": true
}