How to Use This API
1. Upcoming Launches
https://ll.thespacedevs.com/2.2.0/launch/upcoming
2. Previous Launches
https://ll.thespacedevs.com/2.2.0/launch/previous
3. Get Astronauts
https://ll.thespacedevs.com/2.2.0/astronaut/?limit=10
4. Launch by ID
https://ll.thespacedevs.com/2.2.0/launch/f6a8b5c7-9d3e-4f1a-8b2c-5d7e9f1a3b4c
5. JavaScript — Next 5 Launches
async function nextLaunches() {
const resp = await fetch(
'https://ll.thespacedevs.com/2.2.0/launch/upcoming?limit=5'
);
const data = await resp.json();
data.results.forEach((launch, i) => {
const name = launch.name;
const date = launch.net.slice(0, 16).replace('T', ' ');
const rocket = launch.rocket.configuration.name;
const provider = launch.launch_service_provider.name;
const pad = launch.pad.location.name;
console.log(`${i + 1}. ${name}`);
console.log(` Date: ${date}`);
console.log(` Rocket: ${rocket} (${provider})`);
console.log(` Location: ${pad}`);
});
}
nextLaunches();
6. Python — Launch Countdown
import requests
from datetime import datetime
def next_launch_countdown():
resp = requests.get(
'https://ll.thespacedevs.com/2.2.0/launch/upcoming?limit=1'
)
data = resp.json()['results'][0]
launch_time = datetime.fromisoformat(data['net'].replace('Z', '+00:00'))
now = datetime.now().astimezone()
countdown = launch_time - now
print(f"Next launch: {data['name']}")
print(f"Mission: {data['mission']['description'][:100]}...")
print(f"Rocket: {data['rocket']['configuration']['name']}")
print(f"Countdown: {countdown.days}d "
f"{countdown.seconds // 3600}h "
f"{(countdown.seconds % 3600) // 60}m")
print(f"Provider: {data['launch_service_provider']['name']}")
next_launch_countdown()
TL;DR
Launch Library (The Space Devs) is the premier API for space launch information — tracking every orbital launch attempt worldwide since the 1950s. Get upcoming launches with precise NET (No Earlier Than) dates, rocket configurations, launch service providers (SpaceX, NASA, Roscosmos, etc.), and pad locations. Historical data includes mission outcomes, payload details, and orbital destinations. Also provides astronaut profiles, launch event status (Go/No-Go/TBC), and live countdown information. The essential API for space enthusiasts and launch tracking applications.
Quick start: https://ll.thespacedevs.com/2.2.0/launch/upcoming
No API key needed — just make a request!
https://ll.thespacedevs.com/2.2.0/launch/upcoming
Frequently Asked Questions
- Do I need an API key?
- No, the basic API is free and open. A free API key is available for higher rate limits if needed.
- How often is data updated?
- Launch status is updated in real-time as space agencies and providers announce schedule changes. The API is maintained by The Space Devs community.
- What rocket providers are covered?
- All orbital launch providers worldwide: SpaceX, NASA, ESA, Roscosmos, ULA, Rocket Lab, Arianespace, ISRO, JAXA, CASC, Blue Origin, Relativity Space, and many more.
- What information is included per launch?
- Mission name, launch date (NET), rocket configuration, launch provider, pad location (with GPS coordinates), mission description, orbit destination, payload details, and webcast livestream URL when available.
- Can I filter by launch provider?
- Yes, use the
lsp__nameparameter:?lsp__name=SpaceXor?lsp__name=NASA. - What about suborbital launches?
- The API focuses primarily on orbital launches but includes significant suborbital flights, including crewed suborbital missions.
API Details
- API URL
https://ll.thespacedevs.com/2.2.0/- Documentation
- thespacedevs.com/llapi
- Category
- Science
- Authentication
- Not Required (optional key for higher limits)
- Geographic Coverage
- Global — all spaceports worldwide
What You Can Build
- Space launch calendar with countdown timers
- Mobile notification app for upcoming rocket launches
- Dashboard tracking global launch statistics by provider
- Space news aggregator linking launches to coverage
- Educational tool showing space race history through launch data