118

GitHub - r-spacex/SpaceX-API: Open Source REST API for rocket, core, capsule, pa...

 5 years ago
source link: https://github.com/r-spacex/SpaceX-API
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

68747470733a2f2f692e696d6775722e636f6d2f51474d654b76452e6a7067

SpaceX REST API

68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f722d7370616365782f5370616365582d4150492e7376673f6c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765 68747470733a2f2f696d672e736869656c64732e696f2f646f636b65722f6275696c642f6a616b65776d657965722f7370616365782d6170692e7376673f6c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765 68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f722d7370616365782f5370616365582d4150492e7376673f6c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f696e746572666163652d524553542d627269676874677265656e2e7376673f6c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765

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": null,
            "eccentricity": null,
            "periapsis_km": null,
            "apoapsis_km": null,
            "inclination_deg": null,
            "period_min": null,
            "lifespan_years": 15
          }
        }
      ]
    }
  },
  "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


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK