/v1/launches
Recent launches
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/spacex-api/v1/launches" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/spacex-api/v1/launches", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/spacex-api/v1/launches");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/spacex-api/v1/launches",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 10,
"total": 205,
"results": [
{
"id": "6243ae7daf52800c6e91925b",
"name": "O3b mPower 3.4",
"patch": null,
"rocket": "5e9d0d95eda69973a809d1ec",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-12-01T00:00:00.000Z",
"upcoming": true,
"wikipedia": null,
"flight_number": 203
},
{
"id": "633f72130531f07b4fdf59c3",
"name": "Viasat-3 & Arcturus",
"patch": null,
"rocket": "5e9d0d95eda69974db09d1ed",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-12-01T00:00:00.000Z",
"upcoming": true,
"wikipedia": null,
"flight_number": 202
},
{
"id": "6243ae58af52800c6e91925a",
"name": "WorldView Legion 1 & 2",
"patch": null,
"rocket": "5e9d0d95eda69973a809d1ec",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-12-01T00:00:00.000Z",
"upcoming": true,
"wikipedia": null,
"flight_number": 200
},
{
"id": "63161384ffc78f3b8567070e",
"name": "TTL-1",
"patch": null,
"rocket": "5e9d0d95eda69973a809d1ec",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-12-01T00:00:00.000Z",
"upcoming": true,
"wikipedia": null,
"flight_number": 199
},
{
"id": "633f72580531f07b4fdf59c6",
"name": "Transporter-6",
"patch": null,
"rocket": "5e9d0d95eda69973a809d1ec",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-12-01T00:00:00.000Z",
"upcoming": true,
"wikipedia": null,
"flight_number": 198
},
{
"id": "633f72000531f07b4fdf59c2",
"name": "SES-18 & SES-19",
"patch": null,
"rocket": "5e9d0d95eda69973a809d1ec",
"article": null,
"details": null,
"success": null,
"webcast": null,
"date_utc": "2022-11-01T00:00:00.000Z",
"upcoming": true,
…