{"openapi":"3.1.0","info":{"title":"SpaceX API","version":"1.0.0","description":"Latest, next and recent SpaceX launches with mission details, success status, mission patches, webcasts and articles, a single-launch lookup by id, and the full rocket fleet with specs, success rates and imagery. Great for space dashboards, trackers, education and hobby projects.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/spacex-api","description":"oanor gateway"}],"tags":[{"name":"Launches"},{"name":"Rockets"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/latest":{"get":{"operationId":"get_v1_latest","tags":["Launches"],"summary":"Most recent launch","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"62dd70d5202306255024d139","name":"Crew-5","patch":"https://images2.imgbox.com/eb/d8/D1Yywp0w_o.png","rocket":"5e9d0d95eda69973a809d1ec","success":true,"webcast":"https://youtu.be/5EwW8ZkArL4","date_utc":"2022-10-05T16:00:00.000Z","upcoming":false,"wikipedia":"https://en.wikipedia.org/wiki/SpaceX_Crew-5","flight_number":187},"meta":{"timestamp":"2026-05-30T04:32:24.951Z","request_id":"5e52c88b-dfe3-4de8-b452-c788f0a99dcf"},"status":"ok","message":"Latest launch retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/launch":{"get":{"operationId":"get_v1_launch","tags":["Launches"],"summary":"Launch by id","description":"","parameters":[{"name":"id","in":"query","required":true,"description":"24-char launch id","schema":{"type":"string"},"example":"62dd70d5202306255024d139"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"62dd70d5202306255024d139","name":"Crew-5","patch":"https://images2.imgbox.com/eb/d8/D1Yywp0w_o.png","rocket":"5e9d0d95eda69973a809d1ec","success":true,"webcast":"https://youtu.be/5EwW8ZkArL4","date_utc":"2022-10-05T16:00:00.000Z","upcoming":false,"wikipedia":"https://en.wikipedia.org/wiki/SpaceX_Crew-5","flight_number":187},"meta":{"timestamp":"2026-05-30T04:32:25.475Z","request_id":"b7ef1b2d-247b-480e-af6a-666438ab4efb"},"status":"ok","message":"Launch retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/launches":{"get":{"operationId":"get_v1_launches","tags":["Launches"],"summary":"Recent launches","description":"","parameters":[{"name":"limit","in":"query","required":false,"description":"Max 1-50","schema":{"type":"string"},"example":"10"},{"name":"upcoming","in":"query","required":false,"description":"true for upcoming","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":10,"total":205,"results":[{"id":"6243ae7daf52800c6e91925b","name":"O3b mPower 3.4","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-12-01T00:00:00.000Z","upcoming":true,"flight_number":203},{"id":"633f72130531f07b4fdf59c3","name":"Viasat-3 & Arcturus","rocket":"5e9d0d95eda69974db09d1ed","date_utc":"2022-12-01T00:00:00.000Z","upcoming":true,"flight_number":202},{"id":"6243ae58af52800c6e91925a","name":"WorldView Legion 1 & 2","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-12-01T00:00:00.000Z","upcoming":true,"flight_number":200},{"id":"63161384ffc78f3b8567070e","name":"TTL-1","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-12-01T00:00:00.000Z","upcoming":true,"flight_number":199},{"id":"633f72580531f07b4fdf59c6","name":"Transporter-6","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-12-01T00:00:00.000Z","upcoming":true,"flight_number":198},{"id":"633f72000531f07b4fdf59c2","name":"SES-18 & SES-19","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-11-01T00:00:00.000Z","upcoming":true,"flight_number":198},{"id":"633f724c0531f07b4fdf59c5","name":"SWOT","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-12-05T00:00:00.000Z","upcoming":true,"flight_number":197},{"id":"6243ba08af52800c6e919270","name":"O3b mPower 1,2","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-11-01T00:00:00.000Z","upcoming":true,"flight_number":196},{"id":"633f71820531f07b4fdf59bd","name":"Starlink 4-37 (v1.5)","patch":"https://images2.imgbox.com/a9/9a/NXVkTZCE_o.png","rocket":"5e9d0d95eda69973a809d1ec","webcast":"https://youtu.be/wcq7xiTOPRg","date_utc":"2022-11-01T00:00:00.000Z","upcoming":true,"flight_number":195},{"id":"633f71cc0531f07b4fdf59c0","name":"CRS-26","rocket":"5e9d0d95eda69973a809d1ec","date_utc":"2022-11-18T22:00:00.000Z","upcoming":true,"flight_number":194}]},"meta":{"timestamp":"2026-05-30T04:32:25.916Z","request_id":"f3e80baf-9d15-40a4-9919-b6d706569a8c"},"status":"ok","message":"Launches retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/next":{"get":{"operationId":"get_v1_next","tags":["Launches"],"summary":"Next upcoming launch","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"6243aec2af52800c6e91925d","name":"USSF-44","rocket":"5e9d0d95eda69974db09d1ed","webcast":"https://youtu.be/pY628jRd6gM","date_utc":"2022-11-01T13:41:00.000Z","upcoming":true,"flight_number":188},"meta":{"timestamp":"2026-05-30T04:32:26.413Z","request_id":"777ec8ba-ef1e-4860-8f3f-6db297591781"},"status":"ok","message":"Next launch retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/rockets":{"get":{"operationId":"get_v1_rockets","tags":["Rockets"],"summary":"All rockets","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":4,"results":[{"id":"5e9d0d95eda69955f709d1eb","name":"Falcon 1","type":"rocket","image":"https://imgur.com/DaCfMsj.jpg","active":false,"stages":2,"company":"SpaceX","country":"Republic of the Marshall Islands","mass_kg":30146,"boosters":0,"height_m":22.25,"wikipedia":"https://en.wikipedia.org/wiki/Falcon_1","description":"The Falcon 1 was an expendable launch system privately developed and manufactured by SpaceX during 2006-2009. On 28 September 2008, Falcon 1 became the first privately-developed liquid-fuel launch vehicle to go into orbit around the Earth.","first_flight":"2006-03-24","cost_per_launch":6700000,"success_rate_pct":40},{"id":"5e9d0d95eda69973a809d1ec","name":"Falcon 9","type":"rocket","image":"https://farm1.staticflickr.com/929/28787338307_3453a11a77_b.jpg","active":true,"stages":2,"company":"SpaceX","country":"United States","mass_kg":549054,"boosters":0,"height_m":70,"wikipedia":"https://en.wikipedia.org/wiki/Falcon_9","description":"Falcon 9 is a two-stage rocket designed and manufactured by SpaceX for the reliable and safe transport of satellites and the Dragon spacecraft into orbit.","first_flight":"2010-06-04","cost_per_launch":50000000,"success_rate_pct":98},{"id":"5e9d0d95eda69974db09d1ed","name":"Falcon Heavy","type":"rocket","image":"https://farm5.staticflickr.com/4599/38583829295_581f34dd84_b.jpg","active":true,"stages":2,"company":"SpaceX","country":"United States","mass_kg":1420788,"boosters":2,"height_m":70,"wikipedia":"https://en.wikipedia.org/wiki/Falcon_Heavy","description":"With the ability to lift into orbit over 54 metric tons (119,000 lb)--a mass equivalent to a 737 jetliner loaded with passengers, crew, luggage and fuel--Falcon Heavy can lift more than twice the payload of the next closest operational vehicle, the Delta IV Heavy, at one-third the cost.","first_flight":"2018-02-06","cost_per_launch":90000000,"success_rate_pct":100},{"id":"5e9d0d96eda699382d09d1ee","name":"Starship","type":"rocket","image":"https://live.staticflickr.com/65535/48954138962_ee541e6755_b.jpg","active":false,"stages":2,"company":"SpaceX","country":"United States","mass_kg":1335000,"boosters":0,"height_m":118,"wikipedia":"https://en.wikipedia.org/wiki/SpaceX_Starship","description":"Starship and Super Heavy Rocket represent a fully reusable transportation system designed to service all Earth orbit needs as well as the Moon and Mars. This two-stage vehicle — composed of the Super Heavy rocket (booster) and Starship (ship) — will eventually replace Falcon 9, Falcon Heavy and Dragon.","first_flight":"2021-12-01","cost_per_launch":7000000,"success_rate_pct":0}]},"meta":{"timestamp":"2026-05-30T04:32:34.108Z","request_id":"6ffb0842-c7f5-498e-b33f-65b08612cba3"},"status":"ok","message":"Rockets retrieved","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":8000,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":600,"monthly_call_quota":120000,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1900,"monthly_call_quota":600000,"rps_limit":25,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":4900,"monthly_call_quota":2500000,"rps_limit":80,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/spacex-api"}