Skip to main content
GET
/
api
/
series
List Series
curl --request GET \
  --url https://api.example.com/api/series \
  --header 'X-API-Token: <x-api-token>'
{
  "200": {},
  "401": {},
  "500": {},
  "data": [
    {
      "_id": "<string>",
      "title": "<string>",
      "description": "<string>",
      "type": "<string>",
      "images": [
        {
          "_id": "<string>",
          "path": "<string>",
          "basePath": "<string>"
        }
      ],
      "seasons": [
        {
          "_id": "<string>",
          "title": "<string>"
        }
      ]
    }
  ]
}

Overview

This endpoint returns all series (TV shows) that are available in the MediaStream platform. The response includes series metadata such as titles, descriptions, and associated images.

Authentication

This endpoint requires MediaStream API authentication using the X-API-Token header.
X-API-Token
string
required
Your MediaStream API authentication token
Accept
string
default:"application/json"
Content type for the response

Response

data
array
Array of series objects
_id
string
Unique identifier for the series
title
string
The title of the series
description
string
Detailed description of the series
type
string
Type of content (e.g., “tvshow”)
images
array
Array of image objects associated with the series
_id
string
Unique identifier for the image
path
string
Relative path to the image
basePath
string
Base path for the image, typically used with CDN URL
seasons
array
Array of season objects associated with the series
_id
string
Unique identifier for the season
title
string
Title of the season

Example Request

curl -X GET "https://your-domain.com/api/series" \
  -H "X-API-Token: your_api_token" \
  -H "Accept: application/json"

Example Response

{
  "data": [
    {
      "_id": "507f1f77bcf86cd799439011",
      "title": "Breaking Bad",
      "description": "A high school chemistry teacher turned methamphetamine producer",
      "type": "tvshow",
      "images": [
        {
          "_id": "507f1f77bcf86cd799439012",
          "path": "/images/breaking-bad.jpg",
          "basePath": "/platform-static/images/breaking-bad.jpg"
        }
      ],
      "seasons": [
        {
          "_id": "507f1f77bcf86cd799439013",
          "title": "Season 1"
        }
      ]
    },
    {
      "_id": "507f1f77bcf86cd799439021",
      "title": "Better Call Saul",
      "description": "The trials and tribulations of criminal lawyer Jimmy McGill",
      "type": "tvshow",
      "images": [
        {
          "_id": "507f1f77bcf86cd799439022",
          "path": "/images/better-call-saul.jpg",
          "basePath": "/platform-static/images/better-call-saul.jpg"
        }
      ],
      "seasons": []
    }
  ]
}

Response Status Codes

200
Success
Successfully retrieved the list of series
401
Unauthorized
Invalid or missing API token
500
Internal Server Error
An error occurred while fetching series from MediaStream

Notes

  • The endpoint proxies requests to the MediaStream platform API at /show
  • Image URLs can be constructed using: https://platform-static.cdn.mdstrm.com{basePath}
  • The response structure depends on the MediaStream platform API
  • Series are also referred to as “shows” in the backend implementation

Build docs developers (and LLMs) love