Correios
APIShipment tracking and preparation API for Correios postal services
Overview
The Correios API offers RESTful endpoints to integrate Brazil’s national postal service into applications. Key endpoints include shipment tracking (GET /rastreamento/{codigo}), postage calculation (POST /calculo-frete), label generation (POST /gerar-etiqueta), and address validation (GET /validar-endereco). It supports JSON and XML response formats. Use cases include e-commerce platforms automating shipping label creation, online retailers displaying real-time shipment statuses to customers, and logistics tools calculating delivery costs based on package dimensions and destination.
Example Integration (JavaScript)
fetch('https://cws.correios.com.br/ajuda')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- Shipment tracking
- Postage calculation
- Label generation
- Address validation
- RESTful architecture
Frequently Asked Questions
? Is Correios API free to use?
It offers a freemium model—basic tracking and low-volume shipment preparation are free, while high-volume or advanced features require a paid plan.
? Does it require an API Key?
Yes, you need to register and obtain an API key from the Correios developer portal to access most endpoints.
? What is the response format?
Responses are available in both JSON and XML formats, with JSON recommended for modern application integrations.
Top Alternatives
People Also Ask about Correios
Tool Info
Pros
- ⊕ Official Correios integration
- ⊕ Comprehensive shipping workflows
- ⊕ Brazilian address validation
Cons
- ⊖ Rate-limited for high-volume use
- ⊖ Documentation primarily in Portuguese
- ⊖ Requires API key authentication