Fetch tags
GET /accounts/{account_id}/alerts/{alert_id}/tags
You are able to get the list of all tags of an alert.
Parameters
account_id
(string) - Id of the accountalert_id
(number) - Id of the alert
Page content
Minimal curl example
curl -ig 'https://api.mention.net/api/accounts/{account_id}/alerts/{alert_id}/tags' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Accept-Version: 1.19'
Request example
- Headers
Authorization: Bearer YOUR_ACCESS_TOKEN
Accept-Version: 1.19
- Body
None
Response example
- Body
{ "tags": [ {...tag...}, {...tag...} ], "_links": [] }
Tags
tags
It is simply a list of json objects representing each a tag of the alert, in its full form:
{
"id": 46468,
"name": "space innovation",
"mention_count": 0,
"keywords": ["space"]
}
Id
id
The id given to the tag. This is the unique identifier of the tag. If you change the label (name
) of the tag later, all mentions tagged with it will keep the same tags, as they are linked to the tag by its id, not its name.
Name
name
The human-readable label given to the tag.
Mention count
mention_count
The number of mentions with that tag.
Keywords
keywords
The list of keywords used for auto-tagging. Any new mention containing these keywords will automatically tagged. A tag can have a maximum of 5 keywords.