Retrieve Tag Count
From KickApps Documentation
Contents |
Overview
Retrieve Tag Count call allows you to retrieve the number of times a media item was tagged with a particular tag.
Your request will look something like the following for media:
http://api.kickapps.com/rest/tags/count/{mediaType)/{as}
Parameters
As shown above, your call will include the following parameters:
- mediaType. This is the type of media for which you want to get the tag count. Supported media types are audio,video,photo, emedia, sets and blog.
- as. The site that you are searching. Each affiliate site has a unique as.
Post Parameters
- t. String. Required. Your access permissions.
- callback. String. Optional. The name of your JavaScript callback function.
- clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
- mediaId. Required. Accepts multiple media id's (comma separated).
- url. Required for external media only (do not include in other calls). The URL of the external media (same as pathToMedia). Comma separated url's are accepted.
- fromDate. Optional. The date from which the results need to be filtered. The date should be in the following format: MM-DD-YYYY
- toDate. Optional. The date to which the results need to be filtered. The date should be in the following format: MM-DD-YYYY
- adminTags. Optional. This will allow you to filter the results based on Adming tags, so that, only the media items with specified admin tags are returned.
JSON Payload
On success, a payload that looks like the following will be returned:
{"tags":{"1193289":[{"count":3,"tag":"abc"},{"count":1,"tag":"abcd"}],"1193290":[{"count":1,"tag":"xyz"},{"count":5,"tag":"wxyz"}]},"error":"","status":1,"payload_type":"json"}
- tags. List of tags that has been added for this media
- count. The number of times the media has been tagged with the given tag.
List of KickApps API Calls
Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.
Favorites









