How to implement a reliable Brazilian Zip Code (CEP) lookup in JavaScript?
08:39 02 Jun 2026

I am developing a web application for the Brazilian market and I need to implement a fast and accurate address lookup based on the Zip Code (CEP).

I have been using https://buscacep.app/ as a reference tool to manually verify the postal data because it's extremely fast and uses the official Correios database, but I am struggling to find a stable public API that provides the same level of accuracy for my automated scripts.

Does anyone have experience with a specific API or a local database structure that handles Brazilian addresses as efficiently as the mentioned tool? I need to ensure the data is updated at least bi-weekly. Any code snippets for a fetch request would be highly appreciated.

javascript