{"id":"astronomy/eclipse-local","method":"POST","url":"https://astro-agent.dev/v1/astronomy/eclipse-local","price_usd":"0.10","tier":"premium","title":"Local circumstances of solar and lunar eclipses","summary":"For a place: every solar and lunar eclipse between two dates with its local circumstances: whether and how it is seen, contact times, magnitude, obscuration, duration and the Sun's or Moon's altitude.","description":"For eclipse chasers, planetariums, schools and travel apps: solar eclipses from the place's own viewpoint (local type: total, annular, partial or none; contacts C1, C2, maximum, C3, C4 with the Sun's altitude and azimuth; magnitude, obscuration, duration, duration of totality or annularity) and lunar eclipses (penumbral and umbral contacts P1, U1, U2, maximum, U3, U4, P4 with the Moon's altitude, umbral and penumbral magnitude, durations), each marked visible when the body is above the horizon. Matches NASA's predictions to a few seconds (2024-04-08 at Dallas, 2025-03-14 lunar eclipse).","input_schema":{"type":"object","required":["start","end","latitude","longitude"],"properties":{"start":{"type":"string","description":"First UTC date, YYYY-MM-DD (1800-01-08..2199-12-30)."},"end":{"type":"string","description":"Last UTC date, YYYY-MM-DD, at most 366 days after start."},"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)."},"kinds":{"type":"array","items":{"type":"string","enum":["solar","lunar"]},"description":"Eclipse kinds to return. Default: both."}}},"example_request":{"start":"2024-04-01","end":"2024-04-30","latitude":32.7767,"longitude":-96.797},"example_response":{"endpoint":"astronomy/eclipse-local","result":{"subject":{"location":{"latitude":32.7767,"longitude":-96.797,"elevation_m":0.0},"timezone":"America/Chicago","timezone_source":"resolved_from_coordinates"},"settings":{"start":"2024-04-01","end":"2024-04-30","kinds":["solar","lunar"],"conventions":{"solar":"topocentric apparent discs of the Sun (R = 696,340 km) and the Moon (R = 1,737.4 km, smooth limb); C1/C4: discs touch outside; C2/C3: one disc inside the other; maximum: least separation; magnitude: fraction of the Sun's diameter covered; obscuration: fraction of its area","lunar":"Earth's shadow enlarged by Danjon's method (Skyfield eclipselib, as the event calendar); P1/P4 penumbra, U1/U4 umbra, U2/U3 total phase: the same instants everywhere; the place gives the Moon's altitude at each contact","local_type":"solar: total, annular or partial when the Moon's disc reaches the Sun's as seen from the place, none otherwise; this geometry does not check the horizon: see visible","visible":"the body's upper limb above the horizon (apparent altitude > -0.8333 deg with standard refraction) at one of the contacts or at maximum","times":"UTC and local time, to the second"}},"eclipses":[{"kind":"solar","global_type":"total","greatest_eclipse_utc":"2024-04-08T18:17Z","key":"eclipse:solar:total:2024-04-08T18:17Z","local_type":"total","magnitude":1.0149,"obscuration":1.0,"contacts":[{"utc":"2024-04-08T17:23:18Z","local":"2024-04-08T12:23:18-05:00","timestamp":1712596998,"contact":"C1","sun_altitude":60.58,"sun_azimuth":145.32,"sun_above_horizon":true},{"utc":"2024-04-08T18:40:43Z","local":"2024-04-08T13:40:43-05:00","timestamp":1712601643,"contact":"C2","sun_altitude":64.68,"sun_azimuth":186.91,"sun_above_horizon":true},{"utc":"2024-04-08T18:42:39Z","local":"2024-04-08T13:42:39-05:00","timestamp":1712601759,"contact":"MAX","sun_altitude":64.62,"sun_azimuth":188.02,"sun_above_horizon":true}],"visible":true,"duration_minutes":159.39,"central_duration_seconds":231.3}],"counts":{"eclipses":1,"visible":1}},"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":"7cf94c46555fac0a5822ea4accedc536ea4beeb7d314c7b496eb5740a6e80469","result_sha256":"b5912568c815c23d885ee764fb2f2bd37d29c87e47af3af2333a931ad3858f07","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; always paid. POST without payment to receive the 402 challenge.","catalog":"https://astro-agent.dev/v1/catalog"}