SWAPI Person

A character from the Star Wars universe.

Star WarsOpen-SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Properties

Name Type Description
name string
height string Height in centimeters.
mass string Mass in kilograms.
hair_color string
skin_color string
eye_color string
birth_year string Birth year in the in-universe BBY/ABY system.
gender string
homeworld string
films array
species array
vehicles array
starships array
created string
edited string
url string
View JSON Schema on GitHub

JSON Schema

swapi-person-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swapi/main/json-schema/swapi-person-schema.json",
  "title": "SWAPI Person",
  "description": "A character from the Star Wars universe.",
  "type": "object",
  "required": ["name", "url"],
  "properties": {
    "name": {"type": "string", "example": "Luke Skywalker"},
    "height": {"type": "string", "description": "Height in centimeters.", "example": "172"},
    "mass": {"type": "string", "description": "Mass in kilograms.", "example": "77"},
    "hair_color": {"type": "string", "example": "blond"},
    "skin_color": {"type": "string", "example": "fair"},
    "eye_color": {"type": "string", "example": "blue"},
    "birth_year": {"type": "string", "description": "Birth year in the in-universe BBY/ABY system.", "example": "19BBY"},
    "gender": {"type": "string", "example": "male"},
    "homeworld": {"type": "string", "format": "uri"},
    "films": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "species": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "vehicles": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "starships": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "created": {"type": "string", "format": "date-time"},
    "edited": {"type": "string", "format": "date-time"},
    "url": {"type": "string", "format": "uri"}
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/swapi-person"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.