API Explorer
The World Bank Green Bond raises funds from fixed income investors to support World Bank lending for eligible projects that seek to mitigate climate change or help affected people adapt to it. The product was designed in partnership with Skandinaviska Enskilda Banken (SEB) to respond to specific investor demand for a triple-A rated fixed income product that supports projects that address the climate challenge. World Bank Green Bonds are an opportunity to invest in climate solutions through a high quality credit fixed income product. The triple-A credit quality of the Green Bonds is the same as for any other World Bank bonds. Positive environmental returns by supporting World Bank projects addressing mitigation and adaptation solutions for climate change.
Parameter | Value | Description | API FIELD NAME | Data Type |
---|---|---|---|---|
Type | The category of transaction can be based on size, investor base, structure, purpose and impact | type | STRING | |
Maturity | The date the bond is repaid in full | maturity | NUMBER | |
Denominated Currency | Denomination Currency | denominated_currency | STRING | |
Volume | The size of the transaction. | volume | NUMBER | |
Coupon | The interest rate of the transaction. | coupon | NUMBER | |
Settlement Date | The date the transaction is completed. | settlement_date | DATE | |
Maturity Date | The date the bond is repaid and interest payments stop. | maturity_date | DATE | |
USD Equivalent | The value of the transaction in U.S. dollars | usd_equivalent | NUMBER | |
ISIN | International Securities Identification Number. | isin | STRING | |
Final Terms | The final terms detail all the elements of the transaction. | final_terms | STRING | |
Dataset ID | ID of the associated Dataset | STRING | ||
Top | Number of records to fetch | NUMBER | ||
Skip | Skip the records from the ascending order | NUMBER |
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)
fetch('https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&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);
});
import requests
url = 'https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&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}')
$url = 'https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&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: $_"
}
require 'net/http'
url = URI('https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&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
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=DS01191&top=100&type=json");
Console.WriteLine(response);
}
}
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=DS01191&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());
}
}
shell "curl -X GET https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&top=100&type=json"
<?php
// Specify the URL you want to send the GET request to
$url = "https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&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;
?>
clear
. import delimited "https://datacatalogapi.worldbank.org/dexapps/fone/api/view?viewId=DS01191&top=100&type=json"