2025 DATA NOW AVAILABLE

Corruption Perceptions Index API

Free, open REST API serving CPI 2025 scores for 180 countries. Look up any country by ISO code, filter by region, or get global rankings.

0 — Highly Corrupt 100 — Very Clean

What is the CPI?

The Corruption Perceptions Index (CPI) is published annually by Transparency International. It ranks 180 countries and territories by their perceived levels of public sector corruption on a scale of 0 (highly corrupt) to 100 (very clean).

The index draws on 13 data sources from 12 independent institutions, including the World Bank, World Economic Forum, and private risk assessors. It is the most widely used indicator of corruption worldwide.

In 2025, Denmark ranks highest with a score of 89, while Somalia and South Sudan share the lowest score at 9. The global average remains at 43, unchanged for over a decade — a sign that most countries are making little to no progress in tackling corruption.


Regions Covered

AP
Asia Pacific
AME
Americas
WE/EU
Western Europe & EU
ECA
Eastern Europe & Central Asia
MENA
Middle East & North Africa
SSA
Sub-Saharan Africa

API Endpoints

GET /countries All countries with optional filters
GET /countries/{code} Lookup by ISO2 or ISO3 code
GET /regions Region summaries with averages
GET /regions/{region} Countries in a specific region
GET /rankings Global ranking with sort & limit
GET /health Service health check

Quick Start

# Get a country by ISO code
curl https://api.corruptionindex.in/countries/US

# Top 10 least corrupt countries
curl https://api.corruptionindex.in/rankings?order=desc&limit=10

# All Asia-Pacific countries scoring above 70
curl https://api.corruptionindex.in/countries?region=AP&min_score=70

# JavaScript fetch
const res = await fetch("https://api.corruptionindex.in/countries/DE");
const data = await res.json();
console.log(data.cpi_score); // 77