Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tmdb-library

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdb-library

![GitHub language count](https://img.shields.io/github/languages/count/chrismlee26/tmdb-library) ![GitHub top language](https://img.shields.io/github/languages/top/chrismlee26/tmdb-library) ![GitHub commit activity](https://img.shields.io/github/commit-ac

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

TMDB & Youtube API Search Library

GitHub language count GitHub top language GitHub commit activity

For FEW2.1 (Writing Javascript Libraries) at Make School. Assignment #4

Welcome

This project is a JS library that searches TMDB API & Returns Movie Data.

v1.0.1

TMDB Library

scripts.js contains a library that could be used by anyone looking to search for movie data from TMDB API and return it into a JSON format.

The functions take input through a single input field and resolve to a promise that returns the movie title, year, description, rating and a movie poster into HTML elements. The movie title is then used to search YouTube for a trailer video.

  1. The first function getMovieByQuery searches for movie data through query. It is advised to use movie titles specifically as only the first result will be displayed.

  2. a library that takes the json return from TMDB to perform a YouTube search for "movie title + trailer". Which will be auto-played after the data loads.

Operation

Run

  1. Insert your TMDB and YouTube API Keys into the tmdbKey 0variable.

  2. Run the HTML page in live server.

  3. Type any movie title into the input box, press submit and enjoy.

Updates

  1. Added README.md

FAQs

Package last updated on 10 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc