Skip to main content

Get Best Users Insight

This endpoint retrieves the best users insights list.

HTTP Request

GET /api/v2/insight/user/

Parameters

NameInTypeRequiredDescription
limitpathintegerfalseNumber of results to return per page
offsetpathintegerfalseThe initial index from which to return the results
category_idpathstringfalseCan be a single category id or list (comma separated) of categories ids. 0 means empty (no category). If you use a list of ids then any user who matches at least one id will be returned (the filter is in OR and not in AND)
user_tag_idpathstringfalseCan be a single user tag id or list (comma separated) of user tag ids. If you use a list of ids then any user who matches at least one id will be returned (the filter is in OR and not in AND)
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)
ranked_bypathstringfalseThe rank value to use: num_posts, num_comments, num_answers_received, num_comments_received, num_votes, num_votes_received, num_connections, num_followings, num_followers, num_shares, num_posts_visits, num_embed_custom_click_received (default: rank function). If a list (eg: num_comments, num_answers_received) the final rank will be the sum of the list components
embed_idpathstringfalseThe embed id (required in combo with embed_type)
embed_typepathstringfalseThe embed type (required in combo with embed_id)

Example Request

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

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

NameTypeRequiredRestrictionsDescription
countintegerfalsenoneTotal results count
nextstring(uri)¦nullfalsenoneNext page url
previousstring(uri)¦nullfalsenonePrevious page url
resultslistfalsenoneList of results
» userUserfalsenoneA user
» scoreintegerfalsenoneThe user score

Example response

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"user": "{User}",
"score": "integer"
}
]
}