Appearance
Get Country List
Supported countries and dial codes.
| Method | GET |
| URL | /api/m1/country-list |
| Auth | Bearer ZMPRO-… (live) or ZMDEV-… (test) |
Headers
| Header | Value |
|---|---|
Authorization | Bearer ZMPRO-your-live-api-key |
Request
bash
curl -X GET 'https://api.vizo.app/api/m1/country-list' \
-H 'Authorization: Bearer ZMPRO-your-live-api-key'ts
const response = await fetch('https://api.vizo.app/api/m1/country-list', {
method: 'GET',
headers: {
Authorization: 'Bearer ZMPRO-your-live-api-key',
},
});
const data = await response.json();
console.log(data);py
import requests
url = "https://api.vizo.app/api/m1/country-list"
headers = {
"Authorization": "Bearer ZMPRO-your-live-api-key",
}
response = requests.request("GET", url, headers=headers)
print(response.status_code)
print(response.json())php
<?php
$ch = curl_init('https://api.vizo.app/api/m1/country-list');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ZMPRO-your-live-api-key',
],
]);
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;Responses
Get Country List — 200 OK
json
{
"status": "SUCCESS",
"data": [
{
"country_name": "Afghanistan",
"currency_code": "AFN",
"currency_list": [
"AFN",
"USD",
"EUR",
"GBP"
],
"country_code": "af",
"phone_code": "93",
"currency_symbol": "\u060b"
},
{
"country_name": "Albania",
"currency_code": "ALL",
"currency_list": [
"ALL",
"USD",
"EUR",
"GBP"
],
"country_code": "al",
"phone_code": "355",
"currency_symbol": "Lek"
},
{
"country_name": "Algeria",
"currency_code": "DZD",
"currency_list": [
"DZD",
"USD",
"EUR",
"GBP"
],
"country_code": "dz",
"phone_code": "213",
"currency_symbol": "DZD"
}
],
"message": "Success"
}
// … truncated, 246 items in full response