Count collections

17May2010

Count the number of collections that match a group or an owner. If no parameter is given, the total number of collections is returned. The item_count_total is part of the header response output.

Request URL

/collection/count [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
group_id (ALPHA_NUM)Group idOptional-
owner_id (ALPHA_NUM)Optional-

Example Request

/collection/count?owner_id=foo [GET]

Example Response

<header>
  <item_count>0</item_count>
  <item_count_total>1</item_count_total>
  <item_offset>0</item_offset>
</header>