Skip to main content

Search a Reaction

This endpoint performs a specific reaction search.

info

This operation does not require authentication.

HTTP Request

GET /api/v2/reaction/search/

Parameters

NameInTypeRequiredDescription
searchquerystringfalseA search term
activequerybooleanfalseIf the reaction is active

Example Request


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

fetch('/api/v2/reaction/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(Reaction)falsenoneList of results

Example responses

{
"count": "integer",
"next": "string(uri)",
"previous": "string(uri)",
"results": [
{
"id": "integer",
"label": "string",
"sentiment": "integer",
"image": "string(uri)",
"active": "boolean"
}
]
}