SWAPI API
Overview
SWAPI.tech is an alternative Star Wars API that mirrors the classic SWAPI dataset with some extended data and faster response times. Like the original, it requires no authentication and provides data on characters, planets, starships, and more. It's a reliable fallback or complement to swapi.dev.
Beginner Tip
Use swapi.tech as a drop-in alternative if swapi.dev is slow or down — the endpoint structure is nearly identical so you can switch URLs with minimal code changes. Check the /api/ root to see all available resource types.
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://www.swapi.tech/api/people/1
- Result
- HTTP 200 · application/json · 1,695 bytes · compressed
- Response time
- 562 ms (median of 3) · fastest 234 ms
- Transport
- TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Rate limit
- 100 per window (99 remaining at test time)
- Served by
- cloudflare
- Recorded
- 2026-08-10
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Captured Response
Captured from a real request to https://www.swapi.tech/api/people/1 on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.
{
"message": "ok",
"result": {
"properties": {
"created": "2026-08-10T02:14:18.738Z",
"edited": "2026-08-10T02:14:18.738Z",
"name": "Luke Skywalker",
"gender": "male",
"skin_color": "fair",
"hair_color": "blond",
"height": "172",
"eye_color": "blue",
"mass": "77",
"homeworld": "https://www.swapi.tech/api/planets/1",
"birth_year": "19BBY",
"vehicles": [
"https://www.swapi.tech/api/vehicles/14"
],
"starships": [
"https://www.swapi.tech/api/starships/12"
],
"films": [
"https://www.swapi.tech/api/films/1"
],
"…": "(1 more fields)"
},
"_id": "5f63a36eee9fd7000499be42",
"description": "A person within the Star Wars universe",
"uid": "1",
"__v": 4
},
"apiVersion": "1.0",
"timestamp": "2026-08-10T19:55:32.250Z",
"support": {
"contact": "[email protected]",
"donate": "https://www.paypal.com/donate/?business=2HGAUVTWGR5T2&no_recurring=0&item_name=Support+Swapi+and+keep+the+galaxy%27s+data+free%21+Your+donation+fuels+open-so…",
"partnerDiscounts": {
"saberMasters": {
"…": "(2 more fields)"
},
"heartMath": {
"…": "(2 more fields)"
}
}
},
"social": {
"discord": "https://discord.gg/zWvA6GPeNG",
"reddit": "https://www.reddit.com/r/SwapiOfficial/",
"github":
… Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://www.swapi.tech/api/people/1";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →An API of Ice And Fire
⭐ Beginner's PickAn API of Ice and Fire is a free, open REST API providing comprehensive data from the Game of Thrones universe, including characters, houses, and books from George R.R.
Breaking Bad Quotes
⭐ Beginner's PickBreaking Bad Quotes is a tiny, free API that returns random quotes from the Breaking Bad TV series.
Final Space
⭐ Beginner's PickThe Final Space API provides data from the animated TV show Final Space, including characters, episodes, and locations — all accessible without an API key.
Dune
⭐ Beginner's PickThe Dune API is a free, no-auth REST API that returns data from the Dune universe including books, characters, movies, and quotes.
IMDbOT
⭐ Beginner's PickIMDbOT is an unofficial, free REST API that provides movie and TV series information sourced from IMDb data — no API key required.