Skip to main content

Get Embed's Insight Counters

This endpoint retrieves a specific embed's insight counters.

HTTP Request

GET /api/v2/insight/embed/counters/

Parameters

NameInTypeRequiredDescription
category_idpathstringfalseCan be a single category id or list (comma separated) of categories ids. 0 means empty (no category)
created_at__gtepathstring(date-time)falseDatetime of creation(greater than or equal to the given value)
created_at__ltepathstring(date-time)falseDatetime of creation(less than or equal to the given value)
embed_typepathstringfalseThe embed type
embed_idpathstringfalseThe embed id

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/insight/embed/counters/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

NameTypeRequiredRestrictionsDescription
num_contributesintegerfalsenoneThe number of contributes
num_commentsintegerfalsenoneThe number of comments
num_votesintegerfalsenoneThe number of votes
num_clicksintegerfalsenoneThe number of clicks
num_sharesintegerfalsenoneThe number of shares

Example responses

{
"num_contributes": "integer",
"num_comments": "integer",
"num_votes": "integer",
"num_clicks": "integer",
"num_shares": "integer"
}