Skip to main content

Get User's Feed

This endpoint retrieves the list of posts of the user identified by {id}

info

This operation requires authentication only if content_availability community option is false.

HTTP Request

GET /api/v2/user/{id}/feed/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results

Example Request

const headers = {
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/{id}/feed/',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeInline

Response Schema

Status Code 200

NameTypeRequiredRestrictionsDescription
» countintegerfalsenoneTotal results count
» nextstring(uri)¦nullfalsenoneNext page url
» previousstring(uri)¦nullfalsenonePrevious page url
» resultslist(Feed)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"type": "string",
"discussion": {Discussion}
}
]
}