Simple module used to access the TVShowTime API
MIT License
Simple module used to access the TVShowTime API
npm install tvshowtime-api
var api = require('tvshowtime-api')
var tv = new api('YOUR_TOKEN')
GOTO http://tvsapi.lunik.xyz
Get the user info.
Get the user to-watch list.
Options:
Name | Type | Description |
---|---|---|
page | integer | Page number. Default: 0 |
limit | integer | Elements per page. Default: 10 |
lang | string | Language of the content (en, fr, es, it, pt). Default: user lang |
Get the user agenda.
Options:
Name | Type | Description |
---|---|---|
page | integer | Page number. Default: 0 |
limit | integer | Elements per page. Default: 10 |
include_watched | boolean | Include watched episodes in results. |
Get the user library.
Options:
Name | Type | Description |
---|---|---|
page | integer | Page number. Default: 0 |
limit | integer | Elements per page. Default: 10 |
Discover trending shows.
Options:
Name | Type | Description |
---|---|---|
page | integer | Page number. Default: 0 |
limit | integer | Elements per page. Default: 10 |
Get show data.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
show_name * | string | The name of the show. |
include_episodes | boolean | Include all episodes in results. |
exact | boolean | Exact match for show name. Default: 0 |
Check if a show is followed.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Check if a show is followed.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Unfollow a show.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Archive a show.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Check if a show is archived.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Unarchive a show.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
Set the progress for a show.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
season | integer | The season number. |
episode | integer | The episode number. |
Delete the progress for a show.
Options:
Name | Type | Description |
---|---|---|
show_id * | integer | The TVDB ID of the show. |
season | integer | The season number. |
episode | integer | The episode number. |
Get episode data.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
Mark an episode as watched.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
publish_on_ticker | boolean | Publish on Facebook. |
publish_on_twitter | boolean | Publish on Twitter. |
auto_follow | boolean | Auto-follow the show if not already followed. Default: 1 |
Check if an episode was watched.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
Unmark an episode as watched.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
Get the progress for an episode.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
Set the progress for an episode.
Options:
Name | Type | Description |
---|---|---|
filename * | string | The filename of the episode. e.g. "game.of.thrones.s04e10.720p.hdtv.x264-killers.mkv" |
episode_id * | integer | The TVDB ID of the episode. |
imdb_id * | string | The IMDB ID of the episode. |
show_id* | integer | The TVDB ID of the show. |
season_number * | integer | Season number of the episode. |
number * | integer | Episode number of the episode. |
Set the emotion for an episode.
Name | Type | Description |
---|---|---|
episode_id * | integer | The TVDB ID of the episode. |
emotion_id * | integer | The emotion the user felt. |
emotion_id: 1 Good - 2 Fun - 3 Wow - 4 Sad - 6 Soso - 7 Bad |
Delete the emotion for an episode.
Name | Type | Description |
---|---|---|
episode_id * | integer | The TVDB ID of the episode. |