PostalCodes.info · Example Payload

Postalcodes Info Search Postal Codes Example

Postal CodesGeocodingOpen DataAddress ValidationLogistics

Postalcodes Info Search Postal Codes Example is an example object payload from PostalCodes.info, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodurlrequestresponse

Example Payload

Raw ↑
{
  "operationId": "searchPostalCodes",
  "method": "GET",
  "url": "https://postalcodes.info/search?q=madrid&country=ES",
  "request": {
    "headers": {
      "Accept": "application/json"
    },
    "query": {
      "q": "madrid",
      "country": "ES"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json; charset=utf-8"
    },
    "body": [
      {
        "type": "Town/City",
        "text": "Madrid",
        "sub": "Spain",
        "url": "/postal-codes/spain/madrid"
      },
      {
        "type": "Postal Code",
        "text": "28001 (Madrid)",
        "sub": "Spain",
        "url": "/postal-codes/spain/code/28001"
      }
    ]
  }
}