SWAPI - Star Wars API · Example Payload

Swapi Listfilms Example

Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Swapi Listfilms 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": "listFilms",
  "method": "GET",
  "path": "/films/",
  "request": {
    "page": 1
  },
  "response": {
    "count": 6,
    "next": null,
    "previous": null,
    "results": [
      {
        "title": "A New Hope",
        "episode_id": 4,
        "director": "George Lucas",
        "producer": "Gary Kurtz, Rick McCallum",
        "release_date": "1977-05-25",
        "url": "https://swapi.dev/api/films/1/"
      }
    ]
  }
}