Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Get data for media

Spimy edited this page Oct 20, 2020 · 2 revisions

GET /api/v1/media

Query Strings

Required Name Default Accepts Description
imdb_id Empty String Specify the IMDB ID of the media to get.

Example paths

Get a media: /api/v1/media?imdb_id=tt6644200

✔️ Success Response

Code: 200

Returns: Media

Media Schema

The release_date property is following yyyy-mm-dd date format.

{
  title: String,
  poster: String | null,
  banner: String | null,
  imdb_id: String,
  release_date: String
}

❌ Error Response

Returns: Error

Error Schema
{
  detail: String,
  type: ErrType
}

Possible Types

Status Code ErrType Description
400 NO_ID Empty string or no query has been passed
404 NOT_FOUND The data has not been found for that ID
405 INVALID_REQ_METHOD Used wrong method to make the request
Clone this wiki locally