SWAPI

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

🎬 MediaHEALTHYchecked 6h 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.

73HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 73 · healthy
Uptime history
66.7%90 days
43.3%30 days
483P50 · ms
1451P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 73 ms, slowest 1437 ms, most recent 91 ms.
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 · 4HealthyFULL DOCS ↗
Monitored path responding — GET /people/1483 mschecked 6h ago
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 healthy with 66.7% uptime over 90 days and a 483 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.