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
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.
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api.sportmonks.com/v3/core/countries/search/{search_query}?api_token={your_token}")
.method("GET", null)
.build();
Response response = client.newCall(request).execute();
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);
});