Contents
On this page

List Years - Plugixa Stream

GET /plugixa-stream/v1/years

The year filter’s options: each release year that a published title has, newest first.

Public: no sign-in needed. Only published titles and episodes are ever returned.

Request

GET https://your-site.example/wp-json/plugixa-stream/v1/years

Responses

200 OK. data is a list of years.

{
  "success": true,
  "data": [2020, 2017, 2010, 1936, 1917]
}
Field Type Meaning
data[] integer A release year

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/years"
<?php
$ch = curl_init('https://your-site.example/wp-json/plugixa-stream/v1/years');
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/years');
const { data } = await response.json();

Quick Links

Share