macro_rank
Country ranking: sort all economies by one World Development Indicator for a year (default: each country's latest value), highest first or lowest first, optionally filtered by World Bank region or income group. Aggregates (World, regions) excluded unless requested. CC BY 4.0. Costs $0.02 USDC on Base via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | year; default latest available per country | |
| limit | No | 1-300, default 50 | |
| order | No | desc (default) or asc | |
| income | No | income group substring, e.g. High income, Lower middle | |
| region | No | World Bank region substring, e.g. Latin America, Sub-Saharan | |
| indicator | Yes | indicator key from /macro/indicators | |
| aggregates | No | true to include regional/income aggregates |