SWAPI - Star Wars API · Example Payload

Swapi Getspecies Example

Star WarsOpen SourceTeaching APIPublic APIRESTGraphQLEntertainmentDatasets

Swapi Getspecies 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": "getSpecies",
  "method": "GET",
  "path": "/species/1/",
  "request": {
    "id": 1
  },
  "response": {
    "name": "Human",
    "classification": "mammal",
    "designation": "sentient",
    "average_height": "180",
    "skin_colors": "caucasian, black, asian, hispanic",
    "hair_colors": "blonde, brown, black, red",
    "eye_colors": "brown, blue, green, hazel, grey, amber",
    "average_lifespan": "120",
    "homeworld": "https://swapi.dev/api/planets/9/",
    "language": "Galactic Basic",
    "people": ["https://swapi.dev/api/people/66/"],
    "films": ["https://swapi.dev/api/films/1/"],
    "created": "2014-12-10T13:52:11.567000Z",
    "edited": "2014-12-20T21:36:42.136000Z",
    "url": "https://swapi.dev/api/species/1/"
  }
}