International Space Station Current Location
The International Space Station is moving at close to 28,000 km/h so its location changes really fast! Where is it right now?
Overview
This is a simple api to return the current location of the ISS. It returns the current latitude and longitude of the space station with a unix timestamp for the time the location was valid. This API takes no inputs.
Output
JSON
http://api.open-notify.org/iss-now.json
The data
payload has a timestamp
and an iss_position
object with the latitude
and longitude.
JSONP
Appending a callback request to the query string will return JSONP:
http://api.open-notify.org/iss-now.json?callback=CALLBACK
Poll Rate
Please note that there is an inherent uncertainty in the ISS position models that is usually larger than one second. In addition the position is only calculated once per second (the maximum resolution of an integer unix time stamp). So polling more than 1 Hz would be useless except to add unnessisary strain to the servers.
A single client should try and keep polling to about once every 5 seconds.
Examples
Here is an example reading the API in python:
Data Source
The ISS is tracked by several agencys. Both NORAD and NASA periodically publish data about the station. I scrape this page for this API:
Another popular site for tacking data is celstrak which published NORAD TLE’s:
In both cases a “Two Line Element” is used, which contains enough infomation about an orbit to calculate an objects postition at any time within a useful window of accuracy centered around the TLE’s publish date. I try to update the TLE at least once a day.