Launch data from an open-source SpaceX API by the subreddit community r/SpaceX
A mini-program built with Deno that returns a set of SpaceX launch data in a JSON string using the log module from Deno's standard library. Results of the launch data are set to flight numbers, mission name, rocket name and customer(s) name.
Note: Before running the program, please ensure you have Deno installed on your machine.
-
Follow the installation instructions on the Deno offical website: https://deno.land/
-
In your terminal, run:
deno run --allow-net=api.spacexdata.com mod.ts
-
You should see the program return back the launch data in a JSON string format:
INFO {"flightNumber":103,"mission":"Starlink-12 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]} INFO {"flightNumber":104,"mission":"Starlink-13 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]} INFO {"flightNumber":105,"mission":"Starlink-14 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]} INFO {"flightNumber":106,"mission":"GPS III SV04 (Sacagawea)","rocket":"Falcon 9","customers":["United States Space Force"]} INFO {"flightNumber":107,"mission":"Crew-1","rocket":"Falcon 9","customers":["NASA (CCtCap)"]} INFO {"flightNumber":108,"mission":"Sentinel-6 Michael Freilich","rocket":"Falcon 9","customers":["NASA"]} INFO {"flightNumber":109,"mission":"Starlink-15 (v1.0)","rocket":"Falcon 9","customers":["SpaceX"]} INFO {"flightNumber":110,"mission":"CRS-21","rocket":"Falcon 9","customers":["NASA (CRS)"]} INFO {"flightNumber":110,"mission":"SXM-7","rocket":"Falcon 9","customers":["SiriusXM"]} INFO Downloaded data for 110 SpaceX launches 💫
This project is licensed under the terms of the MIT license. For more information, please refer to the license documentation.
This program uses an unofficial API that bares no official association, affiliation, authorization or endorsement of any kind to Space Exploration Technologies Corp (SpaceX) or any of its subsidiaries or its affiliates.
The contents of these pages are provided as an information guide only. While every effort is made in preparing the material for publication, no responsibility is accepted by or on behalf of the owner(s) for any errors, omissions or misleading statements on these pages or any site to which these pages connect. Although every effort is made to ensure the reliability of listed sites this cannot be taken as an endorsement of these sites.