JPL Horizons On-Line Ephemeris System
The JPL Horizons On-Line Ephemeris System, usually called Horizons, is a free online service run by the Solar System Dynamics Group of NASA's Jet Propulsion Laboratory (JPL). It works out where objects in the Solar System are, and how they move, for dates a user picks, within limits set for each object.[1][2]
Its output is an ephemeris, a table of positions and related data over time. Observers use it to point telescopes, mission planners use it to plan spacecraft paths, and researchers use it to study orbits.[2]
What Horizons covers
Horizons serves almost every known Solar System body, including asteroids, comets, and spacecraft. The current manual lists these objects:[2]
- more than 1,560,000 asteroids and 4,075 comets
- 461 natural satellites, all the planets, and the Sun
- 253 spacecraft
- the Earth-Sun and Earth-Moon Lagrange points L1, L2, L4, and L5
- planetary system barycenters, the centers of mass that a planet and its moons move around
These counts grow as new objects are found and added.[2]
Horizons can also compute positions, lighting, and visibility for points on the surface of distant bodies.[2]
Output types
Horizons groups its output into five types of request.[2][3]
| Type | What it gives | Typical use |
|---|---|---|
| Observer table | Sky position, rates of motion, visibility, physical aspect (such as which part of the surface faces the observer and the Sun), uncertainties | Telescope observations |
| Osculating elements | The orbital elements of the osculating orbit, the orbit the body would follow from that instant if only one central body pulled on it | Orbit geometry, celestial mechanics (the study of how objects in space move) |
| State vectors | Position and velocity in x, y, z coordinates | Studies of motion, programming |
| Close approaches | Close passes by asteroids and comets to planets and the 16 largest asteroids | Encounter planning, impact hazards |
| SPK files | Binary (non-text) files that store an asteroid's or comet's path over time | Navigation, mission planning, tools that show the paths |
The types also differ in format and in which objects they cover.[2][3] For comets and asteroids, Horizons integrates their paths, meaning it calculates them over time by taking many small steps.[2]
| Type | Format | Each row or line | Objects covered |
|---|---|---|---|
| Observer table | Plain text | One requested time step | Major and small bodies |
| Osculating elements | Plain text | One requested time step | Major and small bodies |
| State vectors | Plain text | One requested time step | Major and small bodies |
| Close approaches | Plain text | One encounter found | Comets and asteroids that Horizons integrates |
| SPK file | Binary | No rows; one continuous trajectory | Comets and asteroids only |
SPK stands for Spacecraft and Planet Kernel, the trajectory file format of JPL's SPICE system.[4] An SPK file holds a continuous trajectory that software with SPICE Toolkit readers can evaluate at any instant.[2]
Other features
An observer table can hold more than 100 quantities, in one of 9 coordinate systems and 4 time scales.[2] Some of the options:
- sky position as right ascension and declination, or as azimuth and elevation in the horizontal coordinate system
- brightness (magnitude), and airmass, a measure of how much air the light passes through (1.0 at the zenith, the point directly overhead)[3]
- a signal-to-noise estimate, comparing the target's light with sky brightened by moonlight
- rise, set, and transit times, where transit is when the object crosses the local meridian
- statistical uncertainties for asteroids and comets, with error ellipses that mark the region of sky where the object probably lies
- impact probabilities for close approaches
Users can also do the following:[2]
- search the asteroid and comet database on up to 42 parameters
- define their own object from orbital elements
- define an Earth-orbiting satellite from a two-line element set
Using Horizons
A request names a target, a time span, and an output type. Observer, vector, and element tables also name a center, which is the observing site or coordinate origin.[3] No account or password is needed, and Horizons offers four ways to send a request, all of which can be automated.[2]
Interfaces
| Interface | How it works | Limits |
|---|---|---|
| Web app | Forms in a browser | No small-body population searches or custom close-approach tables |
| API | Settings passed as URL parameters (GET) or as a batch file (POST); returns JSON or plain text | - |
| Command line | Interactive prompts over Telnet to port 6775 | Full access |
| A batch file sent with the subject "JOB"; results come back by email | No SPK files |
Two interfaces have extra details:[2][1]
- Command line: users now install the free stunnel program, which encrypts the connection.
- Email: a request can list up to 10,000 separate times and up to 200 objects at once.
Choosing a target and an observer
Horizons names each major body with a number code. Major bodies are the Sun, planets, natural satellites, and spacecraft.[2]
- Codes 0 to 9 are system barycenters, with 0 the Solar System barycenter.
- Code 10 is the Sun.
- A code above 100 ending in 99 is a planet's center alone, such as 399 for Earth or 499 for Mars.
3is the Earth-Moon barycenter and301is the Moon.5is the Jupiter system barycenter, while599is Jupiter's center.- Asteroids and comets are looked up by name or number followed by a semicolon, such as
Eros;. MBlists all major bodies and their codes.[2][3]
The observing location is written site @ body. Site 500 is a body's center, so 500@399 means Earth's center. More than 2,300 Earth sites are already listed, and the list generally matches that of the Minor Planet Center.[2]
Only major bodies can serve as observing centers. Since spacecraft count as major bodies, a space telescope can be the observer.[2]
Example API request
This request, from the API documentation, asks for an observer table of Mars (499) as seen from Earth's center, one row per day from 1 to 20 January 2006.[3]
https://ssd.jpl.nasa.gov/api/horizons.api?format=text&COMMAND='499'&OBJ_DATA='YES'&MAKE_EPHEM='YES'&EPHEM_TYPE='OBSERVER'&CENTER='500@399'&START_TIME='2006-01-01'&STOP_TIME='2006-01-20'&STEP_SIZE='1%20d'&QUANTITIES='1,9,20,23,24,29'
COMMANDpicks the target.EPHEM_TYPEpicks the output type:OBSERVER,VECTORS,ELEMENTS,APPROACH, orSPK.CENTERpicks the observing location.QUANTITIESlists the numbered output columns wanted.
Time scales
Horizons accepts and reports times in three main scales. Which ones are allowed depends on the table type.[2]
| Scale | Meaning | Used for |
|---|---|---|
| TDB | Uniform relativistic time used in the equations of motion | Vectors, elements (TDB only), close approaches |
| TT | Time kept by an observer on Earth, tied to atomic time (TAI, the time kept by atomic clocks); differs from TDB by at most 0.002 seconds | Observer tables, vectors |
| UT | Time based on Earth's rotation; before 1962 this means UT1, a measure of Earth's rotation angle, and after 1962 it means UTC | Observer tables, vectors |
The fourth scale is local civil time, which is UT shifted by a time-zone offset the user sets with the TIME_ZONE parameter.[3] Future leap seconds are not yet known, so for future dates Horizons uses the closest known leap-second correction.[2]
How Horizons computes positions
Horizons results for known objects come from orbit solutions fitted to measurements.[5] Users can also define an object that is not in the database by entering its orbital elements, and Horizons then integrates its path.[2]
JPL fits each orbit solution in a repeating loop:[5]
- Predict what the measurements should show.
- Compare the predictions with the real measurements.
- Use the differences to improve the force model (the set of forces assumed to act on the object) and the trajectory.
- Repeat.
The measurements include these types:[5]
- star-relative sky positions
- radar time delay and Doppler shift (the change in a signal's frequency caused by motion)
- very-long-baseline interferometry
- spacecraft tracking
- stellar occultations, when a body passes in front of a star
The results are usually the same data that JPL uses for radar astronomy, mission planning, and spacecraft navigation.[2] Horizons stores two kinds of body in different ways, as the figure and the subsections below show.[2]
Major bodies
Trajectories of major bodies sit in files calculated in advance. Horizons interpolates them, estimating position and velocity between the stored points for any instant.[2]
Planet positions come from planetary ephemerides such as DE441, from the JPL Development Ephemeris series.[2]
Interpolation generally recovers the stored state to the millimeter level.[2]
Moons are solved separately. Those solutions also fix where each planet's center sits relative to its system barycenter.[5]
How small-body orbits are stored
Asteroids and comets are too many to store as full trajectories. Each is stored as osculating elements at a single time, called the epoch, which encode its position and velocity at that instant.[5]
How Horizons computes small-body positions
When a user asks for a table, Horizons numerically integrates the motion from the epoch to the requested times. The integrator takes small time steps, adds up the forces at each step, and checks the error before the next step.[2] To keep errors from growing, it changes both its step size and the order of its formula (how many terms it uses, which sets the accuracy of each step) as it goes.[2]
The force model includes these forces:[5]
- gravity from the planets and the major asteroids
- for some objects, radiation pressure (the push of sunlight)
- for some objects, outgassing (gas released from the body, as on comets)
How the orbit database is updated
The orbit database is kept current by a separate process. As the Minor Planet Center reports new measurements and discoveries, they are processed into new JPL orbit solutions, and radar targets and other high-interest objects are checked by hand.[6]
Spacecraft
Spacecraft trajectories come from JPL navigation teams, flight projects at other NASA centers, the European Space Agency (ESA), and two-line elements from US Space Command.[2]
Trajectories from navigation teams include thruster firings, solar pressure, and the other forces used in navigation.[2]
These data are not live. A trajectory file usually holds a fitted past and a predicted future, and may be updated only weekly or monthly.[2] Predictions for satellites in low Earth orbit, close to Earth, more than a few days ahead can be off by tens or hundreds of kilometers.[2]
From position to what an observer sees
An observer does not see a body where it is now, because light takes time to arrive. Horizons offers several levels of correction for this.[3]
- Geometric: the true position at the requested instant, with no corrections.
- Astrometric: the position the body had when the light now arriving left it.
- Aberration-corrected: the astrometric position also corrected for stellar aberration, a small apparent shift caused by the observer's own motion.
- Refracted: also corrected for bending of light by Earth's atmosphere, for sites on Earth only.
Using classical physics without relativity, the light travel time satisfies
where is the time of observation, is the target's position, is the observer's position, and is the speed of light.
Since appears on both sides, Horizons solves it by repeated estimates.[2] The manual notes that treating light time this way, without relativity, affects it only at the millisecond level.[2]
Relativity enters in other places. The Sun's relativistic effects, predicted by Einstein's theory of relativity, are included in the motion of planets, the Moon, and small bodies (not other moons).[2] Observed positions also include light bending by the Sun's gravity (and Earth's, for sites on Earth).[2]
Time spans and accuracy
Each object can be computed only over a limited range of dates. Users should check that requested times fall inside it.[1]
Time spans
- Planetary system barycenters, the Sun, the Moon, and the centers of Mercury, Venus, and Earth are available from 9999 BC to AD 9999.
- Except for Mercury, Venus, and Earth, planet centers have shorter spans, set by the moon solutions that define them. The center of Mars covers a few hundred years.
- Comets and asteroids are integrated over at most AD 1600 to 2500. Some ancient comets are available outside that span for their historical periods.[2]
Only a small number of small bodies have orbits good enough to justify integration over hundreds of years.[2] About 30 to 40 percent have so few measurements that they can be predicted only for weeks or months around their discovery.[5]
Accuracy limits
Every ephemeris carries an uncertainty that changes with time. The manual lists these limits:[2]
- Uncertainties in major planet positions in DE441 range from meters to more than 1,000 km.
- Only a limited share of asteroid orbits are known to better than 1 arcsecond (1/3600 of a degree) on the sky over long periods.
- State vectors print 16 decimal places, but not all digits are physically meaningful.
- Earth is treated as a rigid body, one assumed not to bend or change shape. So solid Earth tides, the rise and fall of the ground caused by the Moon's and Sun's pull, are left out (generally around 70 cm).
- Site position errors are less than 2 meters, but many observatory coordinates are reported much less accurately.
- Rotation models for bodies other than Earth and the Moon may be good only to about 0.1 degree or worse.
For asteroids and comets, Horizons can map the orbit's statistical uncertainty to each output time.[2]
The manual asks anyone whose work or spacecraft depends on a small-body or non-lunar moon ephemeris to contact JPL first.[2]
History
Jon Giorgini and Don Yeomans of JPL designed and built Horizons.[2] It went online in October 1996 and was described that year by Giorgini and nine coauthors as "JPL's On-Line Solar System Data Service."[7][2]
The first version offered an interactive telnet service and a separate web page.[8] By 2015 it had three interfaces: telnet, a web form, and email.[6] An API followed in 2021.[2]
Reported use:
| Year reported | Total use since 1996 | Notes |
|---|---|---|
| 2008 | More than 10 million requests from 300,000 unique locations | More than 2,200 requests per day on average[7] |
| 2015 | 150 million ephemeris products from 70.4 million connections by 800,000 unique IP addresses | Typically 6,000 users requesting 4,000,000 products per month[6] |
In 2008 Giorgini received the Harold Masursky Award of the American Astronomical Society's Division for Planetary Sciences, with the award citation noting his work on Horizons.[7]
For most of its history the service has been up more than 99.9 percent of the time. JPL still offers it without a guarantee of continuous service and advises users to plan for outages.[1]
Software that uses Horizons
Many programs query Horizons through its API. The Python package astroquery has a Horizons class whose ephemerides(), elements(), and vectors() methods return results as Astropy tables.[9] This example from its documentation asks for the asteroid Ceres as seen from Mauna Kea (site 568):
from astroquery.jplhorizons import Horizons
obj = Horizons(id='Ceres', location='568',
epochs={'start':'2010-01-01', 'stop':'2010-03-01',
'step':'10d'})
eph = obj.ephemerides()
SPK files from Horizons can be read by software that shows or animates paths, or plans missions, if it uses SPICE Toolkit readers. They reproduce the integrated trajectory without the user having to rebuild the force model.[2][6]
JPL asks users to cite the service as "Giorgini, JD and JPL Solar System Dynamics Group, NASA/JPL Horizons On-Line Ephemeris System", with the date the data were retrieved.[2]
References
- Horizons System, NASA Jet Propulsion Laboratory, Solar System Dynamics, 2026.
- Horizons System Manual, NASA Jet Propulsion Laboratory, Solar System Dynamics, 2026.
- Horizons API Documentation, Version 1.3, NASA Jet Propulsion Laboratory, 2025.
- Report of the IAU Commission 4 Working Group on Standardizing Access to Ephemerides and File Format Specification, IAU Commission 4 Working Group, 2015.
- Description of Orbits and Ephemerides, NASA Jet Propulsion Laboratory, Solar System Dynamics, 2026.
- Status of the JPL Horizons Ephemeris System, J. D. Giorgini, IAU General Assembly, 2015.
- JPL's Jon Giorgini Honored With Masursky Award, NASA Jet Propulsion Laboratory, 2008.
- JPL's On-Line Solar System Data Service, J. D. Giorgini et al., Bulletin of the American Astronomical Society, 1996.
- JPL Horizons Queries (astroquery.jplhorizons), Astroquery documentation, 2025.
