![]() |
Definition by country coordinates v 1.4 |
Register and receive a token to access the API. The token will be available in your personal account.
Demo token 93a1f6fc-3fa2-40ee-9fae-0ff301df50f0 (The token is valid on average for about three days).
<?php
// Demo token. (Replace it with your token).
$token = '93a1f6fc-3fa2-40ee-9fae-0ff301df50f0';
$latitude = '-37.837617'; // Latitude coordinates
$longitude = '-64.788609'; // Longitude coordinates
$url = 'https://wildtracks.pro/api/polygon/' . $token . '/' . $latitude . '/' . $longitude . '/';
$response = file_get_contents($url);
if ($response === FALSE) {
die('Error occurred while fetching data.');
}
$data = json_decode($response, true);
if ($data === NULL) {
die('Error decoding JSON.');
}
// Array output
echo "<pre>";
print_r($data);
echo "</pre>";
?>
Example:
{
"name": "Argentina",
"official_name_english": "Argentine Republic",
"country_latitude": "-34",
"country_longitude": "-64",
"name_lang": {
"ara": "الأرجنتين",
"ces": "Argentina",
"cym": "Ariannin",
"deu": "Argentinien",
"est": "Argentina",
"fin": "Argentiina",
"fra": "Argentine",
"hrv": "Argentina",
"hun": "Argentína",
"ita": "Argentina",
"jpn": "アルゼンチン",
"kor": "아르헨티나",
"nld": "Argentinië",
"per": "آرژانتین",
"pol": "Argentyna",
"por": "Argentina",
"rus": "Аргентина",
"slk": "Argentína",
"spa": "Argentina",
"swe": "Argentina",
"urd": "ارجنٹائن",
"zho": "阿根廷",
"grn": "Argentina",
"eng": "Argentina"
},
"demonyms": {
"eng": {
"f": "Argentine",
"m": "Argentine"
},
"fra": {
"f": "Argentine",
"m": "Argentin"
}
},
"flag": "https://wildtracks.pro/images/ar/ar.svg",
"icon": "https://wildtracks.pro/images/ar/ar_icons.svg",
"alpha_3_iso_3166_1": "ARG",
"iso_3166_1": "32",
"iso_3166_2": "AR",
"languages": [
"Spanish
",
"English
",
"Italian
",
"German
",
"French
",
"Guarani
"
],
"religion": [
"Christian",
"Muslim (Sunni and Shia)",
"Irreligion",
"Other religions"
],
"capital": "Buenos Aires",
"capital_latitude": "-34.58",
"capital_longitude": "-58.67",
"region": "Americas",
"subregion": "South America",
"area": "2780400",
"postal_code_format": "@####@@@",
"postal_code_regex": "^[A-Z]?d{4}[A-Z]{0,3}$",
"auto_code": "RA",
"borders": {
"BOL": "Bolivia",
"BRA": "Brazil",
"CHL": "Chile",
"PRY": "Paraguay",
"URY": "Uruguay"
},
"callingCode": "+54",
"currency": {
"ARS": "Argentine Peso"
},
"timezones": [
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Buenos_Aires"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Catamarca"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Cordoba"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Jujuy"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/La_Rioja"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Mendoza"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Rio_Gallegos"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Salta"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/San_Juan"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/San_Luis"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Tucuman"
},
{
"time_zones": "UTC-03:00",
"name": "America/Argentina/Ushuaia"
}
],
"domain": [
".ar"
],
"website_rating": [
"Google.com",
"Youtube.com",
"Google.com.ar",
"Mercadolibre.com.ar",
"Facebook.com",
"Live.com",
"Yahoo.com",
"Netflix.com",
"Afip.gob.ar",
"Infobae.com",
"Wikipedia.org",
"Instagram.com",
"Clarin.com",
"Redlink.com.ar",
"Elintransigente.com",
"Lanacion.com.ar",
"Mercadopago.com.ar",
"Argentina.gob.ar",
"Ole.com.ar",
"Santander.com.ar",
"Zoom.us",
"Twitter.com",
"Bancogalicia.com.ar",
"Microsoft.com",
"Ellitoral.com",
"Whatsapp.com",
"Bbva.com.ar",
"Daum.net",
"Twitch.tv",
"Amazon.com",
"Pagina12.com.ar",
"Diariopanorama.com",
"Naver.com",
"Bongacams.com",
"Mercadolibre.com",
"Bancainternet.com.ar",
"Bna.com.ar",
"Anses.gob.ar",
"Perfil.com",
"Office.com",
"Xvideos.com",
"Msn.com",
"Adobe.com",
"Futbollibre.online",
"Spotify.com",
"Reddit.com",
"Telegram.org",
"Tistory.com",
"Ambito.com",
"Bing.com"
],
"organizations": {
"TIAR": {
"type": "Military-political associations",
"name": "Inter-American Treaty of Mutual Assistance"
},
"UNASUR": {
"type": "Political unions and confederations",
"name": "Union of South American Nations"
},
"G77": {
"type": "Political unions and confederations",
"name": "Group 77"
},
"UN": {
"type": "Integration associations of a wide profile",
"name": "United Nations"
},
"WTO": {
"type": "Integration associations of a wide profile",
"name": "world Trade organisation"
},
"OIS": {
"type": "Integration associations of a wide profile",
"name": "Organization of American States"
},
"ALADI": {
"type": "Integration associations of a wide profile",
"name": "Latin American Integration Association"
},
"CELAC": {
"type": "Economic and monetary unions",
"name": "Community of Latin American and Caribbean Countries"
},
"G20": {
"type": "Economic and monetary unions",
"name": "G20"
},
"MERCOSUR": {
"type": "Customs unions",
"name": "Mercosur"
},
"GdR": {
"type": "Permanent forums",
"name": "Rio Group"
}
}
}
Description of fields:
name | Country name |
official_name_english | Official name of the country |
name_lang | Name of the country in different languages of the world |
demonyms | Name of the country's male and female inhabitants |
flag | Flag of the country |
icon | Country icon. Flag at the base. |
alpha_3_iso_3166_1 | A two-letter system with many applications. |
iso_3166_1 | Part of ISO 3166 containing codes for names of countries and subordinate territories. |
iso_3166_2 | Part of the ISO 3166 standard published by the International Organization for Standardization and defining geocodes for the major units of the first or first and second level of administrative-territorial division of the territory of all countries. |
languages | Language spoken in this country |
religion | The main religions in the country |
capital | Capital of the country |
capital_latitude | Latitude coordinates of the capital |
capital_longitude | Longitude coordinates of the capital |
region | Region of the country |
subregion | Subregion of the country |
area | Area of the country |
postal_code_format | Postal code format |
postal_code_regex | Postal code expression |
auto_code | Auto country code |
borders | Names of countries that this country borders |
callingCode | Country telephone code |
domain | Country domain zone |
organizations | International organizations of which this country is a member |
country_latitude | Country latitude |
country_longitude | Country longitude |
currency | The currency of the country (code and name) |
website_rating | Site rating |