SWAPI
Star Wars people, planets, ships and films as tidy JSON
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.
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/"
}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())/people/1PROBEDPerson record with homeworld and film links.
/filmsAll Star Wars films.
/planets?search=tatooineSearch planets by name.
/starships/9Starship record (Death Star).
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
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.