---
title: "Get all locations"
method: GET
path: "/v1/locations"
tags: ["Locations"]
---

# Get all locations

`GET /v1/locations`

## Request

- Base URL: `https://api.rickandmorty.zuplo.io`
- URL: `https://api.rickandmorty.zuplo.io/v1/locations`
- Auth: HTTP bearer

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

## Query parameters

- `page` number
- `name` string
- `type` string
- `dimension` string

## Headers

- `Authorization` string, required

## Response `200`

200 OK

- object
  - `info` object, required
    - `count` integer, required
    - `pages` integer, required
    - `next` unknown, required
    - `prev` unknown, required
  - `results` object[], required
    - `id` integer, required
    - `name` string, required
    - `type` string, required
    - `dimension` string, required
    - `residents` string[], required
    - `url` string, required
    - `created` string, required

---

[API](https://skmtc.dev/zuplo/apis/the-rick-and-morty-api-via-a-zuplo-gateway.md) - [All operations](https://skmtc.dev/zuplo/apis/the-rick-and-morty-api-via-a-zuplo-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/zuplo/apis/the-rick-and-morty-api-via-a-zuplo-gateway/revisions/ad990c01539f?raw)
