Genre Listing
This API returns all the genres that an authenticated user can choose from for filtering titles.
Header |
Value |
Authorization |
JWT token |
Endpoint
GET v2/watch/content/genres
Query Parameters
Parameter |
Type |
Required |
Description |
q |
String |
Optional |
Filter genres by substring in the name. |
brand |
String |
Optional |
Filter genre by brand. If not passed, the genres from the all-encompassing allprojects brand (i.e., all projects published to the user/audience) will be returned. |
page |
Integer |
Optional |
Page number of the results. The default value is 1. |
limit |
Integer |
Optional |
Number of results per page. The default value is 12. You can set it up to 30. |
Response Body
{
"count": 30,
"previous": "example.com",
"next": "example.com",
"results": [
{
"key": "ABCDXYZ",
"name": "comedy"
}
]
}
Field |
Type |
Description |
count |
Integer |
The total count of results with pagination. |
previous |
String |
Link to the previous set of results. |
next |
String |
Link to the next set of results. |
key |
String |
The unique identifier for the genre. |
name |
String |
The name of the genre. |
Status Codes
Indee status code |
HTTP Response Code |
Description |
W0000 |
HTTP 200 |
Success |
W2000 |
HTTP 401 |
Authorization header was either not passed or there was some issue parsing it |
W2003 |
HTTP 401 |
Invalid auth token |
W2101 |
HTTP 403 |
API key not authorized to perform this action |
W5001 |
HTTP 429 |
Rate limited |
W5000 |
HTTP 500 |
Unknown server error occurred |