In a few places where you use a country ISO code it is possible to use non-standard codes which represent regions and income levels. For example, if you look at the way the indicator queries work for querying data for a particular country, you see you can do the following:

<code>
http://api.worldbank.org/countries/br/indicators/NY.GDP.MKTP.CD
</code>

where "br" is the ISO2 code for Brazil, and NY.GDP.MKTP.CD is the indicator id for
GDP (current US$). You can substitute "br" with the following:

**Region codes**

* WLD - All countries
* EAP - (developing only)
* EAS - (all income levels)
* ECA - (developing only)
* ECS - (all income levels)
* LAC - (developing only)
* LCN - (all income levels)
* MNA - (developing only)
* MEA - (all income levels)
* NAC
* SAS
* SSA - (developing only)
* SSF - (all income levels)

**Income level codes**

* NOC
* OEC
* HIC
* HPC
* LIC
* LMC
* LMY
* MIC
* UMC

For example, to query the GDP (current US$) for all Lower Middle Income (LMC) countries you can use:

<code>
http://api.worldbank.org/countries/lmc/indicators/NY.GDP.MKTP.CD
</code>

Or to query the GDP (current US$) for all countries in Latin America and the Caribbean (LAC) you can use:

<code>
http://api.worldbank.org/countries/lac/indicators/NY.GDP.MKTP.CD
</code>

**Code definitions**

1 World WLD
2 Low income LIC
3 Middle income MIC
4   Lower middle income LMC
5   Upper middle income UMC
6 Low & middle income LMY
7   East Asia & Pacific (developing only) EAP
8   Europe & Central Asia (developing only) ECA
9   Latin America & Caribbean (developing only) LAC
10   Middle East & North Africa (developing only) MNA
11   South Asia SAS
12   Sub-Saharan Africa (developing only) SSA
13 High income HIC
14   Euro area EMU
15   High income: OECD OEC
16   High income: nonOECD NOC
17 Africa AFR
18 Arab World ARB
19 Central Europe and the Baltics CEB
20 East Asia & Pacific (all income levels) EAS
21 Europe & Central Asia (all income levels) ECS
22 European Union EUU
23 Fragile and conflict affected situations FCS
24 Heavily indebted poor countries (HIPC) HPC
25 IBRD only IBD
26 IDA & IBRD total IBT
28 IDA blend IDB
29 IDA only IDX
27 IDA total IDA
30 Latin America & Caribbean (all income levels) LCN
31 Least developed countries: UN classification LDC
32 Middle East & North Africa (all income levels) MEA
33 North America NAC
34 OECD members OED
35 Small states SST
36   Caribbean small states CSS
37   Pacific island small states PSS
38   Other small states OSS
39 Sub-Saharan Africa (all income levels) SSF

 

Help/Feedback

User Voice