GitHub - r-spacex/SpaceX-API: Open Source REST API for rocket, core, capsule, pa...
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
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": 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/SpaceXAPI 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
- Deployed on a central U.S. Linode server
- Using Node.js with the Koa framework
- Using Redis, Nginx, and Cloudflare for content caching
- Using Jest and Supertest for tests
- Using Travis CI for continuous integration / deployments
- All data stored in a MongoDB Atlas 3 node replica set cluster
- Latest database mongodump and zipped JSON files available here
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
Recommend
-
9
Home Chevron iconIt indicates an expandable section or menu, or sometimes previous / next navigation options.Transportation ...
-
7
SpaceX capsule with four astronauts on board docks with the International Space Station The Crew-2 mission reuses the Crew Dragon capsule launched last year ...
-
3
April 20, 2021
-
2
NASA and SpaceX say lagging parachutes on Dragon capsule are not a problem ‘This lagging parachute phenomenon is something that we see’
-
3
March 28, 202211:30 AM UTCLast Updated 2 days agoEXCLUSIVE SpaceX ending production of flagship crew capsuleBy Joey Roulette3 minute read...
-
4
Space debris Australia: Piece of SpaceX capsule crashes to Earth in fieldBy Elsa MaishmanBBC NewsPublished7 hours ago
-
3
Uncrewed Blue Origin capsule lands safely after New Shepard rocket failure September 13, 2022...
-
4
NASA Artemis I moon rocket launches, sending Orion capsule to orbit moonAdvertisementClose
-
9
SpaceNASA begins U.S. return to the moon as its huge SLS rocket finally fliesThe launch came at 1:47 a.m....
-
1
TL;DR How can you give your coding career a mega boost? Contributing to Open Source projects can get you noticed by the right people. I've selected a range of projects that will level up your skills and real-world...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK