This repository was archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Get data for media
Spimy edited this page Oct 20, 2020
·
2 revisions
| Required | Name | Default | Accepts | Description |
|---|---|---|---|---|
| ✅ | imdb_id |
Empty | String |
Specify the IMDB ID of the media to get. |
Get a media: /api/v1/media?imdb_id=tt6644200
Code: 200
Returns: Media
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
}Returns: Error
{
detail: String,
type: ErrType
}| 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 |