Trade Blocs
Get Bloc Indicators Batch
Batch aggregate for N indicators in one round-trip.
Fires one compute_bloc_aggregate per indicator concurrently (asyncio.gather, no browser HTTP/1.1 6-connection cap here). The frontend bloc detail page uses this so all ~25 tiles land in a single fetch instead of being throttled into 4-5 waves of six.
Response shape: {"bloc": "COMESA", "year": 2026, "indicators": {"NY.GDP.MKTP.CD": <agg>, ...}}. Individual indicator errors return null in the map rather than failing the whole request.
get/api/v1/blocs/{code}/indicators
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/{code}/indicators
- Auth: none declared
Path parameters
codestring required
Query parameters
idsstring required
Comma-separated indicator IDs
yearinteger
Target year. Per-member values fall back to latest available year <= this if the exact year is unpublished.
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.