SWAPI - Star Wars API · Example Payload

Swapi Listpeople Example

Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Swapi Listpeople 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": "listPeople",
  "method": "GET",
  "path": "/people/",
  "request": {
    "search": "luke"
  },
  "response": {
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
      {
        "name": "Luke Skywalker",
        "height": "172",
        "mass": "77",
        "birth_year": "19BBY",
        "gender": "male",
        "url": "https://swapi.dev/api/people/1/"
      }
    ]
  }
}