SWAPI

The Star Wars API

Provided by Starnavi for use in test tasks

Statistics

People: 82

Planets: 60

Films: 6

Species: 37

Vehicles: 39

Starships: 36

All the Star Wars data you've ever wanted:

Planets, Spaceships, Vehicles, People, Films and Species

From all SIX Star Wars films


Try it now!

https://sw-api.starnavi.io/
Need a hint? try people/1/ or planets/3/ or starships/9/

Result:

{
	"id": 1,
	"name": "Luke Skywalker",
	"height": "172",
	"mass": "77",
	"hair_color": "blond",
	"skin_color": "fair",
	"eye_color": "blue",
	"birth_year": "19BBY",
	"gender": "male",
	"homeworld": 1,
	"films": [
		2,
		6,
		3,
		1,
		7
	],
	"species": [
		1
	],
	"vehicles": [
		14,
		30
	],
	"starships": [
		12,
		22
	],
	"created": "2014-12-09T13:50:51.644000Z",
	"edited": "2014-12-20T21:17:56.891000Z",
	"url": "https://sw-api.starnavi.io/people/1/"
}
          

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 documentation if you'd like to get started.