API: Lending Type Queries
About Lending Type Queries
The World Bank classifies countries according to the type of lending for which they are eligible through the World Bank. For a description of these categories and how they are set, please visit the country classification page.
Sample Request Format: Lending Type Query
Lending type can be used to narrow country or indicator queries.
For example:
- To see a list of IDA only countries, use the following call: http://api.worldbank.org/v2/countries?lendingType=IDX
- To list all Lending Types: http://api.worldbank.org/v2/lendingTypes
Sample Response Format: Lending Type Query
<wb:lendingTypes xmlns:wb="http://www.worldbank.org" page="1" pages="1" per_page="50" total="4">
<wb:lendingType id="IBD" iso2code="XF">IBRD</wb:lendingType>
<wb:lendingType id="IDB" iso2code="XH">Blend</wb:lendingType>
<wb:lendingType id="IDX" iso2code="XI">IDA</wb:lendingType>
<wb:lendingType id="LNX" iso2code="XX">Not classified</wb:lendingType>
</wb:lendingTypes>
[
{
"page": "1",
"pages": "1",
"per_page": "50",
"total": "4"
},
[
{"id": "IBD","iso2code": "XF","value": "IBRD"},
{"id": "IDB","iso2code": "XH","value": "Blend"},
{"id": "IDX","iso2code": "XI","value": "IDA"},
{"id": "LNX","iso2code": "XX","value": "Not classified"}
]
]