---
title: "GET /userprofiles/{userprofilesId}/cities"
method: GET
path: "/userprofiles/{userprofilesId}/cities"
tags: ["cities"]
---

# GET /userprofiles/{userprofilesId}/cities

`GET /userprofiles/{userprofilesId}/cities`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/cities`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/dfatrafficking`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/dfatrafficking`
- TypeScript: <https://skmtc.dev/google/apis/dfareporting/docs/userprofiles/:userprofilesId/cities/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of cities, possibly filtered.

## Path parameters

- `userprofilesId` string, required

## Query parameters

- `countryDartIds` string[]
- `dartIds` string[]
- `namePrefix` string
- `regionDartIds` string[]

## Response `200`

Successful response

- CitiesListResponse: City List Response
  - `cities` City[]: City collection.
    - `countryCode` string: Country code of the country to which this city belongs.
    - `countryDartId` string, int64: DART ID of the country to which this city belongs.
    - `dartId` string, int64: DART ID of this city. This is the ID used for targeting and generating reports.
    - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#city".
    - `metroCode` string: Metro region code of the metro region (DMA) to which this city belongs.
    - `metroDmaId` string, int64: ID of the metro region (DMA) to which this city belongs.
    - `name` string: Name of this city.
    - `regionCode` string: Region code of the region to which this city belongs.
    - `regionDartId` string, int64: DART ID of the region to which this city belongs.
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#citiesListResponse".

---

[API](https://skmtc.dev/google/apis/dfareporting.md) - [All operations](https://skmtc.dev/google/apis/dfareporting/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/dfareporting/revisions/be73a9a450de?raw)
