---
title: "Location by City"
method: GET
path: "/locate/{country}/{city}"
tags: ["Address Validation"]
---

# Location by City

`GET /locate/{country}/{city}`

**City / Locality validation**

Obtain a city specific information like state or zip code. Sometimes cities have multiple zip codes, this endpoint will return all available zip codes for the given city.

## Path parameters

- `country` string, required
- `city` string, required

## Response `200`

Successful city location

- object
  - `success` boolean — Indicates if the request was successful
  - `data` object[] — List of locations matching the city
    - `city` string — City name
    - `state` string — State code
    - `country` string — Country code
    - `zipcode` string — Zip code
    - `coordinates` object — GPS coordinates
      - `latitude` string — Latitude coordinate
      - `longitude` string — Longitude coordinate

---

[API](https://skmtc.net/envia/apis/envia-shipping-api-complete-documentation.md) · [All operations](https://skmtc.net/envia/apis/envia-shipping-api-complete-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/envia/envia-shipping-api-complete-documentation/revisions/39f9208959d6/schema)
