Altitude and azimuth of every body from a place
altitude_azimuthWhere the Sun, Moon and planets are in the sky from a place at a moment: altitude, azimuth, compass point, topocentric right ascension and declination, distance, elongation, illumination, magnitude and the sky state. E.g. {datetime: '2026-06-21T23:00', latitude: 48.8566, longitude: 2.3522}. For sky maps, telescope pointing, AR and observation apps: each body's apparent altitude and azimuth (with refraction, or airless), whether it is above the horizon, its topocentric right ascension and declination, distance (and the Moon's in km), angular distance from the Sun, illuminated fraction and visual magnitude (planets), plus the sky state (day, civil / nautical / astronomical twilight, night). Matches NASA/JPL Horizons to under a second of arc. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.01 per call via REST POST https://astro-agent.dev/v1/astronomy/altaz (x402 or MPP); each client gets 1 free call on the $0.01-0.02 tools, this one included.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datetime": "<datetime>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "altitude_azimuth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bodies | No | Bodies to locate. Default: all ten. | |
| options | No | Refraction settings. | |
| datetime | Yes | The moment: UTC ('2026-06-21T21:00:00Z'), with an explicit offset, or local civil time at the place ('2026-06-21T23:00', time zone resolved from the coordinates). | |
| latitude | Yes | Decimal degrees, north positive. | |
| timezone | No | IANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules). | |
| longitude | Yes | Decimal degrees, east positive. | |
| elevation_m | No | Height above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Provenance of the result. | |
| error | No | x402 offer only: why payment is required. | |
| result | No | The calculation result. | |
| accepts | No | x402 offer only: the payment options (scheme, network, amount, asset, payTo, ...). | |
| endpoint | No | The REST route that computed it, e.g. 'astronomy/rise-set'. | |
| resource | No | x402 offer only: the resource being paid for. | |
| extensions | No | x402 offer only: protocol extensions (bazaar). | |
| x402Version | No | x402 offer only: protocol version (2). |