The globalstats_profile_user method allows you to get all public information about a specific user ID.

If you are logged in and are viewing your own profile this method also returns some private data such as your exact home location and the number of moderated hits.

Input parameters:

user_idthe ID of the user
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 user data, e.g. show the home country name in your language or the timestamp of the user'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.


An associative array containing the following elements:

dataan associative array containing information about the note:
- user_id
- user_name
- join_date
- last_active_timestamp
- last_active_timestamp_adjustedaccording to provided timezone
- home_city_id
- home_city_nameoriginal name, e.g. Roma for Rome, Wien for Vienna
- home_city_name_translatedlocalized city name
- home_location_namecity name as entered by user
- home_country_nameenglish name
- home_country_name_translatedlocalized country name
- home_postal_codeonly available if you are logged in and viewing your own profile, otherwise NULL
- home_city_latitude
- home_city_longitude
- home_city_latlong_qualityenumeration: 0 = exact, 1-9 = interpolated at various degrees (higher == worse, >8 may be outright wrong), -1 = no coordinates found;
please note that if you're not logged in or not requesting your own profile coordinates are given for the home city (city/country) instead of the home location (location name/postal code/country), so the coordinate quality can be 3 at best
- total_notes
- total_hits
- total_moderated_hitsonly available if you are logged in and viewing your own profile, otherwise NULL
- urlURL of user's homepage
- img_url_notes_europeNULL if user doesn't share this map
- img_url_notes_worldNULL if user doesn't share this map
- img_url_hits_europeNULL if user doesn't share this map
- shares_stats(enumeration: 1 = user shares note stats, 0 = user doesn't share)
- shares_hitpartners(enumeration: 1 = user shares hitpartners, 0 = user doesn't share)

If there is no user with the requested id the data array is empty.


Current version: 1

Previous versions: -none-

[ back ]