SWAPI Reborn!

Star Wars APIs & Explorer

All the Star Wars data you‘ve ever wanted!
Planets, Spaceships, Vehicles, People, Films & Species

🎉🎉 Over 30,000+ API Requests served daily! 🎉🎉

Request:

fetch("https://swapi.info/api/")
  .then((res) => res.json()) // Parse the JSON content from the API to be consumed
  .then((json) => console.log(json)) // Log the JSON response to your console
  .catch((error) => console.error(error)) // Log the API error (if any) to your console

Result:

{
    "films": "https://swapi.info/api/films",
    "people": "https://swapi.info/api/people",
    "planets": "https://swapi.info/api/planets",
    "species": "https://swapi.info/api/species",
    "vehicles": "https://swapi.info/api/vehicles",
    "starships": "https://swapi.info/api/starships"
}
What is this ?

The Star Wars API, or "swapi" (Swah-pee) is the world‘s first quantified and programmatically-accessible data source for all the data from the Star Wars canon universe!

We‘ve taken all the rich contextual stuff from the universe and formatted into something easier to consume with software. Then we went and stuck an API on the front so you can access it all!

How can I use it ?

All the data is accessible through our HTTP web API. Consult our explorer pages if you‘d like to get started.

Promise of longevity

Swapi.info is here to stay!. Created as service which runs solely via static files, this service does not require database or expensive hosting to run.

Currently hosted on the generosity of Cloudflare Pages, the only barrier to utilization is a public facing domain. No other costs associated with running this project yourself as well.

eye-open
Good