The Star Wars API
Species : 37
The Star Wars API is the world's first quantified and programmatically-formatted set of Star Wars data.
After hours of watching films and trawling through content online, we present to you all the People, Films, Species, Starships, Vehicles and Planets from Star Wars.
Comparing the data from Star Wars has never been easier. Here are some examples using the Python helper library
List the planets in order of size:
import swapi for planet in swapi.get_all("planets").order_by("diameter"): print(planet.name)
View the people who have piloted more than one starship:
import swapi for people in swapi.get_all("people").iter(): if len(people.starships) > 1: print(people.name)
Discover if Jar Jar Binks ruined a film just by being in it:
import swapi pm = swapi.get_film(4) jj = swapi.get_person(36) for c in pm.get_characters().iter(): if c.name == jj.name: print("Why George, why.")
We're using stripe to process our donations.
I built the Pokémon API before I built this. I realised that if you provide data easily, someone will consume it. I got bored around Christmas 2014 and decided that I'd take what I learned from PokéAPI and build an API for Star Wars data.
Seeing the release trailer for Episode VII also made me stupidly enthusiastic for Star Wars again.
I am Paul Hallett, a senior software engineer and an infinitely protean machine.
Star Wars and all associated names are copyright Lucasfilm ltd.
This project is open source and carries a BSD licence.
All data has been freely collected from open sources such as Wookiepedia.
SWAPI would not be possible without contributions from the following people:
The code and data originally developed by Paul Hallett and others is now supported in production at scale by Dr. Charles R. Severance on the host https://swapi.py4e.com