Retrieves the list of currently supported currencies by the currency API.
https://api.upcdatabase.org/currency/symbols
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.upcdatabase.org/currency/symbols', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_HTTPHEADER => array( 'Authorization: Bearer THISISALIVEDEMOAPIKEY19651D54X47' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var settings = { "url": "https://api.upcdatabase.org/currency/symbols", "method": "GET", "timeout": 0, "headers": { "Authorization": "Bearer THISISALIVEDEMOAPIKEY19651D54X47" }, }; $.ajax(settings).done(function (response) { console.log(response); });
curl --location --request GET 'https://api.upcdatabase.org/currency/symbols' \ --header 'Authorization: Bearer THISISALIVEDEMOAPIKEY19651D54X47'
The response contains an array of all the currently supported currencies in JSON format.
{ "success": true, "timestamp": 1569279710, "symbols": { "USD": "US dollar", "EUR": "Euro", "JPY": "Japanese yen", "GBP": "Pound sterling", "AUD": "Australian dollar", "CAD": "Canadian dollar", "CHF": "Swiss franc", "CNH": "Chinese renminbi", "SEK": "Swedish krona", "NZD": "New Zealand dollar" } }