SWAPI Film

A canonical Star Wars film in the SWAPI dataset.

Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Properties

Name Type Description
title string Title of the film.
episode_id integer Episode number.
opening_crawl string Opening crawl text shown at the start of the film.
director string Name of the film's director.
producer string Comma-separated list of producer names.
release_date string Theatrical release date.
characters array URLs of characters appearing in this film.
planets array
starships array
vehicles array
species array
created string
edited string
url string
View JSON Schema on GitHub

JSON Schema

swapi-film-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/swapi/main/json-schema/swapi-film-schema.json",
  "title": "SWAPI Film",
  "description": "A canonical Star Wars film in the SWAPI dataset.",
  "type": "object",
  "required": ["title", "episode_id", "url"],
  "properties": {
    "title": {"type": "string", "description": "Title of the film.", "example": "A New Hope"},
    "episode_id": {"type": "integer", "description": "Episode number.", "example": 4},
    "opening_crawl": {"type": "string", "description": "Opening crawl text shown at the start of the film."},
    "director": {"type": "string", "description": "Name of the film's director.", "example": "George Lucas"},
    "producer": {"type": "string", "description": "Comma-separated list of producer names."},
    "release_date": {"type": "string", "format": "date", "description": "Theatrical release date.", "example": "1977-05-25"},
    "characters": {"type": "array", "items": {"type": "string", "format": "uri"}, "description": "URLs of characters appearing in this film."},
    "planets": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "starships": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "vehicles": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "species": {"type": "array", "items": {"type": "string", "format": "uri"}},
    "created": {"type": "string", "format": "date-time"},
    "edited": {"type": "string", "format": "date-time"},
    "url": {"type": "string", "format": "uri"}
  }
}