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

# GET /userprofiles/{userprofilesId}/postalCodes

`GET /userprofiles/{userprofilesId}/postalCodes`

## Request

- Base URL: `https://dfareporting.googleapis.com/dfareporting/v5`
- URL: `https://dfareporting.googleapis.com/dfareporting/v5/userprofiles/{userprofilesId}/postalCodes`
- 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/postalCodes/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of postal codes.

## Path parameters

- `userprofilesId` string, required

## Response `200`

Successful response

- PostalCodesListResponse: Postal Code List Response
  - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCodesListResponse".
  - `postalCodes` PostalCode[]: Postal code collection.
    - `code` string: Postal code. This is equivalent to the id field.
    - `countryCode` string: Country code of the country to which this postal code belongs.
    - `countryDartId` string, int64: DART ID of the country to which this postal code belongs.
    - `id` string: ID of this postal code.
    - `kind` string: Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode".

---

[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)
