Brazilian Chamber of Deputies Open Data API

Free to Use Varies (check documentation)

Overview

The Brazilian Chamber of Deputies Open Data API provides free access to legislative information from Brazil s lower house of Congress. You can retrieve data about deputies, bills, votes, events, and parliamentary sessions in JSON or XML format. No authentication is required, making it ideal for civic tech and transparency applications.

💡

Beginner Tip

Start with the /deputados endpoint to list all current deputies—it returns structured JSON you can immediately explore to understand how the data is organized.

Available Data

Brazilian Chamber of Deputies Open Data data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Brazilian Chamber of Deputies Open Data",
    "description": "Provides legislative information in Apis XML and JSON, as well as files in various formats",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

id Unique identifier for the deputy in the system
nome Full name of the deputy
siglaPartido Abbreviation of the political party the deputy belongs to
siglaUf Two-letter abbreviation of the state the deputy represents
idLegislatura Identifier for the legislative term the deputy served in
urlFoto URL to the official photo of the deputy

Implementation Example

const url = "https://dadosabertos.camara.leg.br/swagger/";
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

Empty results array The filter parameters used (like year or party) return no matching records
Start without filters to confirm the endpoint works, then add parameters one at a time
Pagination missing data Results are paginated and only the first page is returned by default
Check the links field in the response for next page URLs and loop through all pages to get complete data
Slow response for historical queries Queries spanning many legislative terms can return very large datasets
Use the idLegislatura or dataInicio/dataFim parameters to narrow your query to a specific date range

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 7/15
Response Time 354ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS NO
Category Government
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →