JPL Horizons planet and moon positions
Sky positions (right ascension and declination), brightness, distance and angle from the Sun for the Sun, Moon, planets, Pluto and large asteroids as seen from Earth's centre, from the NASA JPL Horizons ephemeris system.
No API key needed to call
- Source
- NASA JPL Horizons System
- Licence and terms
- US Government work (17 U.S.C. 105)
- Coverage
- solar system bodies, years 1599 to 2500
- Refresh cadence
- Answers are shared and cached for 21600 seconds.
Questions you can ask
Operations
Daily sky position of a solar system body
Answers: where in the sky (right ascension and declination in degrees), how bright (apparent magnitude), how far (astronomical units) and how far from the Sun in the sky (elongation) is this planet, the Moon, the Sun or a large asteroid on each day starting at a date?
| body | required, string, sun | moon | mercury | venus | mars | jupiter | saturn | uranus | neptune | pluto | ceres | vesta, Body: sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto, ceres or vesta. |
|---|---|
| start_date | required, string, First day (UT), YYYY-MM-DD, between 1900 and 2100. |
| days | optional, integer, default 5, Number of days after the start date, 1 to 24. |
Example: Where is Mars in the sky over the next few days and how bright is it?
Over MCP
{"tool":"call_connector_operation","arguments":{"connector":"jpl_horizons","operation":"jpl_horizons_body_positions","params":{"body":"mars","start_date":"2026-12-05","days":3}}}Over HTTP
curl '/v1/connectors/jpl_horizons/jpl_horizons_body_positions?body=mars&start_date=2026-12-05&days=3'Source notice
Source: NASA Jet Propulsion Laboratory Solar System Dynamics. NASA: "NASA content ... generally are not subject to copyright in the United States." (nasa.gov media usage guidelines). Positions are geocentric ICRF values. Not endorsed by NASA.