ver. 1422 (72c34c5)
services/apiref
services/apisrv
services/attrs
services/caches
services/caches/formatters
services/caches/map
services/caches/search
services/caches/shortcuts
services/logs
services/logs/images
services/oauth
services/replicate
services/users

Retrieve information on a single user
:: services/users/user method

Minimum Authentication: Level 1 (see Authentication Levels)
https://opencaching.pl/okapi/services/users/user
Retrieve information on a single user. This method might be also used to retrieve data of the user in who's name the Access Token have been issued. To do this, include the Access Token in your request, and don't include the user_uuid argument.
fields required

Pipe-separated list of field names which you are interested with. Selected fields will be included in the response. See below for the list of available fields.

user_uuid optional

ID of the user.

This parameter is optional only when you sign your request with an Access Token (Level 3 Authentication). Otherwise, it is required.

format optional Standard common formatting argument.
callback optional Standard common formatting argument.
Plus required consumer_key argument, assigned for your application.

Returned value:

A dictionary of fields you have selected. Currently available fields:

  • uuid - ID of the user,
  • username - username (login) of the user,
  • profile_url - URL of the user's Opencaching profile page,
  • is_admin - deprecated (why?). boolean, true is user has admin privileges.

    This value can be accessed only with Level 3 Authentication and only for the user of your Access Token. For all other reads, is_admin will equal null.

  • internal_id - internal ID of the user (DO NOT use this! use the uuid as the user identifier),
  • date_registered - date (ISO 8601, no time) indicating when the user has registered his Opencaching account,
  • caches_found - number of "Found it" and "Attended" log entries,
  • caches_notfound - number of "Didn't find it" log entries,
  • caches_hidden - number of caches owned,
  • rcmds_given - number of recommendations given.
  • home_location - home location of the user in the "lat|lon" format (lat and lon are in full degrees with a dot as a decimal point); null if no home location is given in the user's Opencaching profile.

    This value can be accessed only with Level 3 Authentication and only for the user of your Access Token. For all other reads, home_location will equal null.

If given user does not exist, the method will respond with an HTTP 400 error.