media.getTagList

Syntax

array media.getTagList ( int vhost, string sort = 'tag ASC', array filters = array(), int limit = 25, mixed startsWith = false )

Argument Info

NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe vhost ID.
sortstringOptional'tag ASC'Specify here which field you want to sort on.
filtersarrayOptionalarray()You can specify the filter parameters here as an array. Recognized filters are uid (userid), channel, filetype, moderationStatus, timeLimit (in seconds) and tag.
limitintOptional25The total number of tags you want to receive in your response.
startsWithmixedOptionalfalse

Response

The response consists of an array of item elements for each tag the vhost. Each item contains additional the information about the tag.

NameTypeDescriptionDefault Values
itemarrayAn array of items for each tag in the vhost. Each item contains information about the tag.empty

item

The options array may contain the following parameters.

NameTypeDescriptionDefault Values
namestringThe tag name.accounts, channels, groups etc...
hitsINTThe popularity rating of the tag.0
countINTThe frequency that the tag appears in the current vhost.0

Return Values

FieldDescriptionPossible Values