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.

Header
Authorization: Bearer YOUR_API_KEY

Get 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.

GET/api/v1/municipalities

List all municipalities. Supports pagination and filtering by country or NUTS region.

GET/api/v1/municipalities/{code}

Get detailed information for a specific municipality by its LAU code.

GET/api/v1/municipalities/{code}/indicators

Get all indicators for a specific municipality.

GET/api/v1/states

List all NUTS3 regions across 34 EU countries.

GET/api/v1/states/{uf}/municipalities

List 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.

Response
{
  "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.

PlanRequestsRate Limit
Free1,000/month10 req/min
Starter10,000/month60 req/min
Professional100,000/month300 req/min
EnterpriseUnlimitedCustom

Errors

The API uses standard HTTP status codes to indicate success or failure of requests.

401Unauthorized

Invalid or missing API key. Ensure your Authorization header is correctly formatted.

404Not Found

The requested resource was not found. Check the municipality code or endpoint URL.

429Rate Limited

You've exceeded your rate limit. Wait before making more requests or upgrade your plan.

500Internal Server Error

An unexpected error occurred on our servers. Please try again later.

Error Response Format

Error Response
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded. Please wait before retrying.",
    "retry_after": 60
  }
}