SWAPI - Star Wars API
SWAPI (Star Wars API) is a free, open Star Wars REST API exposing canonical Star Wars data — films, people, planets, species, starships, and vehicles. Originally built by Paul Hallett (@phalt) at swapi.co, it is now maintained as community mirrors at swapi.dev (Python/Django, @juriy) and www.swapi.tech (Node/MongoDB, @semperry). SWAPI is one of the most widely cited "teaching APIs" in the developer ecosystem.
SWAPI - Star Wars API publishes 6 APIs on the APIs.io network, including Films API, People API, Planets API, and 3 more. Tagged areas include Star Wars, Open-Source, Teaching API, Public API, and REST.
The SWAPI - Star Wars API catalog on APIs.io includes 1 JSON-LD context and 2 Spectral governance rulesets.
SWAPI - Star Wars API’s developer surface includes tooling, code examples, and 18 more developer resources.
Kin Score
APIs 7
Individual APIs this provider publishes, each with its own machine-readable definition.
SWAPI REST API (swapi.tech)
The Node/MongoDB community rebuild of SWAPI, maintained by @semperry at swapi.tech. Wraps the canonical SWAPI payloads inside `result.properties` envelopes and adds Discord/Redd...
SWAPI - Star Wars API Films API
The Star Wars films (theatrical episodes I-VII supported by the canonical dataset).
SWAPI - Star Wars API People API
Characters from the Star Wars universe (Luke Skywalker, Darth Vader, etc.).
SWAPI - Star Wars API Planets API
Planets featured across the Star Wars films.
SWAPI - Star Wars API Species API
Sentient and non-sentient species of the Star Wars universe.
SWAPI - Star Wars API Starships API
Hyperdrive-capable starships (X-wings, Star Destroyers, Death Stars).
SWAPI - Star Wars API Vehicles API
Non-hyperdrive vehicles (AT-ATs, snowspeeders, sand crawlers).
Scroll for all 7
Open Collections 8
Open, tool-agnostic API collections (OpenAPI-derived and Bruno).
API Collection
OPEN COLLECTIONSWAPI - Star Wars Films API
OPEN COLLECTIONSWAPI - Star Wars Films People API
OPEN COLLECTIONSWAPI - Star Wars Films Planets API
OPEN COLLECTIONSWAPI - Star Wars Films Species API
OPEN COLLECTIONSWAPI - Star Wars Films Starships API
OPEN COLLECTIONSWAPI - Star Wars Films Vehicles API
OPEN COLLECTIONSWAPI - Star Wars API
OPEN COLLECTIONScroll for all 8
GraphQL 1
GraphQL schemas published by this provider.
Pricing Plans 1
Published pricing tiers and plan structures.
Swapi Plans Pricing
PLANSRate Limits 1
Documented rate limits and quota policies.
Swapi Rate Limits
RATE LIMITSSemantic Vocabularies 1
JSON-LD contexts and semantic vocabularies used across these APIs.
Swapi Context
JSON-LDSpectral Rules 2
Spectral governance rulesets for linting and validating these APIs.
SWAPI - Star Wars API API Rules
SPECTRALSWAPI - Star Wars API API Rules
SPECTRALJSON Schema 6
Standalone JSON Schema definitions for this provider's data models.
SWAPI Film
JSON SCHEMASWAPI Person
JSON SCHEMASWAPI Planet
JSON SCHEMASWAPI Species
JSON SCHEMASWAPI Starship
JSON SCHEMASWAPI Vehicle
JSON SCHEMAJSON Structure 6
JSON Structure definitions describing this provider's data shapes.
Swapi Film Structure
JSON STRUCTURESwapi Person Structure
JSON STRUCTURESwapi Planet Structure
JSON STRUCTURESwapi Species Structure
JSON STRUCTURESwapi Starship Structure
JSON STRUCTURESwapi Vehicle Structure
JSON STRUCTUREExamples 8
Example request and response payloads for these APIs.
Swapi Getfilm Example
EXAMPLESwapi Getperson Example
EXAMPLESwapi Getplanet Example
EXAMPLESwapi Getspecies Example
EXAMPLESwapi Getstarship Example
EXAMPLESwapi Getvehicle Example
EXAMPLESwapi Listfilms Example
EXAMPLESwapi Listpeople Example
EXAMPLEScroll for all 8
Security Posture 1
Authentication, domain security, vulnerability disclosure, and trust-center signals.
Agentic Access 1
Recommended x-agentic-access execution contracts for AI agents.
Resources
Documentation 1
Reference material describing how the API behaves
Agent Surfaces 1
MCP servers, agent skills, and machine-readable catalogs
Design & Contract 2
Pagination, idempotency, versioning, errors, and events
Build 10
SDKs, sample code, and the tooling you integrate with
Scroll for all 10
Access & Security 1
Authentication, authorization, and security posture
Operate 1
Status, limits, changes, and where to get help
Commercial 2
Pricing, plans, and the legal terms of use
Company 1
The organization behind the API
Other 1
Properties that don't map to a standard resource type
Source (apis.yml)
Work with this as data
Every provider here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for providers
9 MCP tools reach this
find_providersBrowse and filter every provider in the catalog.get_provider_artifactsEvery artifact this provider publishes, grouped by type.get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.get_provider_toolsEvery MCP tool they ship, with the operation each wraps.get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.get_provider_ratingPRO — composite, band, trend and facet scores.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/providers/swapi"
curl "https://apis.io/api/v1/providers?limit=25"
curl "https://apis.io/api/v1/providers/swapi/operations?limit=25"
curl "https://apis.io/api/v1/providers/swapi/evidence"
Discovery needs no key. Ratings and market analysis are Pro.