You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sacquer/omdb-api

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sacquer/omdb-api

API for using the Open Movie Database

0.0.7
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

API for Open Movie Database

Use like so:

const OpenMovieDatabase = require('@sacquer/omdb-api)
const omdb = new OpenMovieDatabase('your-api-key')

omdb.search({ s: "Succession", type: "series", y: "2018" })
  .then(result => console.log(result))
  .catch(error => console.log(error)

omdb.get({ t: 'Succession', type: "series", y: "2018", plot: "full" })
  .then((result) => console.log(result) )
  .catch((error) => console.log({ error }) )

omdb.getSeriesByTitle('Title of series')
  .then((result) => {
    console.log(result)
  })
  .catch((error) => {
    console.log(error)
  })

omdb.getMovieByTitle('Title of movie')
  .then((result) => {
    console.log(result)
  })
  .catch((error) => {
    console.log(error)
  })

Keywords

Open Movie Database

FAQs

Package last updated on 12 Dec 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