Skip to main content

Get User's Categories

This endpoint gets user's categories

info

This operation does not require authentication.

HTTP Request

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

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user
mutualpathintegerfalseAllowed values: 0-1. Param 0 returns the list of non mutual categories. Param 1 returns only the mutual list

Example Request

const headers = {
'Accept':'application/json'
};

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

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeCategory

Example responses

info

The results always return categories sorted by: first mutuals and then non-mutuals.

[
{
"id": "integer",
"tags": [{Tag}],
"order": "integer",
"name": "string",
"name_synonyms": "string",
"slug": "string",
"slogan": "string",
"html_info": "string",
"seo_title": "string",
"seo_description": "string",
"auto_follow": "string",
"active": "boolean",
"image_original": "string",
"image_bigger": "string",
"image_big": "string",
"image_medium": "string",
"image_small": "string",
"emotional_image_original": "string",
"emotional_image_position": "integer",
"lastmod_datetime": "string",
"stream_order_by": "string",
"followers_counter": "integer"
},
{...}
]