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

Overview

This endpoint retrieves detailed information about a specific series, including its metadata, associated images, and nested seasons.

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

Path Parameters

showId
string
required
The unique identifier of the series to retrieve

Response

_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, 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 (e.g., “Season 1”)
description
string
Description of the season
images
array
Array of image objects for the season
created_at
string
Timestamp when the series was created
updated_at
string
Timestamp when the series was last updated

Example Request

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

Example Response

{
  "_id": "507f1f77bcf86cd799439011",
  "title": "Breaking Bad",
  "description": "A high school chemistry teacher turned methamphetamine producer partners with a former student to manufacture and distribute crystal meth.",
  "type": "tvshow",
  "images": [
    {
      "_id": "507f1f77bcf86cd799439012",
      "path": "/images/breaking-bad-poster.jpg",
      "basePath": "/platform-static/images/breaking-bad-poster.jpg"
    },
    {
      "_id": "507f1f77bcf86cd799439013",
      "path": "/images/breaking-bad-banner.jpg",
      "basePath": "/platform-static/images/breaking-bad-banner.jpg"
    }
  ],
  "seasons": [
    {
      "_id": "507f1f77bcf86cd799439014",
      "title": "Season 1",
      "description": "High school chemistry teacher Walter White's life is suddenly transformed.",
      "images": [
        {
          "_id": "507f1f77bcf86cd799439015",
          "path": "/images/breaking-bad-s1.jpg",
          "basePath": "/platform-static/images/breaking-bad-s1.jpg"
        }
      ]
    },
    {
      "_id": "507f1f77bcf86cd799439016",
      "title": "Season 2",
      "description": "Walt and Jesse realize how dire their situation is.",
      "images": []
    }
  ],
  "created_at": "2024-01-15T08:30:00Z",
  "updated_at": "2024-03-05T10:30:00Z"
}

Response Status Codes

200
Success
Successfully retrieved the series details
401
Unauthorized
Invalid or missing API token
404
Not Found
Series with the specified ID does not exist
500
Internal Server Error
An error occurred while fetching the series from MediaStream

Notes

  • The endpoint proxies requests to the MediaStream platform API at /show/{showId}
  • Image URLs can be constructed using: https://platform-static.cdn.mdstrm.com{basePath}
  • The response includes nested season data with the series
  • Series are internally referred to as “shows” in the route parameters and backend code
  • To get episodes for a season, use the nested episodes endpoint: /api/series/{showId}/seasons/{seasonId}/chapters

Build docs developers (and LLMs) love