Skip to content

🚀 Open Source REST API for rocket, core, capsule, pad, and launch data

License

Notifications You must be signed in to change notification settings

shaunstanislauslau/SpaceX-API

 
 

Repository files navigation

SpaceX REST API

Open Source REST API for rocket, core, capsule, pad, and launch data

Docs

See the Docs for full API Documentation

Usage

Example Response

curl -s https://api.spacexdata.com/v2/launches/latest | jq
{
  "flight_number": 67,
  "mission_name": "Merah Putih",
  "launch_year": "2018",
  "launch_date_unix": 1533619080,
  "launch_date_utc": "2018-08-07T05:18:00.000Z",
  "launch_date_local": "2018-08-07T01:18:00-04:00",
  "rocket": {
    "rocket_id": "falcon9",
    "rocket_name": "Falcon 9",
    "rocket_type": "FT",
    "first_stage": {
      "cores": [
        {
          "core_serial": "B1046",
          "flight": 2,
          "block": 5,
          "reused": true,
          "land_success": true,
          "landing_type": "ASDS",
          "landing_vehicle": "OCISLY"
        }
      ]
    },
    "second_stage": {
      "block": 5,
      "payloads": [
        {
          "payload_id": "Telkom-4",
          "norad_id": [
            43587
          ],
          "reused": false,
          "customers": [
            "Telkom"
          ],
          "nationality": "Indonesia",
          "manufacturer": "SSL",
          "payload_type": "Satellite",
          "payload_mass_kg": 5800,
          "payload_mass_lbs": 12786.81,
          "orbit": "GTO",
          "orbit_params": {
            "reference_system": "geocentric",
            "regime": "geostationary",
            "longitude": -108,
            "semi_major_axis_km": 21226.178,
            "eccentricity": 0.6904141,
            "periapsis_km": 193.19,
            "apoapsis_km": 29502.896,
            "inclination_deg": 27.0648,
            "period_min": 512.941,
            "lifespan_years": 15,
            "epoch": "2018-08-07T06:57:16.000Z",
            "mean_motion": 2.80734018,
            "raan": 227.0228
          }
        }
      ]
    }
  },
  "telemetry": {
    "flight_club": null
  },
  "reuse": {
    "core": true,
    "side_core1": false,
    "side_core2": false,
    "fairings": false,
    "capsule": false
  },
  "launch_site": {
    "site_id": "ccafs_slc_40",
    "site_name": "CCAFS SLC 40",
    "site_name_long": "Cape Canaveral Air Force Station Space Launch Complex 40"
  },
  "launch_success": true,
  "links": {
    "mission_patch": "https://images2.imgbox.com/a8/f5/ZgdsrbqW_o.png",
    "mission_patch_small": "https://images2.imgbox.com/a7/ec/sbwePzVD_o.png",
    "reddit_campaign": "https://www.reddit.com/r/spacex/comments/91gwfg/merah_putih_telkom4_launch_campaign_thread/",
    "reddit_launch": "https://www.reddit.com/r/spacex/comments/9539nr/rspacex_merah_putih_telkom4_official_launch/",
    "reddit_recovery": null,
    "reddit_media": "https://www.reddit.com/r/spacex/comments/94zr0b/rspacex_merah_putih_media_thread_videos_images/",
    "presskit": "https://www.spacex.com/sites/spacex/files/merahputihpresskit.pdf",
    "article_link": "https://spaceflightnow.com/2018/08/07/indonesian-communications-satellite-deployed-in-orbit-by-spacex/",
    "wikipedia": "https://en.wikipedia.org/wiki/Telkom_Indonesia",
    "video_link": "https://www.youtube.com/watch?v=FjfQNBYv2IY"
  },
  "details": "Indonesian comsat intended to replace the aging Telkom 1 at 108° E. First reflight of a Block 5-version booster.",
  "upcoming": false,
  "static_fire_date_utc": "2018-08-02T15:53:00.000Z"
}

Community made API Clients / Wrappers

Lang Link
.NET Tearth/Oddity
Node.js Thomas-Smyth/SpaceX-API-Wrapper
PowerShell lazywinadmin/SpaceX

API Status

See the status page for more details

Contributions

See the Contribution guide for detailed steps

Local Development

Local development info can be found here

Technical Details

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

License

FOSSA Status

About

🚀 Open Source REST API for rocket, core, capsule, pad, and launch data

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 98.8%
  • Other 1.2%