{"id":"astronomy/longitude-series","method":"POST","url":"https://astro-agent.dev/v1/astronomy/longitude-series","price_usd":"0.20","tier":"premium","title":"Planetary longitude series (geocentric + heliocentric)","summary":"Ecliptic longitudes of the planets at one moment or as a time series (1 hour to 1 week steps), geocentric and heliocentric, with optional angle offsets, multi-body averages and declinations.","description":"Planetary longitudes as data: at a moment, or as a series of up to 1000 samples (columns ready for pandas). Geocentric apparent and heliocentric geometric, each with its speed and retrograde flag; optional offsets (longitude + angle), circular or arithmetic multi-body averages, unwrapped degrees for plotting, and declinations.","input_schema":{"type":"object","properties":{"datetime":{"type":"string","description":"A moment (snapshot): ISO 8601 with Z or an offset, e.g. '2024-01-01T00:00Z'. A local time needs 'timezone' or coordinates. Omit when giving start/end."},"timezone":{"type":"string","description":"IANA zone, e.g. 'Asia/Kolkata'. Optional: resolved from the coordinates, with the historical offset (DST, Local Mean Time) of that date."},"start":{"type":"string","description":"Series: first UTC date, YYYY-MM-DD. Example: '2024-01-01'."},"end":{"type":"string","description":"Series: last UTC date, YYYY-MM-DD (at most 1000 samples)."},"interval":{"type":"string","enum":["1h","4h","12h","1d","1w"],"default":"1d","description":"Series sampling step: 1 hour, 4 hours, 12 hours, 1 day or 1 week."},"time_utc":{"type":"string","default":"00:00","description":"Series: UTC time of day of the first sample, HH:MM."},"perspective":{"type":"string","enum":["geocentric","heliocentric","both"],"default":"both","description":"Geocentric, heliocentric, or both in one call (default)."},"bodies":{"type":"array","items":{"type":"string","enum":["sun","moon","mercury","venus","earth","mars","jupiter","saturn","uranus","neptune","pluto","lunar_node_mean","lunar_node_true"]},"description":"Bodies. Default: Sun..Pluto (geocentric), Mercury..Pluto with the Earth (heliocentric)."},"offsets":{"description":"Angles in degrees added to every longitude (+angle and -angle), 'all' or a list from [0, 30, 45, 60, 72, 90, 120, 135, 144, 150, 180]. Default: none (the longitude itself).","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"integer","enum":[0,30,45,60,72,90,120,135,144,150,180]}}]},"averages":{"type":"array","items":{"type":"string","enum":["mean_of_5","circle_of_8"]},"description":"Multi-body longitude averages: mean_of_5 = (Jupiter+Saturn+Uranus+Neptune+Pluto)/5, circle_of_8 = (Mercury+Venus+Mars+Jupiter+Saturn+Uranus+Neptune+Pluto)/8, in each perspective."},"average_method":{"type":"string","enum":["arithmetic","circular"],"default":"arithmetic","description":"'arithmetic' mean of the 0-360 longitude values or 'circular' (vector) mean of the directions."},"include_declination":{"type":"boolean","default":false,"description":"Series: also a declination column per body."},"format":{"type":"string","enum":["columns","rows"],"default":"columns","description":"Series layout: 'columns' (pandas.DataFrame(result['series'])) or 'rows' (one object per sample)."},"unwrap":{"type":"boolean","default":false,"description":"Series: continuous degrees (no 360 -> 0 jump), for plotting."}}},"example_request":{"start":"2024-01-01","end":"2024-12-31","interval":"1w","bodies":["jupiter","saturn"],"perspective":"geocentric"},"example_response":{"endpoint":"astronomy/longitude-series","result":{"series":{"time_utc":["2024-01-01T00:00Z","2024-01-08T00:00Z","2024-01-15T00:00Z"],"timestamp":[1704067200,1704672000,1705276800],"geo.jupiter":[35.582393,35.688617,35.962617],"geo.saturn":[333.243555,333.889731,334.585823]},"settings":{"perspectives":["geocentric"],"bodies":{"geocentric":["jupiter","saturn"]},"line_offsets_deg":[0.0],"averages":{},"average_method":null,"frames":{"geocentric":"geocentric apparent, true ecliptic and equinox of date","heliocentric":"heliocentric geometric positions (Sun -> body, no light-time), true ecliptic and equinox of date"},"line_id":"<geo|helio>.<body or average>[+<offset deg>]; degree = (longitude + offset) mod 360","interval":"1w","samples":53,"unwrap":false,"format":"columns","columns":["geo.jupiter","geo.saturn"],"unwrapped":null,"longitude_reference":"ecliptic longitude from the true equinox of date (0-360 degrees)"},"counts":{"samples":53,"columns":2}},"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":"4491c287b847efe6d8a50c61e6032bdb0e87e922f9cd22567a4c8499b90837ce","result_sha256":"d719979186951fab43b30da12b7dd497a533e4c38d3b51e3711f88a4670ae099","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"}