Discover/Correios API
live

Correios APIempresas.correios.com.br

Look up any Brazilian CEP via the Correios empresas database. Returns street, neighborhood, city, state, IBGE code, DDD, and more in one API call.

Endpoint health
verified 2h ago
lookup_cep
1/1 passing latest checkself-healing
Endpoints
1
Updated
21d ago

What is the Correios API?

The Correios empresas.correios.com.br API provides a single lookup_cep endpoint that resolves any 8-digit Brazilian CEP into 10 structured fields, including street address, neighborhood, city, full state name, two-letter state abbreviation, geographic region, area code (DDD), and administrative codes such as IBGE, SIAFI, and GIA. It covers the full national CEP address database maintained by Correios, Brazil's federal postal service.

Try it
8-digit Brazilian CEP code. Dashes are optional (e.g. '01310100' or '01310-100').
api.parse.bot/scraper/146f901c-9f83-4265-b9cd-c4f69113d7aa/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/146f901c-9f83-4265-b9cd-c4f69113d7aa/lookup_cep?cep=01310100' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace empresas-correios-com-br-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.correios_cep_lookup_api import Correios, Address, CepNotFound

correios = Correios()

# Look up a CEP by its postal code
address = correios.addresses.get(cep="01310100")
print(address.logradouro, address.localidade, address.uf)
print(address.bairro, address.regiao, address.ddd)

# Use constructible resource for a known CEP, then refresh to hydrate
known = correios.address(cep="20040-020")
full = known.refresh()
print(full.cep, full.logradouro, full.localidade, full.estado)
All endpoints · 1 totalmissing one? ·

Look up details for a Brazilian CEP (postal code). Returns the full address information including street name, neighborhood, city, state, region, and administrative codes. The CEP may include or omit the dash separator. Returns input_not_found when the CEP does not exist in the Correios database.

Input
ParamTypeDescription
ceprequiredstring8-digit Brazilian CEP code. Dashes are optional (e.g. '01310100' or '01310-100').
Response
{
  "type": "object",
  "fields": {
    "uf": "string, two-letter state abbreviation",
    "cep": "string, formatted CEP with dash (e.g. '01310-100')",
    "ddd": "string, area code (DDD)",
    "gia": "string, GIA code",
    "ibge": "string, IBGE municipality code",
    "siafi": "string, SIAFI code",
    "bairro": "string, neighborhood name",
    "estado": "string, full state name",
    "regiao": "string, geographic region name",
    "unidade": "string, postal unit identifier",
    "localidade": "string, city name",
    "logradouro": "string, street name",
    "complemento": "string, address complement or range details"
  },
  "sample": {
    "data": {
      "uf": "SP",
      "cep": "01310-100",
      "ddd": "11",
      "gia": "1004",
      "ibge": "3550308",
      "siafi": "7107",
      "bairro": "Bela Vista",
      "estado": "São Paulo",
      "regiao": "Sudeste",
      "unidade": "",
      "localidade": "São Paulo",
      "logradouro": "Avenida Paulista",
      "complemento": "de 612 a 1510 - lado par"
    },
    "status": "success"
  }
}

About the Correios API

What the API Returns

The lookup_cep endpoint accepts an 8-digit CEP string — with or without a dash (e.g. 01310100 or 01310-100) — and returns a flat JSON object. Key fields include logradouro (street name), bairro (neighborhood), localidade (city), uf (two-letter state code), estado (full state name), and regiao (macro-geographic region such as Sudeste or Sul). The response also includes cep formatted with a dash for display use.

Administrative Codes

Beyond the human-readable address, each response carries three administrative identifiers that are commonly required in Brazilian government and logistics systems: ibge (the IBGE municipality code used in census and tax contexts), siafi (the federal treasury system code), and gia (the São Paulo state tax authority code, populated where applicable). The ddd field returns the telephone area code for the locality, which is useful when pre-filling phone number forms.

Input Flexibility and Coverage

The single required parameter is cep. Dashes in the input are optional — both formats resolve correctly. The API covers residential, commercial, and PO-box CEP ranges across all 26 Brazilian states and the Federal District. CEPs that do not correspond to a specific street (range-based codes covering entire cities or neighborhoods) will return the locality and state fields without a street name, which is expected behavior for those ranges.

Reliability & maintenanceVerified

The Correios API is a managed, monitored endpoint for empresas.correios.com.br — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when empresas.correios.com.br changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official empresas.correios.com.br API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Auto-fill checkout address forms by resolving a customer-entered CEP into street, neighborhood, and city fields.
  • Validate that a user-supplied CEP exists and belongs to the expected state (uf) before processing a shipment.
  • Enrich a customer database with IBGE municipality codes for tax classification or census segmentation.
  • Pre-populate the ddd area code when a user registers a phone number, based on their CEP.
  • Filter or route logistics orders by regiao (macro-region) to assign carrier zones.
  • Attach SIAFI codes to municipal records for integration with federal government financial systems.
  • Verify that a billing address CEP matches the localidade and uf claimed by the user.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Correios offer an official developer API for CEP lookups?+
Correios operates a business portal at empresas.correios.com.br that exposes CEP data, but it does not publish a documented public REST API with keys, versioning, or SLA guarantees for third-party developers. This Parse API wraps that data source in a stable, documented interface.
What does the lookup_cep endpoint return for a CEP that covers a whole city rather than a specific street?+
For range-based CEPs that map to an entire city or large neighborhood rather than a specific street, the logradouro and bairro fields will be empty strings. The localidade, uf, estado, regiao, ibge, siafi, and ddd fields are still populated. This is standard behavior in the Correios database for those code ranges.
Does the API return latitude and longitude coordinates for a CEP?+
Not currently. The API returns address components and administrative codes (ibge, siafi, gia, ddd) but no geographic coordinates. You can fork this API on Parse and revise it to add a geocoding step using the returned address fields.
Can I look up multiple CEPs in a single request?+
The lookup_cep endpoint resolves one CEP per call. Bulk resolution is not currently supported in this API. You can fork it on Parse and revise to add a batch endpoint that accepts an array of CEP values.
How current is the CEP data returned by this API?+
The data reflects what the Correios empresas portal currently serves. Correios periodically updates its CEP database when new streets, neighborhoods, or municipalities are created, but there is no published changelog or update frequency. CEPs for very recently created addresses may lag behind the physical reality briefly.
Page content last updated . Spec covers 1 endpoint from empresas.correios.com.br.
Related APIs in Maps GeoSee all →
páginasamarelas.pt API
Search for Portuguese businesses by name or category, browse Yellow Pages listings, and access detailed company information like contact details, addresses, and services. Find the right local business quickly with filters and comprehensive business profiles from Portugal's official business directory.
netshoes.com API
Search and browse products on Netshoes.com.br by keyword or category. Retrieve detailed product information including specifications, pricing, available sizes and colors, customer reviews, and delivery estimates by ZIP code.
cea.com.br API
Search and browse C&A Brazil's product catalog across categories and subcategories, view detailed product information including prices and specifications, and read customer reviews to help with your shopping decisions. Find exactly what you're looking for with powerful product search functionality backed by the complete cea.com.br inventory.
portalcompraspublicas.com.br API
Search and access detailed information about public tenders, bids, and procurement documents from Brazilian municipalities and states. Retrieve tender items, clarification logs, winner details, and all related documentation to monitor and analyze public purchasing activity across Brazil.
licitacoes-e.com API
Search and analyze Brazilian public tenders from Banco do Brasil, including filtering by buyer and tender status to find procurement opportunities. Get detailed information about specific tenders to track bids, deadlines, and procurement details.
centrodeayuda.chilexpress.cl API
Find all Chilexpress store and office locations throughout Chile by searching communes or browsing the complete directory to get addresses and internal branch names. Easily locate the nearest pickup point or service center for your shipping needs across the country.
portaldecompraspublicas.com.br API
Search and retrieve Brazilian public procurement processes from Portal de Compras Públicas. Access tender listings with filters for state, municipality, modality, date range, and status, and retrieve full process details including timelines, buyer information, and official notice data.
fedex.com API
Access data from fedex.com.