Contents
On this page
List Genres - Plugixa Stream
GET /plugixa-stream/v1/genres
The genre filter’s options: every genre that has at least one title, by name.
Public: no sign-in needed. Only published titles and episodes are ever returned.
Request
GET https://your-site.example/wp-json/plugixa-stream/v1/genres
Responses
200 OK. data is the list of genres.
{
"success": true,
"data": [
{
"id": 40,
"name": "Action"
},
{
"id": 39,
"name": "Adventure"
},
{
"id": 35,
"name": "Animation"
}
]
}
| Field | Type | Meaning |
|---|---|---|
data[].id |
integer |
The genre’s term id, for genre in Browse Titles |
data[].name |
string |
Its name |
Errors
This endpoint has no errors of its own.
Plus the errors every endpoint can return.
Examples
curl -s "https://your-site.example/wp-json/plugixa-stream/v1/genres"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/genres');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
const response = await fetch('https://your-site.example/wp-json/plugixa-stream/v1/genres');
const { data } = await response.json();
Quick Links
Share