Postal code

Madagascar postal codes

Madagascar postal codes have the format ### (3 digits), for example 501. zipcodestack has 88 postal codes for Madagascar.

Format
###
Example
501
Codes in our database
88
Local name
Postal code

Madagascar postal code format

Pattern### (# digit, @ letter)
Examples501, 101
Regex^(?:\d{3})$

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Madagascar postal codes: FAQ

What is the postal code format in Madagascar?

Madagascar postal codes follow the pattern ### (# = digit, @ = letter), i.e. 3 digits. Examples: 501, 101.

What regex validates Madagascar postal codes?

^(?:\d{3})$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

How many postal codes are there in Madagascar?

The zipcodestack database contains 88 postal codes for Madagascar, each with place name, region and coordinates.

Postal code API

Look up Madagascar postal codes by API

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=501&country=mg

{
  "results": {
    "501": [{
      "postal_code": "501",
      "country_code": "MG",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free