Skip to main content

Search Groups

This endpoint performs groups search only for groups that has visible = true or when visible = false the user must already be part of the group.

info

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

HTTP Request

GET /api/v2/group/search/

Parameters

NameInTypeRequiredDescription
limitqueryintegerfalseNumber of results to return per page
offsetqueryintegerfalseThe initial index from which to return the results
searchquerystringfalseA search term

Example Request


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

fetch('/api/v2/group/search/',
{
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(Group)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"name": "string",
"description": "string",
"slug": "string",
"color": "string",
"privacy": {},
"visible": "boolean",
"active": "boolean",
"subscription_status": {},
"subscribed": "boolean",
"image_bigger": "string",
"image_big": "string",
"image_medium": "string",
"image_small": "string",
"emotional_image": "string",
"emotional_image_position": "integer",
"subscribers_counter": "integer"
"created_at": "string",
"created_by": {},
"managed_by": {}

}
]
}