The globalstats_profile_country method allows you to get all public information about a specific country.

Input parameters:

country_namecountry name (in English); please see the country filters used throughout the EBT website for a list of valid values
language(optional) EBT language code, defaults to "en" (English); please see the EBT website for a list of available languages
time_offset(optional) offset from UTC in winter time, defaults to 2 (i.e. UTC+2 / EET)

The language and time_offset parameters allow you to localize some data, e.g. show the country name in your language or the timestamp of the country's last activity adjusted to your timezone. By default the data is presented in English and with a Finnish timestamp. Please note that the server is honoring European daylight saving time, so the time offset doesn't have to be adjusted if you're from a country with similar summer time rules.

Output:

An associative array containing the following elements:

dataan associative array containing information about the country:
- country_nameEnglish name
- country_name_translatedlocalized country name
- first_seen_timestamp
- first_seen_timestamp_adjusted
- last_active_timestamp
- last_active_timestamp_adjusted
- latitude
- longitude
- latlong_qualityenumeration: 0 = exact, 1-9 = interpolated at various degrees (higher == worse, >8 may be outright wrong), -1 = no coordinates found;
currently always 3 since we simply average the coordinates of all subsumed locations
- flag_url
- total_notes
- total_hits
- total_usersnumber of users which set their default location to this country
- total_visitorsnumber of users which entered notes in this country
- total_subsumed_region1number of subsumed regions on level 1 (NULL if not applicable)
- region1_name_pluralname of region 1 layer (NULL if not applicable)
- region1_name_plural_translated
- total_subsumed_region2number of subsumed regions on level 2 (NULL if not applicable)
- region2_name_pluralname of region 2 layer (NULL if not applicable)
- region2_name_plural_translated
- total_subsumed_region3number of subsumed regions on level 3 (NULL if not applicable)
- region3_name_pluralname of region 3 layer (NULL if not applicable)
- region3_name_plural_translated

If there is no country with the requested name the data array is empty.

Example:

https://api.eurobilltracker.com/?m=globalstats_profile_country&v=1&PHPSESSID=12345678&country_name=Germany&language=en&time_offset=1



Current version: 1

Previous versions: -none-

[ back ]