Curated_API_TV

Curated_API_TV

Source:

Curated API calls to the tmdb api end points for TV Shows.

These calls all reference their raw counterparts, but only return selected data points. Also, things like dates are converted to javascript date formats and image data are converted to URL strings.

Methods

(static) tvGetImages(showId, imageTypeopt) → {Array.<string>}

Source:

Returns an array of image URLs. Filters and gives only 'en' English images

Parameters:
Name Type Attributes Default Description
showId string

showId from TMDb API Show Search.

imageType string <optional>
posters

'posters', 'backdrops'

Returns:

Array of URLs to the images

Type
Array.<string>

(static) tvSearchByTitle(searchValue, pageopt) → {tvSearchByTitle_typedef}

Source:

Returns obj with tv shows like searchValue (tv title) passed.

Parameters:
Name Type Attributes Default Description
searchValue string

TV Show name to search for.

page number <optional>
1

page to return. Only works if multiple pages

Returns:

Object data return

Type
tvSearchByTitle_typedef

(static) tvGetShowDetails(showId) → {tvShowDetails_typedef}

Source:

returns show details for showId passed

Parameters:
Name Type Description
showId string

showId from TMDb API Show Search.

Returns:
Type
tvShowDetails_typedef

(static) tvGetShowCredits(showId) → {tvCredits_typedef}

Source:

returns show credits for showId passed

Parameters:
Name Type Description
showId string

showId from TMDb API Show Search.

Returns:
Type
tvCredits_typedef