SWAPI — The Star Wars API

$ curl -X GET http://swapi.co/api/people/1/

      "name": "Luke Skywalker",
      "height": "1.72 m",
      "mass": "77 Kg",
      "hair_color": "Blond",
      "skin_color": "Caucasian",
      "eye_color": "Blue",
      "birth_year": "19 BBY",
      "gender": "Male",
      "homeworld": "http://swapi.co/api/planets/1/",
      "films": [
      "species": [
      "vehicles": [
      "starships": [
      "created": "2014-12-09T13:50:51.644000Z",
      "edited": "2014-12-10T13:52:43.172000Z",
      "url": "http://swapi.co/api/people/1/"

All the Star Wars data you’ve ever wanted:

Planets, Spaceships, Vehicles, People, Films and Species

From all six Star Wars films

One thing I do find missing are image resources to accompany each resource (GitHub issue here). That would make it a very nice one to integrate in my courses (Until then I’ll stick with my dummy MoviesDB API)

SWAPI — The Star Wars API →
Building a Star Wars API →

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.