SWAPI - Star Wars API website screenshot

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.

38.5/100 thin ▼ -7.4 Agent 23/100 agent aware Full breakdown ↓
scored 2026-07-28 · rubric v0.6
AccessFree
7 APIs
Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.6
Composite quality — 38.5/100 · thin
Contract Quality 12.7 / 25
Developer Ergonomics 3.0 / 20
Commercial Clarity 4.2 / 20
Operational Transparency 3.4 / 13
Governance 7.0 / 12
Discoverability 8.2 / 10
Agent readiness — 23/100 · agent aware
Machine-Readable Contract 18 / 18
Agentic Access Contract 10 / 10
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 7 / 7
Rate-Limit Signaling 7 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 0 / 4
Consent & Bot Identity 0 / 3
A2A Agent Card 0 / 8
Dry-Run / Simulate Mode 0 / 4
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/swapi: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

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 1

Open, tool-agnostic API collections (OpenAPI-derived and Bruno).

SWAPI - Star Wars API

OPEN COLLECTION

GraphQL 1

GraphQL schemas published by this provider.

Pricing Plans 1

Published pricing tiers and plan structures.

Swapi Plans Pricing

1 plans

PLANS

Rate Limits 1

Documented rate limits and quota policies.

Swapi Rate Limits

1 limits

RATE LIMITS

Semantic Vocabularies 1

JSON-LD contexts and semantic vocabularies used across these APIs.

Swapi Context

6 classes · 61 properties

JSON-LD

Spectral Rules 2

Spectral governance rulesets for linting and validating these APIs.

SWAPI - Star Wars API API Rules

5 rules · 4 warnings 1 info

SPECTRAL

SWAPI - Star Wars API API Rules

39 rules · 10 errors 24 warnings 5 info

SPECTRAL

JSON Schema 6

Standalone JSON Schema definitions for this provider's data models.

SWAPI Film

14 properties

JSON SCHEMA

SWAPI Person

16 properties

JSON SCHEMA

SWAPI Planet

14 properties

JSON SCHEMA

SWAPI Species

15 properties

JSON SCHEMA

SWAPI Starship

18 properties

JSON SCHEMA

SWAPI Vehicle

16 properties

JSON SCHEMA

JSON Structure 6

JSON Structure definitions describing this provider's data shapes.

Swapi Film Structure

0 properties

JSON STRUCTURE

Swapi Person Structure

0 properties

JSON STRUCTURE

Swapi Planet Structure

0 properties

JSON STRUCTURE

Swapi Species Structure

0 properties

JSON STRUCTURE

Swapi Starship Structure

0 properties

JSON STRUCTURE

Swapi Vehicle Structure

0 properties

JSON STRUCTURE

Examples 8

Example request and response payloads for these APIs.

Swapi Getfilm Example

5 fields

EXAMPLE

Swapi Getperson Example

5 fields

EXAMPLE

Swapi Getplanet Example

5 fields

EXAMPLE

Swapi Getspecies Example

5 fields

EXAMPLE

Swapi Getstarship Example

5 fields

EXAMPLE

Swapi Getvehicle Example

5 fields

EXAMPLE

Swapi Listfilms Example

5 fields

EXAMPLE

Swapi Listpeople Example

5 fields

EXAMPLE

Scroll for all 8

Security Posture 1

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Swapi Domain Security

TLSv1.3 · HSTS

SECURITY

Agentic Access 1

Recommended x-agentic-access execution contracts for AI agents.

Swapi Agentic Access

12 operations

12 operations · 0 acting

AGENTIC

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)

apis.yml Raw ↑
aid: swapi
name: SWAPI - Star Wars API
description: 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.
url: https://swapi.dev/
accessModel:
  pricing: free
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Free
  confidence: medium
  source:
  - plans
  generated: '2026-07-22'
  method: derived
image: https://avatars.githubusercontent.com/u/2014472?s=200
specificationVersion: '0.20'
created: '2026-05-28'
modified: '2026-05-29'
x-source: public-apis/public-apis
x-category: Video
x-tier: 2
x-tier-reason: enriched-during-pipeline-run
x-type: opensource
tags:
- Star Wars
- Open Source
- Teaching API
- Public API
- REST
- GraphQL
- Entertainment
- Datasets
apis:
- name: SWAPI REST API (swapi.tech)
  description: 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/Reddit community surfaces. Exposes the same six top-level
    resources (films, people, planets, species, starships, vehicles).
  humanURL: https://www.swapi.tech/
  baseURL: https://www.swapi.tech/api
  tags:
  - REST
  - Star Wars
  - Open Source
  properties:
  - type: Documentation
    url: https://www.swapi.tech/
  - type: SourceCode
    url: https://github.com/semperry/swapi
- aid: swapi:swapi-films-api
  name: SWAPI - Star Wars API Films API
  description: The Star Wars films (theatrical episodes I-VII supported by the canonical dataset).
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - Films
  properties:
  - type: OpenAPI
    url: openapi/swapi-films-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
- aid: swapi:swapi-people-api
  name: SWAPI - Star Wars API People API
  description: Characters from the Star Wars universe (Luke Skywalker, Darth Vader, etc.).
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - People
  properties:
  - type: OpenAPI
    url: openapi/swapi-people-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
- aid: swapi:swapi-planets-api
  name: SWAPI - Star Wars API Planets API
  description: Planets featured across the Star Wars films.
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - Planets
  properties:
  - type: OpenAPI
    url: openapi/swapi-planets-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
- aid: swapi:swapi-species-api
  name: SWAPI - Star Wars API Species API
  description: Sentient and non-sentient species of the Star Wars universe.
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - Species
  properties:
  - type: OpenAPI
    url: openapi/swapi-species-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
- aid: swapi:swapi-starships-api
  name: SWAPI - Star Wars API Starships API
  description: Hyperdrive-capable starships (X-wings, Star Destroyers, Death Stars).
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - Starships
  properties:
  - type: OpenAPI
    url: openapi/swapi-starships-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
- aid: swapi:swapi-vehicles-api
  name: SWAPI - Star Wars API Vehicles API
  description: Non-hyperdrive vehicles (AT-ATs, snowspeeders, sand crawlers).
  humanURL: https://swapi.dev/
  baseURL: https://swapi.dev/api
  tags:
  - Vehicles
  properties:
  - type: OpenAPI
    url: openapi/swapi-vehicles-api-openapi.yml
  - type: Documentation
    url: https://swapi.dev/documentation
  - type: SourceCode
    url: https://github.com/Juriy/swapi
  - type: GraphQL
    url: graphql/swapi-graphql.md
common:
- type: AgenticAccess
  url: agentic-access/swapi-agentic-access.yml
- type: DomainSecurity
  url: security/swapi-domain-security.yml
- type: Website
  url: https://swapi.dev/
- type: PublicAPIsListing
  url: https://github.com/public-apis/public-apis
- type: GitHubOrganization
  url: https://github.com/Juriy/swapi
- type: License
  url: https://github.com/Juriy/swapi/blob/master/LICENSE
- type: Tools
  title: MCP Server (johnpapa)
  url: https://github.com/johnpapa/mcp-starwars
- type: Tools
  title: MCP Server (olaekdahl)
  url: https://github.com/olaekdahl/swapi-mcp-server
- type: Tools
  title: MCP Server (glaucia86)
  url: https://github.com/glaucia86/swapi-mcp-server-app
- type: Tools
  title: MCP Server (Qwizi)
  url: https://github.com/Qwizi/swapi-mcp
- type: SDKs
  title: Android SDK (Oleur)
  url: https://github.com/Oleur/SWAPI-Android-SDK
- type: SDKs
  title: Swift SDK (bratwursted)
  url: https://github.com/bratwursted/swapi-swift
- type: SDKs
  title: R Client (LionyxML)
  url: https://github.com/LionyxML/r-swapi-client
- type: CodeExamples
  title: Java + Spring Sample
  url: https://github.com/vininjr/starwars
- type: CodeExamples
  title: Flutter + GraphQL Sample
  url: https://github.com/kranfix/flutter_graphql_swapi
- type: OpenAPI
  title: Community OpenAPI (kamilkodzi)
  url: https://github.com/kamilkodzi/oas-swapi
- type: JSONLDContext
  url: json-ld/swapi-context.jsonld
- type: SpectralRuleset
  url: rules/swapi-spectral-rules.yml
- type: APICommonsPlans
  url: plans/swapi-plans-pricing.yml
- type: APICommonsRateLimits
  url: rate-limits/swapi-rate-limits.yml
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com