Positions for a time range
Get body positions at intervals between two dates
Use the body-position
end point to obtain the position (and related values) of the Sun, Moon, and/or the Galactic Center in a variety of astronomical coordinate systems.
If both DATE_TIME_FROM
and DATE_TIME_TO
are specified, the API returns values for the given time range at a default time interval of 60 seconds.
You can override the default interval by supplying your own value for the interval
query parameter.
The following example calculates the position of Sun every five minutes from 12pm UTC to 1pm UTC on Sep 1 2023:
The response
property is a dictionary of calculated body positions at the request times/intervals. An excerpt of the response is:
Last updated