SWAPI API
All the Star Wars data you've ever wanted
- Our call
- HTTP 200
- Latency
- 230 ms
- From a browser
- Allowed
- Key
- No key
- Docs link
- Answered
https://swapi.dev/api/people/1/Press Run: the request leaves from your browser, and you see what it gets back.
const res = await fetch("https://swapi.dev/api/people/1/");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);curl -sS 'https://swapi.dev/api/people/1/'import requests
r = requests.get("https://swapi.dev/api/people/1/", timeout=10)
r.raise_for_status()
print(r.json())Come back to see anything that changed: answers, keys, browser access, rate limits.
Our test call Measured by us
- Request
GET https://swapi.dev/api/people/1/- Result
- HTTP 200 in 230 ms (231 ms with the body)
- From a browser
- Browser OK Access-Control-Allow-Origin: *
- HTTPS
- Yes
- Response
- application/json, 647 bytes, a JSON object
- Fields
nameheightmasshair_colorskin_coloreye_colorbirth_yeargenderhomeworldfilms- Rate-limit headers
- none sent (that doesn't mean unlimited)
Change log Measured by us
No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.
What the list says From the public-apis list
SWAPI is listed in Video. SWAPI needs no key: you can call it without signing up. The list says it sends CORS headers, so JavaScript on a web page can call it straight from the browser.
The list has 69 Video APIs: 27 need no key, 39 need an API key and 3 use OAuth, and 25 of them are marked as allowing browser calls. 9 others have the same setup, such as Bob's Burgers API, Buffy the Vampire Slayer and Angel and Final Space.
SWAPI and other Video APIs
| Fact | SWAPI (this page) | An API of Ice And Fire | TVMaze | Bob's Burgers API | Breaking Bad Quotes |
|---|---|---|---|---|---|
| Key needed From the public-apis list | No key | No key | No key | No key | No key |
| CORS, as listed From the public-apis list | Yes | Not recorded | Not recorded | Yes | Not recorded |
| Our test call Measured by us | 230 ms | 798 ms | 948 ms | Not tested | Not tested |
| Browser call Measured by us | Allowed | Allowed | Allowed | — | — |
| Docs link Measured by us | Answered | Answered | Answered | Answered | Answered |
Questions
Does SWAPI need an API key?
SWAPI needs no key: you can call it without signing up.
Can I call SWAPI from JavaScript in the browser?
Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.
Where are the SWAPI docs?
At https://swapi.dev/. When we checked, the link answered 200 in 6596 ms.
What are some alternatives to SWAPI?
Other Video APIs in the list include Bob's Burgers API, Buffy the Vampire Slayer and Angel, Final Space and IMDbOT.
Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.