Rick and Morty API (by Zuplo)
The Rick and Morty API (via a Zuplo Gateway)

Locations

Endpoint:https://rickandmorty.zuplo.io

Get all locations

GET
https://rickandmorty.zuplo.io
/v1/locations

You can access the list of locations by using the /locations endpoint.

Get all locationsquery Parameters

  • pagenumber

    Pagination index

  • namestring

    filter by the given name

  • typestring

    filter by the type

  • dimensionstring

    filter by the dimension

Get all locationsHeaders

  • 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.

Get all locations Responses

200 OK

  • infoobject · required
    Example: {"count":126,"pages":7,"next":null,"prev":null}
    Default: {}
  • resultsobject[] · required
    Example: {"0":{"id":1,"name":"Earth","type":"Planet","dimension":"Dimension C-137","residents":["https://rickandmorty.zuplo.io/v1/characters/1","https://rickandmorty.zuplo.io/v1/characters/2"],"url":"https://rickandmorty.zuplo.io/v1/locations/1","created":"2017-11-10T12:42:04.162Z"}}
    Default: []

Get locations by ID(s)

GET
https://rickandmorty.zuplo.io
/v1/locations/:locationId

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 locations by ID(s)path Parameters

  • locationIdstring

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

Get locations by ID(s)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.

Get locations by ID(s) Responses

200 OK

  • idinteger · required
    Example: 3
    Default: 0
  • namestring · required
    Example: Citadel of Ricks
    Default:
  • typestring · required
    Example: Space station
    Default:
  • dimensionstring · required
    Example: unknown
    Default:
  • residentsstring[] · required
    Example: {"0":"https://rickandmorty.zuplo.io/v1/characters/8","1":"https://rickandmorty.zuplo.io/v1/characters/14"}
    Default: []
  • urlstring · required
    Example: https://rickandmorty.zuplo.io/locations/3
    Default:
  • createdstring · required
    Example: 2017-11-10T13:08:13.191Z
    Default: