Common
Animals
Fish
Mushrooms
Flora
Login
Registration
Back

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:
nameCountry name
official_name_englishOfficial name of the country
name_langName of the country in different languages ​​of the world
demonymsName of the country's male and female inhabitants
flagFlag of the country
iconCountry icon. Flag at the base.
alpha_3_iso_3166_1A two-letter system with many applications.
iso_3166_1Part of ISO 3166 containing codes for names of countries and subordinate territories.
iso_3166_2Part 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.
languagesLanguage spoken in this country
religionThe main religions in the country
capitalCapital of the country
capital_latitudeLatitude coordinates of the capital
capital_longitudeLongitude coordinates of the capital
regionRegion of the country
subregionSubregion of the country
areaArea of ​​the country
postal_code_formatPostal code format
postal_code_regexPostal code expression
auto_codeAuto country code
bordersNames of countries that this country borders
callingCodeCountry telephone code
domainCountry domain zone
organizationsInternational organizations of which this country is a member
country_latitudeCountry latitude
country_longitudeCountry longitude
currencyThe currency of the country (code and name)
website_ratingSite rating