{"data": {"id":462,"continent_id":1,"name":"United Kingdom","official_name":"United Kingdom of Great Britain and Northern Ireland","fifa_name":"ENG,NIR,SCO,WAL","iso2":"GB","iso3":"GBR","latitude":"54.56088638305664","longitude":"-2.2125117778778076","geonameid":2635167,"borders": ["IRL" ],"image_path":"https://cdn.sportmonks.com/images//countries/png/short/gb.png" },
Field
Description
Type
id
Refers to the id of the country
integer
continent_id
Refers to the continent of the country
integer
name
Displays the name of the country
string
official_name
Displays the officiel name of the country
string
fifa_name
Displays the official fifa shortcode name of the country
string
iso2
Returns the two letter country code
string
iso3
Returns the three letter country code
string
latitude
Returns the official latitude position of the country
string
longitude
Returns the official longitude position of the country
string
geonameid
Returns the official geonameid
integer
border
Returns all the neighbour countries of the country
string
image_path
Returns the image path of the country
string
Query Parameters
Required?
Description
api_token
YES
Your unique API token
include
NO
Enrich the API with more data by using includes
select
NO
Select specific fields on the base entity
filters
NO
Filter the API response on multiple related entities. There are static filters and dynamic filters.
Please find the possibilities in the Static and Dynamic Filter tab.
Not applicable for this endpoint.
The dynamic filters are based on entities and includes. Each dynamic filter uses an entity to filter on and one entity to apply the filter on. Below are examples with explanations of how filters are set up. For more information, please look at our Filters page.
Dynamic Filters
Available on Entity
Description
Examples
regions
Coaches, Leagues, Players, Teams, and way more.
Check this endpoint for all possibilities.
var unirest = require('unirest');
var req = unirest('GET', 'https://api.sportmonks.com/v3/core/countries/search/{search_query}?api_token={your_token}')
.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.raw_body);
});