Overview
Cep.la is a free Brazilian API that lets you look up address information using a Brazilian postal code (CEP). It returns details like street name, neighborhood, city, and state in a simple JSON format. No API key is needed, making it a great starting point for any app that handles Brazilian addresses.
Beginner Tip
Brazilian CEPs are 8-digit codes; you can pass them with or without a hyphen (e.g., 01310-100 or 01310100). The API returns null for invalid or unknown CEPs.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Cep.la",
"description": "Brazil RESTful API to find information about streets, zip codes, neighborhoods, cities and states",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
cep The queried postal code, formatted as 8 digits without a hyphen. logradouro Street or place name associated with the CEP. bairro Neighborhood or district name. cidade City name where the CEP is located. uf Two-letter state abbreviation (e.g., "SP" for Sao Paulo). Implementation Example
const url = "http://cep.la/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →administrative-divisons-db
⭐ Beginner's PickThe Administrative Divisions DB API provides a structured list of all administrative divisions (states, provinces, regions, cities) for countries around the world.
adresse.data.gouv.fr
adresse.data.gouv.fr provides programmatic access to address database of france, geocoding and reverse via REST API.
Airtel IP
⭐ Beginner's PickAirtel IP is a free, no-auth IP geolocation API that aggregates data from multiple sources to return the country associated with any given IP address.
bng2latlong
⭐ Beginner's Pickbng2latlong is a simple, free API that converts British National Grid (OSGB36) easting and northing coordinates into standard WGS84 latitude and longitude.
Cartes.io
⭐ Beginner's PickCartes.io is a free API that lets you create maps and add custom markers without signing up.