Public APIs
SWAPI favicon

SWAPI

Video

All things Star Wars.

SWAPI's website screenshot

About SWAPI

SWAPI (the Star Wars API) provides structured, programmatic access to data from the Star Wars canon universe, covering planets, spaceships, vehicles, people, films, and species, including data from The Force Awakens. It is a rebuild of the original swapi.co, which is no longer supported or maintained.

Data is accessed through an HTTP web API, with example endpoints for films, people, planets, species, starships, and vehicles, along with request-based lookups such as people/1/, planets/3/, or starships/9/. The service reports serving over 3,000,000 API requests daily.

The API is aimed at developers building software or tutorials that require Star Wars reference data. Support is available through documentation, Discord, Reddit, and GitHub, and the project accepts donations to support continued operation.

Key features

  • Provides Star Wars data on planets, spaceships, vehicles, people, films, and species
  • REST HTTP API with JSON responses
  • Includes data from The Force Awakens
  • Serves over 3,000,000 API requests daily
  • Free and open-source

Frequently asked questions

Is SWAPI free to use?

Yes, SWAPI is free and funded by donations to keep the data open.

How do I access the data?

All data is accessible through an HTTP web API, with documentation available to get started.

What kind of data does SWAPI provide?

It provides Star Wars canon data including planets, spaceships, vehicles, people, films, and species.

Is this the same as the original swapi.co?

No, the original swapi.co is no longer supported or maintained; this version was rebuilt from almost scratch by a different maintainer.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product