v1

latestOpenAPI 3.1.02026-07-177053.0 KB
Locations

Get locations by ID(s)

You can get a single location by ID, or multiple by adding an array of ids as parameter: /locations/[1,2,3] or /locations/1,2,3

get/v1/locations/:locationId

Path parameters

locationIdstring required

A single numeric ID or multiple IDs, e.g. [1,2,3] or 1,2

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

idinteger required
namestring required
typestring required
dimensionstring required
residentsstring[] required
urlstring required
createdstring required

Example response

{
  "id": 3,
  "name": "Citadel of Ricks",
  "type": "Space station",
  "dimension": "unknown",
  "residents": [
    "https://api.rickandmorty.zuplo.io/v1/characters/8",
    "https://api.rickandmorty.zuplo.io/v1/characters/14"
  ],
  "url": "https://api.rickandmorty.zuplo.io/v1/locations/3",
  "created": "2017-11-10T13:08:13.191Z"
}