Code Monkey home page Code Monkey logo

international-space-station-apis's Introduction

International Space Station APIs

APIs packed with information regarding all ongoing spaceflights and spacecraft operations at the International Space Station and the Chinese Space Station (Tiangong).

The inspiration for this project came from various space-related APIs, including Open Notify by Nathan Bergey and the excellent Where The ISS At resource, which I called upon when creating my own ISS Tracker app.

It's my goal to keep these APIs up to date depending on rocket launch schedules and spacecraft docking and departures from the ISS and CSS.

I hope the level of detail in these APIs is useful for your own projects.

Please let me know if there is any information that you would like to have added to either API, just open an issue, or go ahead and create a PR!

Ad Astra!

Please note that I won't be updating for sub-orbital spaceflights (New Shepard, Virgin Galactic and the like), only orbital flights.

APIs

People In Space ๐Ÿ‘ฉโ€๐Ÿš€

People In Space (JSON)

https://corquaid.github.io/international-space-station-APIs/JSON/people-in-space.json

Calling this API will return lots of information about the only humans not currently on Earth.

Here's an example of the returned JSON:

{
 number: 11,
 iss_expedition: 67,
 expedition_patch: "https://upload.wikimedia.org/wikipedia/commons/d/d3/ISS_Expedition_67_Patch.png",
 expedition_url: "https://en.wikipedia.org/wiki/Expedition_67",
 expedition_image: "https://upload.wikimedia.org/wikipedia/commons/5/5e/Expedition_67_crew_portrait.jpg",
 people: [
    {
  "id": 8,
  "name": "Andreas Mogensen",
  "country": "Denmark",
  "flag_code": "dk",
  "agency": "ESA",
  "position": "Flight Engineer",
  "spacecraft": "Crew-7 Dragon",
  "launched": 1693027620,
  "iss": true,
  "days_in_space": 10,
  "url": "https://en.wikipedia.org/wiki/Andreas_Mogensen",
  "image": "https://upload.wikimedia.org/wikipedia/commons/f/f0/Andreas_Mogensen_official_portrait.jpg",
  "instagram": "https://www.instagram.com/astro_andreas/",
  "twitter": "https://twitter.com/Astro_Andreas",
   "facebook": "https://www.facebook.com/ESAAndreasMogensen/"
  },

] }


"flag_code" can be used with resources like countryflags.io to add national flags to your app.

"days_in_space" is the person's total spaceflight experience before their current mission.

"launched" is the start time for their current mission, measured in seconds, since the UNIX epoch.

Using "launched" and "days_in_space" together, you can calculate the up-to-date total time a person has spent above the Karman line!

Spacecraft at the ISS ๐Ÿš€

ISS Docked Spacecraft (JSON)

https://corquaid.github.io/international-space-station-APIs/JSON/iss-docked-spacecraft.json

If you want to know all about the spacecraft currently docked at the International Space Station, this API will get you up to speed.

Here's an example of the returned JSON:

{
   "id": 5,
  "name": "Crew-7 Dragon",
  "country": "United States",
  "flag_code": "us",
  "operator": "SpaceX",
  "manufacturer": "SpaceX",
  "launched": 1693027620,
  "launch_site": "KSC, LC-39A",
  "iss": true,
  "docked": 1693134960,
  "docking_port": "Harmony zenith",
  "launch_mass": 12519,
  "payload_mass": null,
  "launch_vehicle": "Falcon 9",
  "mission_type": "Crew",
  "crew": [
    "Jasmin Moghbeli",
    "Andreas Mogensen",
    "Satoshi Furukawa",
    "Konstantin Borisov"
  ],
  "mission_patch": "https://upload.wikimedia.org/wikipedia/commons/b/b3/SpaceX_Crew-7_logo.png",
  "url": "https://en.wikipedia.org/wiki/SpaceX_Crew-7",
  "image": "https://pbs.twimg.com/media/F4WMwLEaEAADi9_?format=jpg&name=4096x4096"

}


The same calculation can be performed here where you use the "docked" UNIX timestamp and your current Date() timestamp to return the total time each spacecraft has been docked at the ISS.

This NASA resource is also useful with a nice visualisation of the docked spacecraft:

ISS Visiting Vehicles (NASA site)

References

Open Notify by Nathan Bergey.

Where The ISS At? by Bill Shupp.

international-space-station-apis's People

Contributors

aleksikuj avatar corquaid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.