Skip to content

barrosfilipe/SpaceX-API

 
 

Repository files navigation

Imgur

Imgur

SpaceX Data REST API

Travis Codecov Docker Build Statu GitHub release Interface

Open Source REST API for data regarding company info, vehicles, launch sites, and launch data.



Documentation

See the Wiki for full API Documentation

Usage / Endpoints

Example Response

GET https://api.spacexdata.com/v1/launches/latest
{
    "flight_number": 47,
    "launch_year": "2017",
    "launch_date_utc": "2017-09-07T13:50:00Z",
    "launch_date_local": "2017-09-07T09:50:00-04:00",
    "rocket": {
      "rocket_id": "falcon9",
      "rocket_name": "Falcon 9",
      "rocket_type": "FT"
    },
    "telemetry": {
      "flight_club": "https://www.flightclub.io/results/?code=OTV5"
    },
    "core_serial": "B1040",
    "cap_serial": null,
    "launch_site": {
      "site_id": "ksc_lc_39a",
      "site_name": "KSC LC 39A"
    },
    "payloads": [
      {
        "payload_id": "X-37B OTV-5",
        "customers": [
          "USAF"
        ],
        "payload_type": "Satelite",
        "payload_mass_kg": 4990,
        "payload_mass_lbs": 11001,
        "orbit": "LEO"
      }
    ],
    "launch_success": true,
    "reused": false,
    "land_success": true,
    "landing_type": "RTLS",
    "landing_vehicle": "LZ-1",
    "links": {
      "mission_patch": "https://i.imgur.com/574MjdD.png",
      "reddit_campaign": "https://www.reddit.com/r/spacex/comments/6u6q1t/x37b_otv5_launch_campaign_thread/",
      "reddit_launch": "https://www.reddit.com/r/spacex/comments/6ygmf1/rspacex_x37b_otv5_official_launch_discussion/",
      "reddit_recovery": null,
      "reddit_media": "https://www.reddit.com/r/spacex/comments/6yih4g/rspacex_x37b_otv5_media_thread_videos_images_gifs/",
      "presskit": "http://forum.nasaspaceflight.com/index.php?action=dlattach;topic=43585.0;attach=1446501;sess=0",
      "article_link": "https://en.wikipedia.org/wiki/Boeing_X-37",
      "video_link": "https://www.youtube.com/watch?v=9M6Zvi-fFv4"
    },
    "details": "Notable because Boeing is the primary contractor of the X-37B, which has until now been launched by ULA, a SpaceX competitor and Boeing partnership. Second flight of the Falcon 9 Block 4 upgrade."
  }

Contributions

See the Contribution guide for detailed steps

Technical Details

  • API is using Node.js with the Express.js framework
  • Uses Jest and Supertest for unit/integration testing
  • Uses Travis CI for continuous integration/delivery
  • All data stored in a MongoDB Atlas 3 node replica set cluster
  • Latest database dump included under releases
  • API deployed on a Heroku pipeline with pull request, staging and production servers

FAQ's

  • If you have any questions or corrections, please open an issue and we'll get it merged ASAP
  • All data and photos are property of Space Exploration Technologies Corporation (SpaceX)
  • I am not affiliated with SpaceX in any way, shape, form, or fashion. Just a fun side project for me
  • For any other questions or concerns, just shoot me an email

About

🚀 Open Source REST API for company, vehicle, pad, and launch data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%