Star Wars API
The definitive Star Wars data API with all films, characters, starships, vehicles, species, and planets from the canonical universe. Popular for teaching API fundamentals and hackathon demos.
🔴 Offline · 80 ms
0%
Unlimited, no key, no credit card
No key required
Free alternatives (live ranking)
- PokéAPI — 🟢 Online · Unlimited, no key, no credit card
- Rick and Morty API — 🟢 Online · 10,000 req/day, no key, no credit card
- JokeAPI — 🟢 Online · 120 req/min, no key, no credit card
Compare Star Wars API with…
- Star Wars API vs PokéAPI — Unlimited, no key, no credit card
- Star Wars API vs Rick and Morty API — 10,000 req/day, no key, no credit card
- Star Wars API vs JokeAPI — 120 req/min, no key, no credit card
Frequently Asked Questions
Does Star Wars API require an API key?
No, Star Wars API is freely accessible without registration or an API key.
What is Star Wars API's free tier?
Unlimited, no key, no credit card
Is Star Wars API currently online?
We check Star Wars API every hour. The current status is shown at the top of this page. You can also see the 30-day uptime history in the chart above.
Implementation notes
When to use Star Wars API
The Star Wars API (SWAPI) is the original 'hello world' API for REST education. It provides canonical data for all 6 original Star Wars films (Episodes I-VI) covering films, characters, starships, vehicles, species, and planets. Use it for REST tutorials, teaching HTTP fundamentals, or fan projects.
Common pitfalls
- SWAPI's dataset is frozen at the original 6 films and does not include data from the Disney sequel trilogy (Episodes VII-IX), standalone films, or Disney+ series. If your project requires post-2015 Star Wars content, this API will not have it.
- All resource URLs in SWAPI responses use `http://` rather than `https://`. When building links from the API data (e.g., `people.homeworld` returns a URL), you must rewrite the protocol to `https://` if fetching those URLs from HTTPS pages.
- Pagination uses a `next` field that returns the full URL for the next page. The page size is fixed at 10 results — fetching all characters requires 9 sequential requests. There is no way to increase the page size.
- The SWAPI at `swapi.dev` is community-maintained. The original `swapi.co` went offline in 2020; `swapi.dev` is the current active mirror but has had occasional downtime. Consider caching responses locally for any serious project.
Quick start (bash)
curl "https://swapi.dev/api/starships/?search=Millennium" Embed this badge
Add a live status badge to your README, docs, or website.
Markdown
[](https://freeapi.watch/swapi) HTML
<a href="https://freeapi.watch/swapi"><img src="https://freeapi-builder.a10ayassine.workers.dev/badge/swapi.svg" alt="Star Wars API Status"/></a>