/v1/flux
Brightness ratio
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/starmagnitude-api/v1/flux" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/starmagnitude-api/v1/flux", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/starmagnitude-api/v1/flux");
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/flux",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"note": "Pogson: a difference of 5 magnitudes is exactly a 100× brightness ratio. F₁/F₂ = 10^(0.4·(m₂−m₁)).",
"inputs": {
"source": "two_magnitudes",
"magnitude_difference": 5
},
"brightness_ratio": 100,
"magnitude_difference": 5
},
"meta": {
"timestamp": "2026-06-04T18:38:02.891Z",
"request_id": "c89b0dff-7b86-4b08-9387-a69018f8c3de"
},
"status": "ok",
"message": "Brightness ratio",
"success": true
}