v1
latestOpenAPI 3.1.02026-07-177053.0 KBLocations
Get all locations
You can access the list of locations by using the /locations endpoint.
get/v1/locations
Query parameters
pagenumber
Example:1
Pagination index
namestring
Example:Earth
filter by the given name
typestring
Example:Planet
filter by the type
dimensionstring
Example:Dimension C-137
filter by the dimension
Headers
Authorizationstring required
The Authorization header is used to authenticate with the API using your API key. Value is of the format Bearer YOUR_KEY_HERE.
Response
200 OK
Example response
{
"info": {
"count": 126,
"pages": 7,
"next": null,
"prev": null
},
"results": [
{
"id": 1,
"name": "Earth",
"type": "Planet",
"dimension": "Dimension C-137",
"residents": [
"https://api.rickandmorty.zuplo.io/v1/characters/1",
"https://api.rickandmorty.zuplo.io/v1/characters/2"
],
"url": "https://api.rickandmorty.zuplo.io/v1/locations/1",
"created": "2017-11-10T12:42:04.162Z"
}
]
}