Skip to content
GET /v1/meta

Spec

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/solarposition-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/solarposition-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solarposition-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solarposition-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/solarposition-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "notes": "Latitude/longitude in degrees (east & north positive), date YYYY-MM-DD, time HH:MM[:SS] local, timezone the UTC offset in hours. Azimuth is clockwise from true north.",
        "service": "solarposition-api",
        "formulae": {
            "elevation": "sin(elev) = sin(lat)·sin(δ) + cos(lat)·cos(δ)·cos(H)",
            "day_length": "2·acos(−tan(lat)·tan(δ)) / 15  hours",
            "max_elevation": "90 − |latitude − declination|"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/position": "Sun elevation, azimuth, zenith and hour angle for a latitude/longitude, date and local time.",
            "GET /v1/solar-noon": "Solar-noon clock time, peak elevation and day length for a place and date.",
            "GET /v1/declination": "Solar declination and equation of time for a date (no location needed)."
        },
        "description": "Solar position calculator (NOAA algorithm): sun declination and equation of time, elevation/azimuth/zenith for a place and instant, and solar noon, peak elevation and day length."
    },
    "meta": {
        "timestamp": "2026-06-05T11:30:37.159Z",
        "request_id": "64657e03-1c57-458d-9740-5f9db365709d"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}