SWAPI API

Beginner's Pick Video / No Auth Required Beginner HTTPS CORS
Free to Use 100 per window (99 remaining at test time)
56 C
Measured Score 0 50 100 Speed 5/30 Consistency 1/20 Security 20/20 Browser access 15/15 Transparency 15/15 TESTED 2026-08-10

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.

Use case: Integrate all things star wars data into web and mobile applications
SWAPI data via REST API

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.

JSON Response · Captured
{
  "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.

Request
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.

Different JSON structure than swapi.dev swapi.tech wraps responses in a "result" object instead of returning the resource directly.
Access data via response.result.properties instead of the top-level response object.
404 on paginated list swapi.tech may use different pagination parameters than the original SWAPI.
Check the API root at /api/ to confirm the correct query parameters for pagination.
CORS error in browser Depending on browser and configuration, cross-origin requests may be blocked.
Test with curl first; if CORS is an issue in the browser, proxy through a backend server.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 5/30
Consistency 1/20
Security 20/20
Browser access 15/15
Transparency 15/15
Endpoint Response Time 562ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Video
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →