ver. 2035 (2605b6c)
services/apiref
services/apisrv
services/attrs
services/caches
services/caches/formatters
services/caches/map
services/caches/search
services/caches/shortcuts
services/draftlogs
services/lists
services/logs
services/logs/images
services/oauth
services/replicate
services/users

The user's cache lists OCDE
:: services/lists/query method

Minimum Authentication: Level 3 (see Authentication Levels)
https://www.opencaching.nl/okapi/services/lists/query

Returns the cache lists the user owns, sorted by name.

A list is referenced by its numeric id (lists have no code like caches); the other services/lists methods take it as list_id.

last_modified changes whenever the list or its caches change, also on the website. A client that keeps the lists offline needs to fetch the caches only of lists whose last_modified changed.

include_caches optional

Default value: false

true adds the codes of the caches on each list (field cache_codes), so a client gets all lists and their caches in one request.

format optional Standard common formatting argument.
callback optional Standard common formatting argument.
Plus required standard OAuth Consumer signing arguments: oauth_consumer_key, oauth_nonce, oauth_timestamp, oauth_signature, oauth_signature_method, oauth_version. Plus required oauth_token for Token authorization.

Returned value:

A list of dictionaries, one per list:

  • id - the list's id,
  • name - its name,
  • description - its description in HTML (as the website keeps it; may be empty),
  • status - 0 private, 2 public, 3 public and shown in cache listings (see list_status in services/lists/create),
  • password - the password of a private list (empty if none, and for public lists),
  • is_watched - whether the user watches the list,
  • date_created, last_modified, last_added - date and time in the installation's time zone ("YYYY-MM-DD HH:MM:SS"); last_added is null while no cache was added,
  • caches_count - the number of caches on the list,
  • watches_count - how many users watch the list,
  • cache_codes - only with include_caches: the codes of the caches on the list.