Categories: API

Space Launch Data API

Space Launch Data

Launch Library API will provide you with a massive launch information database. You can conveniently query based on agency name, country code, date, launch id, rocket id, launch service provider, location, mission status etc.

You can even print out the relevant urls for a specific launch and access them in your browser via webbrowser library.

import webbrowser
import requests
import json

f2 = r"https://launchlibrary.net/1.3/launch/2019-11-01"
data = requests.get(f2)
a = data.text
a = json.loads(a)
a = a["launches"]

for i in a:
try:
print(i["rocket"]["agencies"][0]["countryCode"])
print(i["name"])
print(i["rocket"]["agencies"][0]["name"])
print(i["windowstart"])
for j in (i["rocket"]["agencies"][0]["infoURLs"]):
print(j)
print("\n")
except TypeError:
pass

Output:

Launch Video for ArianeSpace 5 ECA:

If you’d like to visit a refresher on user defined functions lesson in Python here is a link to our Defining Functions Lesson.

Source of API: Launch Data API

Usag1r

Share
Published by
Usag1r

Recent Posts

Benefits of Bokeh over Python visualization libraries like Seaborn, Matplotlib & Plotly

ContentsIntroductionBokeh vs Seaborn & MatplotlibBokeh vs PlotlySummary Introduction As computer science activity booms, you might…

12 months ago

History of Speech-to-Text AI models

History of Speech-to-Text Models​ & Current Infrastructure As speech technology continues to advance, so too…

1 year ago

Advanced Level Python Tips & Tricks

Python Tips & Tricks (Part III) Advanced Level HolyPython.com Here are more Python tips about…

1 year ago

Intermediate Level Python Tips & Tricks

Python Tips & Tricks (Part II) Intermediate Level HolyPython.com The list continues with slightly more…

1 year ago

When is Python 4 Coming Out?

Almost 15 years after the release of Python 3 many people are wondering when Python…

2 years ago

How to Create an app with a 3D model using VIKTOR

Introduction We are going to need smart engineering solutions to solve our planet's problems (and…

2 years ago