API Documentation
Everything you need to integrate municipal data into your application.
Introduction
The Infomance API provides programmatic access to European municipal data. With a single integration, you can access demographic, economic, and infrastructure indicators for over 98,000 municipalities across 34 EU countries.
Base URL: https://api.infomance.com.br
Key features:
- RESTful API with JSON responses
- TypeScript and Python SDKs
- 40+ indicators per municipality
- Quality scores in every response
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header of every request.
Authorization: Bearer YOUR_API_KEYGet your API key by creating an account at infomance.io. Keep your API key secure and never expose it in client-side code.
Endpoints
The API provides the following endpoints for accessing municipal data.
/api/v1/municipalitiesList all municipalities. Supports pagination and filtering by country or NUTS region.
/api/v1/municipalities/{code}Get detailed information for a specific municipality by its LAU code.
/api/v1/municipalities/{code}/indicatorsGet all indicators for a specific municipality.
/api/v1/statesList all NUTS3 regions across 34 EU countries.
/api/v1/states/{uf}/municipalitiesList all municipalities in a specific NUTS region.
Code Examples
Here are examples of how to make requests to the API using different languages and tools.
curl -X GET "https://api.infomance.com.br/api/v1/cities/3550308/profile" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Response Format
All responses are returned in JSON format. Here's an example response from the municipality endpoint.
{
"ibge_code": "3550308",
"name": "São Paulo",
"state": "SP",
"population": 12325232,
"area_km2": 1521.11,
"indicators": {
"demographics": {
"population_density": 8105.2,
"median_age": 35.7
},
"economy": {
"gdp_per_capita": 65892.0,
"employment_rate": 58.2
}
},
"quality": {
"completeness": 0.96,
"last_updated": "2026-03-15",
"source": "IBGE"
}
}Rate Limits
API requests are rate limited based on your plan. When you exceed the limit, you'll receive a 429 response.
| Plan | Requests | Rate Limit |
|---|---|---|
| Free | 1,000/month | 10 req/min |
| Starter | 10,000/month | 60 req/min |
| Professional | 100,000/month | 300 req/min |
| Enterprise | Unlimited | Custom |
Errors
The API uses standard HTTP status codes to indicate success or failure of requests.
Invalid or missing API key. Ensure your Authorization header is correctly formatted.
The requested resource was not found. Check the municipality code or endpoint URL.
You've exceeded your rate limit. Wait before making more requests or upgrade your plan.
An unexpected error occurred on our servers. Please try again later.
Error Response Format
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit exceeded. Please wait before retrying.",
"retry_after": 60
}
}