---
title: "Location by Zipcode"
method: GET
path: "/zipcode/{country}/{zipcode}"
tags: ["Address Validation"]
---

# Location by Zipcode

`GET /zipcode/{country}/{zipcode}`

## Request

- Base URL: `https://geocodes.envia.com`
- URL: `https://geocodes.envia.com/zipcode/{country}/{zipcode}`
- Auth: none declared

Get zipcode information. With only the zipcode in a country, you can obtain the city, state, and other location details. This is useful for address validation and auto-completion features.

## Path parameters

- `country` string, required
- `zipcode` string, required

## Response `200`

Successful zip code validation

- object
  - `success` boolean: Indicates if the request was successful
  - `data` object: Zip code validation data
    - `zipcode` string: The validated zip code
    - `city` string: City name
    - `state` string: State code
    - `country` string: Country code
    - `coordinates` object: GPS coordinates
      - `latitude` string: Latitude coordinate
      - `longitude` string: Longitude coordinate

---

[API](https://skmtc.dev/envia/apis/envia-geocodes-api-complete-documentation.md) - [All operations](https://skmtc.dev/envia/apis/envia-geocodes-api-complete-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/envia/apis/envia-geocodes-api-complete-documentation/revisions/d7c9bafb8a3c?raw)
