---
title: "Compare Blocs Endpoint"
method: GET
path: "/api/v1/blocs/compare"
tags: ["Trade Blocs"]
---

# Compare Blocs Endpoint

`GET /api/v1/blocs/compare`

## Request

- Base URL: `https://api.africadb.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.africadb.com/api/v1/blocs/compare`
- Auth: none declared

Compare an indicator across multiple trade blocs.

## Query parameters

- `indicator` string, required: Indicator ID
- `blocs` string, required: Comma-separated bloc codes (e.g. EAC,COMESA,ECOWAS)
- `year` integer: Year to compare

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/africadb/apis/africa-data-bank-api.md) · [All operations](https://skmtc.dev/africadb/apis/africa-data-bank-api/llms.txt) · [OpenAPI document](https://skmtc.dev/africadb/apis/africa-data-bank-api/revisions/2a50da82945b?raw)
