Star Wars API · Example Payload

Film

Star WarsScience FictionEntertainmentFilmsCharactersPlanetsStarshipsVehiclesSpeciesOpen Source

Film is an example object payload from Star Wars API, with 14 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titleepisode_idopening_crawldirectorproducerrelease_datecharactersplanetsstarshipsvehiclesspeciescreatededitedurl

Example Payload

Raw ↑
{
  "title": "A New Hope",
  "episode_id": 4,
  "opening_crawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....",
  "director": "George Lucas",
  "producer": "Gary Kurtz, Rick McCallum",
  "release_date": "1977-05-25",
  "characters": [
    "https://swapi.info/api/people/1",
    "https://swapi.info/api/people/2",
    "https://swapi.info/api/people/3",
    "https://swapi.info/api/people/4",
    "https://swapi.info/api/people/5"
  ],
  "planets": [
    "https://swapi.info/api/planets/1",
    "https://swapi.info/api/planets/2",
    "https://swapi.info/api/planets/3"
  ],
  "starships": [
    "https://swapi.info/api/starships/2",
    "https://swapi.info/api/starships/3",
    "https://swapi.info/api/starships/5"
  ],
  "vehicles": [
    "https://swapi.info/api/vehicles/4",
    "https://swapi.info/api/vehicles/6"
  ],
  "species": [
    "https://swapi.info/api/species/1",
    "https://swapi.info/api/species/2",
    "https://swapi.info/api/species/3"
  ],
  "created": "2014-12-10T14:23:31.880000Z",
  "edited": "2014-12-20T19:49:45.256000Z",
  "url": "https://swapi.info/api/films/1"
}