{"id":"astronomy/altaz","method":"POST","url":"https://astro-agent.dev/v1/astronomy/altaz","price_usd":"0.01","tier":"call","title":"Altitude and azimuth of every body from a place","summary":"Where 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 and magnitude.","description":"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.","input_schema":{"type":"object","required":["datetime","latitude","longitude"],"properties":{"datetime":{"type":"string","description":"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":{"type":"number","minimum":-90,"maximum":90,"description":"Decimal degrees, north positive."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"Decimal degrees, east positive."},"elevation_m":{"type":"number","minimum":-500,"maximum":9000,"default":0,"description":"Height above the WGS84 ellipsoid, metres (no terrain or horizon dip is modelled)."},"timezone":{"type":"string","description":"IANA zone for local times, e.g. 'Europe/Paris'. Optional: resolved from the coordinates (with its historical DST rules)."},"bodies":{"type":"array","items":{"type":"string","enum":["sun","moon","mercury","venus","mars","jupiter","saturn","uranus","neptune","pluto"]},"description":"Bodies to locate. Default: all ten."},"options":{"type":"object","properties":{"refraction":{"type":"boolean","default":true,"description":"Apply atmospheric refraction to the altitude (true) or give the geometric, airless altitude (false)."},"temperature_c":{"type":"number","default":10,"description":"Air temperature for refraction, deg C."},"pressure_hpa":{"type":["number","string"],"default":"standard","description":"Air pressure for refraction, hPa, or 'standard' (from the elevation)."}},"description":"Refraction settings."}}},"example_request":{"datetime":"2026-06-21T23:00","latitude":48.8566,"longitude":2.3522},"example_response":{"endpoint":"astronomy/altaz","result":{"subject":{"location":{"latitude":48.8566,"longitude":2.3522,"elevation_m":0.0},"timezone":"Europe/Paris","timezone_source":"resolved_from_coordinates","time":{"local_input":"2026-06-21T23:00","time_basis":"civil","timezone":"Europe/Paris","timezone_source":"input","utc_offset":"+02:00","is_dst":true,"utc":"2026-06-21T21:00:00Z","julian_day_ut":2461213.375,"julian_day_tt":2461213.375801,"delta_t_seconds":69.142,"time_known":true,"local_mean_time":"2026-06-21T21:09:24","true_solar_time":"2026-06-21T21:07:30","equation_of_time_minutes":-1.8991}},"settings":{"bodies":["sun","moon","mercury"],"refraction":true,"conventions":{"observer":"WGS84 ellipsoid; elevation above it optional (no terrain, no horizon dip)","altitude":"apparent altitude of the centre above the horizon, degrees; with refraction (Bennett, Skyfield) for the given or standard temperature and pressure, or geometric (airless) with refraction=false","azimuth":"degrees from true north, clockwise (90 = east)","equatorial":"topocentric apparent right ascension and declination, true equator and equinox of date","magnitude":"visual magnitude of the planets (Mallama & Hilton 2018, Skyfield); none for the Sun, Moon, Pluto","sky":"day (Sun above -0.8333), civil (to -6), nautical (to -12), astronomical (to -18) twilight, night"},"temperature_c":10.0,"pressure_hpa":"standard"},"sky":{"sun_altitude":-8.1132,"state":"nautical_twilight"},"bodies":[{"body":"sun","altitude":-8.1132,"azimuth":320.6912,"compass":"NW","above_horizon":false,"right_ascension_hours":6.0363,"declination":23.43487,"distance_au":1.016231},{"body":"moon","altitude":23.2432,"azimuth":234.8484,"compass":"SW","above_horizon":true,"right_ascension_hours":11.907832,"declination":-2.94853,"distance_au":0.002578,"distance_km":385677.5,"elongation":89.545,"illuminated_fraction":0.4973,"magnitude":null},{"body":"mercury","altitude":2.8276,"azimuth":299.7956,"compass":"WNW","above_horizon":true,"right_ascension_hours":7.717847,"declination":21.13076,"distance_au":0.725017,"elongation":23.424,"illuminated_fraction":0.2716,"magnitude":1.0}]},"meta":{"engine":"astro-agents/1.10.0","ephemeris":"NASA/JPL DE440 (1800-01-01..2200-01-01)","astronomy_library":"skyfield/1.55","frame":"geocentric apparent positions, true ecliptic and equinox of date (IAU 2006/2000A)","deterministic":true,"llm_used":false,"input_sha256":"76865d8c0c118b4653f3f61b5abaf6babbf75aeab3d62e38e451b9326b5814d4","result_sha256":"327247d4dfc3cdcabced238a5e343166028ea7888f3ca1d3f343dfe63745a46c","reproducibility":"result_sha256 = SHA-256 of the result serialized as JSON with sorted keys, no whitespace, UTF-8, floats rounded to 6 decimals. Same input + same engine version => same hash."},"example_note":"real output of engine 1.10.0; lists shortened to 3 items"},"payment":"x402 or MPP; 1 free call per client on the $0.01-0.02 routes, this one included. POST without payment to receive the 402 challenge.","catalog":"https://astro-agent.dev/v1/catalog"}