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
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying this user |
mutual | path | integer | false | Allowed values: 0-1. Param 0 returns the list of non mutual categories. Param 1 returns only the mutual list |
Example Request
- JavaScript
- Bash
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);
});
# You can also use wget
curl -X GET /api/v2/user/{id}/categories/ \
-H 'Accept: application/json'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Category |
Example responses
info
The results always return categories sorted by: first mutuals and then non-mutuals.
- 200
[
{
"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"
},
{...}
]