CEP database

Asked

Viewed 215 times

1

I need a ZIP database for https server access, if possible free, you know any?

  • @bigown understand the question before marking as duplicate

1 answer

3


I’ve used the Viacep, is free and works with HTTPS: http://viacep.com.br/.

Example: http://viacep.com.br/ws/01001000/json/

{
  "cep": "01001-000",
  "logradouro": "Praça da Sé",
  "complemento": "lado ímpar",
  "bairro": "Sé",
  "localidade": "São Paulo",
  "uf": "SP",
  "unidade": "",
  "ibge": "3550308",
  "gia": "1004"
}

About the types of return:

After the ZIP code, the desired return type should be provided, which should be "json", "xml", "Piped" or "querty".

  • I guess I could edit the answer to add the https://, since the questioner says "on https server" and the site supports this. ;)

  • It was just an example and is explicit in the answer that works with HTTPS.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.