Planetary longitude series (geocentric + heliocentric)
longitude_seriesPlanetary longitude time series: planet degrees seen from the Earth and from the Sun (geocentric and heliocentric) at a moment or every hour to every week, as pandas-ready columns, with speeds, retrograde flags and declinations. E.g. {start: '2024-01-01', end: '2024-12-31', interval: '1w', bodies: ['jupiter', 'saturn']}. 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. Deterministic (JPL DE440, no LLM); every result carries meta.result_sha256. Price $0.20 per call via REST POST https://astro-agent.dev/v1/astronomy/longitude-series (x402 or MPP); always paid, never a free call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "longitude_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Series: last UTC date, YYYY-MM-DD (at most 1000 samples). | |
| start | No | Series: first UTC date, YYYY-MM-DD. Example: '2024-01-01'. | |
| bodies | No | Bodies. Default: Sun..Pluto (geocentric), Mercury..Pluto with the Earth (heliocentric). | |
| format | No | Series layout: 'columns' (pandas.DataFrame(result['series'])) or 'rows' (one object per sample). | columns |
| unwrap | No | Series: continuous degrees (no 360 -> 0 jump), for plotting. | |
| offsets | No | 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). | |
| averages | No | 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. | |
| datetime | No | 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. | |
| interval | No | Series sampling step: 1 hour, 4 hours, 12 hours, 1 day or 1 week. | 1d |
| time_utc | No | Series: UTC time of day of the first sample, HH:MM. | 00:00 |
| timezone | No | IANA zone, e.g. 'Asia/Kolkata'. Optional: resolved from the coordinates, with the historical offset (DST, Local Mean Time) of that date. | |
| perspective | No | Geocentric, heliocentric, or both in one call (default). | both |
| average_method | No | 'arithmetic' mean of the 0-360 longitude values or 'circular' (vector) mean of the directions. | arithmetic |
| include_declination | No | Series: also a declination column per body. |
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). |