SWAPI - Star Wars API · Example Payload

Swapi Getfilm Example

Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

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

Top-level fields

operationIdmethodpathrequestresponse

Example Payload

Raw ↑
{
  "operationId": "getFilm",
  "method": "GET",
  "path": "/films/1/",
  "request": {
    "id": 1
  },
  "response": {
    "title": "A New Hope",
    "episode_id": 4,
    "opening_crawl": "It is a period of civil war...",
    "director": "George Lucas",
    "producer": "Gary Kurtz, Rick McCallum",
    "release_date": "1977-05-25",
    "characters": [
      "https://swapi.dev/api/people/1/",
      "https://swapi.dev/api/people/2/"
    ],
    "planets": ["https://swapi.dev/api/planets/1/"],
    "starships": ["https://swapi.dev/api/starships/2/"],
    "vehicles": ["https://swapi.dev/api/vehicles/4/"],
    "species": ["https://swapi.dev/api/species/1/"],
    "created": "2014-12-10T14:23:31.880000Z",
    "edited": "2014-12-20T19:49:45.256000Z",
    "url": "https://swapi.dev/api/films/1/"
  }
}