Count the number of collections where given asset is related to.

28Mar2011

Returns the number of collections where the given asset is related to. This number is stored in the header->item_count_total. The array is empty in this call.

Request URL

/asset/$asset_id/collections/count [GET]

Request Authorization

This call needs EGA authentication.

Request Parameters

Parameter (Type)DescriptionRequiredDefault valueMax. length
asset_id (ALPHA_NUM)The asset ID.Required-

Example Request

/asset/1kr9rRFs6ljcBNNtpM8T5AI3/collection/count

Example Response

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