Request Details
Method |
Controller |
Resource |
Parameters |
GET |
platform |
currencies |
|
Parameters Guide
Example Request Format
Direct Url |
https://api.beepxtra.com/platform/countries |
Curl |
CURL -A "YOURAPPNAME|1.0|AppID|AppKEY|platform" -X GET https://api.beepxtra.com/platform/countries |
PHP SDK |
$beepapi->request('get', 'platform', 'countries'); |
Sample Response
Success
{
"success":true,
"request":{
"method":"GET",
"controller":"platform",
"resource":"countries",
"parameters":{
"\/platform\/countries":""
},
"url_elements":[
"platform",
"countries"
]
},
"error":{
"errorid":0,
"message":0
},
"data":[
{
"id":"71",
"name":"Afghanistan",
"flag_name":"Afghanistan",
"country_code":"93",
"continent":"Asia",
"currency":"AFN",
"map_x":"33",
"map_y":"65"
},
{
"id":"19",
"name":"Albania",
"flag_name":"Albania",
"country_code":"355",
"continent":"Europe",
"currency":"ALL",
"map_x":"41",
"map_y":"20"
},
{
"id":"20",
"name":"Algeria",
"flag_name":"Algeria",
"country_code":"213",
"continent":"Africa",
"currency":"DZD",
"map_x":"28",
"map_y":"3"
},
{
"id":"72",
"name":"Andorra",
"flag_name":"Andorra",
"country_code":"376",
"continent":"Europe",
"currency":"EUR",
"map_x":"42.5",
"map_y":"1.6"
},
{
"id":"73",
"name":"Angola",
"flag_name":"Angola",
"country_code":"244",
"continent":"Africa",
"currency":"AOA",
"map_x":"-12.5",
"map_y":"18.5"
},
{
"id":"180",
"name":"Antigua and Barbuda",
"flag_name":"Antigua-and-Barbuda",
"country_code":"1 268",
"continent":"North America",
"currency":"XCD",
"map_x":"17.05",
"map_y":"-61.8"
},
...
]
}
Error
N/A
Response Guide
Parameter |
Type |
Details |
error |
String |
No errors available |
id |
int |
The internal id of the country in Beep Database |
name |
string |
Country name |
flag_name |
string |
The flag image name for the country. Can be accessed via https://www.beepxtra.com/images/flags-32/flag_name .png |
country_code |
int |
The international country calling code |
continent |
string |
The continent name of the country |
currency |
string |
Currency code |
map_x |
float |
The X (Longitude) coordinates of the country |
map_y |
float |
The Y (Latitude) coordinates of the country |