SWAPI - Star Wars API · Schema
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 |
JSON Schema
{
"$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"}
}
}