---
title: "Gets the list of cities or towns with available phone numbers."
method: GET
path: "/availablePhoneNumbers/countries/{countryCode}/localities"
tags: ["Browse for available countries, cities and area codes"]
---

# Gets the list of cities or towns with available phone numbers.

`GET /availablePhoneNumbers/countries/{countryCode}/localities`

## Path parameters

- `countryCode` string, required

## Query parameters

- `skip` integer
- `maxPageSize` integer
- `administrativeDivision` string
- `api-version` string, required
- `phoneNumberType` 'geographic' | 'tollFree' | 'mobile'

## Headers

- `accept-language` string

## Response `200`

Success

- PhoneNumberLocalities — Represents a wrapper around a list of cities or towns.
  - `phoneNumberLocalities` PhoneNumberLocality[] — Represents the underlying list of localities, e.g. cities or town.
    - `localizedName` string, required — Represents the localized name of the locality.
    - `administrativeDivision` PhoneNumberAdministrativeDivision — Represents an administrative division. e.g. state or province.
      - `localizedName` string, required — Represents the localized name of the administrative division of the locality. e.g. state or province localized name.
      - `abbreviatedName` string, required — Represents the abbreviated name of the administrative division of the locality. e.g. state or province abbreviation such as WA (Washington).
  - `nextLink` string — Represents the URL link to the next page.

## Other responses

- `default` — Failure

## Changes

- **2026-07-13** (2021-03-07) `61844c1e687b` — 1 info
  - added the new optional `query` request parameter `phoneNumberType`
- **2026-07-13** (2021-03-07) `1dbc8bc20279` — 1 info
  - endpoint added
- **2021-05-19** (2021-03-07) `5c6abf2b2252` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/communication-phonenumbers/changes/availablePhoneNumbers/countries/:countryCode/localities/get.md)

---

[API](https://skmtc.dev/azure/apis/communication-phonenumbers.md) · [All operations](https://skmtc.dev/azure/apis/communication-phonenumbers/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/communication-phonenumbers/revisions/6e81b3741aa7/schema)
