SWAPI

Star Wars people, planets, ships and films as tidy JSON

🎬 MediaUNMONITOREDchecked 58 min ago
AUTH NONECORS AGENT HTTPS COMMERCIAL ?

The classic Star Wars API: query people, planets, starships, vehicles, species and films through simple numbered endpoints. Each resource links to related records so you can crawl the whole galaxy. Keyless, CORS-open, plain JSON.

HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: — · unmonitored
Uptime history
—%90 days
—%30 days
P50 · ms
P95 · ms
operationalpartialdownno data
Live response samplecaptured by our last successful check
GET https://swapi.dev/api/people/1/

{
  "name": "Luke Skywalker",
  "height": "172",
  "mass": "77",
  "hair_color": "blond",
  "eye_color": "blue",
  "birth_year": "19BBY",
  "gender": "male",
  "homeworld": "https://swapi.dev/api/planets/1/"
}
Call itcurl · fetch · python
curl "https://swapi.dev/api/people/1/"
const res = await fetch("https://swapi.dev/api/people/1/");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://swapi.dev/api/people/1/")
print(res.json())
Endpoints · 4On scheduleFULL DOCS ↗
First rollup pending — GET /people/1 has been probed
GET/people/1PROBED

Person record with homeworld and film links.

GET/films

All Star Wars films.

GET/planets?search=tatooine

Search planets by name.

GET/starships/9

Starship record (Death Star).

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

SWAPI: common questions

Is SWAPI free to use?

Yes — SWAPI is a free media API. Free tier: Free — limits not published. Whether the free tier allows commercial use is unclear — check the provider docs.

Does SWAPI need an API key?

No — SWAPI needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call SWAPI from the browser?

Yes — SWAPI returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is SWAPI up right now?

As of our last scheduled check, SWAPI is unmonitored. We re-probe it every sweep — the status badge and uptime chart above always show the latest.