API Explorer

Loans and Credits

IBRD China Commitments by FY

Data as of Oct 31, 2024

The International Bank for Reconstruction and Development (IBRD) loans and International Development Association (IDA) credits are public and publicly guaranteed debt extended by the World Bank Group.

IBRD loans and IDA Credits are made to, or guaranteed by, countries that are members of IBRD and IDA.

IBRD lends at market rates. IDA provides development credits, grants, and guarantees to its recipient member countries at concessional rates. IDA also has Non-Concessional Lending which is priced at market rates (similar to IBRD).

IBRD and IDA net flows and commitments dataset contains IBRD and IDA commitments, gross disbursements, repayments, net disbursements (disbursements net of repayments), Interest charges, and fees (commitment fee, front end fee, service charges, and guarantee fees) at a country level.

Data are in U.S. dollars calculated using historical rates.

Important Note

We recommend users to adopt API service option only for datasets exceeding a million records. For other datasets, kindly use the JSON link available on the "Actions and Tools" section which enables extraction of all the records at once.

Parameters
ParameterValueDescriptionAPI FIELD NAMEData Type
Fiscal Year Fiscal year represents the financial year as of which balances are shown in the reportfiscal_yearSTRING
Dataset IDID of the associated DatasetSTRING
TopNumber of records to fetchNUMBER
SkipSkip the records from the ascending orderNUMBER
Please Note:
  • This API will support up to a maximum of 1000 records per request / page.
  • The date format for all date fields should be DD-MMM-YYYY.
  • Selection will allow for multiple parameters E.g (Country = India|Afghanistan).
  • The filters for blank and non-blank should be IS NULL and IS NOT NULL E.g (Country = IS NULL, Country = IS NOT NULL)

https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json

No Data Available

DS01171
World Bank Group
Mar 17, 2022
Nov 21, 2024
Licensing and Attribution
Creative Commons Attribution 4.0 International
Creative Commons Attribution 4.0 International
Additional Information
Time Series
World Bank Group
Month
Other
official
Monthly
World
fiscal_year
Query tool,API,Mobile App,Bulk download
English
By 15th of each month
Oct 31, 2024
Nov 21, 2024
Nov 21, 2024
Scope
JavaScript makes it super simple to fetch from an API endpoint.
fetch('https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json')
    .then(response => {
        if (!response.ok) {
            throw new Error('');
        }
        return response.json();
    })
    .then(data => {
        // Do something with the response data
        // console.log(data);
    })
    .catch(error => {
        console.error('Error:', error);
    });
    
Python for easily work with data.
import requests
url = 'https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json'
try:
    response = requests.get(url)
    response.raise_for_status()  # Raise an exception for 4XX and 5XX status codes
    data = response.json()  # Parse the JSON response
    print(data)  # Print the response data
except requests.RequestException as e:
    print(f'Error: {e}')
PowerShell code to extract data.
$url = 'https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json'
try {
    $response = Invoke-RestMethod -Uri $url -Method Get
    # Print the response
    Write-Output $response
} catch {
    # Print error message if request fails
    Write-Error "Error: $_"
}
The following snippet brings data into your application.
require 'net/http'
url = URI('https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json')
begin
response = Net::HTTP.get_response(url)
if response.is_a?(Net::HTTPSuccess)
    puts response.body
else
    puts "Error: #{response.code} - #{response.message}"
end
rescue StandardError => e
puts "Error: #{e.message}"
end
Below code that makes usage with .NET more natural.
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
    static async Task Main(string[] args)
    {
        var response = await new HttpClient().GetStringAsync("https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json");
        Console.WriteLine(response);
    }
}
JAVA for easily work with data.
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class Main {
    public static void main(String[] args) throws Exception {
        URL url = new URL("https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json");
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("GET");
        BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
        String line;
        StringBuffer response = new StringBuffer();
        while ((line = reader.readLine()) != null) {
            response.append(line);
        }
        reader.close();
        System.out.println(response.toString());
    }
}
The following snippet brings data into your application.
shell "curl -X GET https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json"
PHP code to brings the data.
<?php
// Specify the URL you want to send the GET request to
$url = "https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json";
// Initialize cURL session
$curl = curl_init();
// Set the cURL options
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
// Execute cURL session
$response = curl_exec($curl);
// Close cURL session
curl_close($curl);
// Print the response
echo $response;
?>
            
Copy and paste the following to import this dataset into Stata.
clear
. import delimited "https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01171&top=100&type=json"