New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

imvdb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imvdb

A NodeJS Package to interact with IMVDb's API

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

IMVDb

NPM

What is this?

An NPM package to interact with the IMBDb.com API

Quick Start

Install in your app directory

npm install imvdb

then

const IMVDb = require('imvdb')('API_KEY_HERE');

You can get your own API Key from IMVDb.com. You will need an account.
API calls are limited to 1,000 calls per minute. Keep that in mind.

Search Videos

Basic search. Returns IMBDb information. Use videoData to get youtube links.

IMVDb.searchVideos('Eye of the tiger').then(function( response){
    console.log( response.results );
}, console.error);

Search Entities

An entity is anything with a name in the IMVDb Database (artists, companies, people, etc). You can retreive basic information on an entity as well as information like credits and associated videos.

IMVDb.searchEntities('Michel Gondry').then(function( response){
    console.log( response.results );
}, console.error);

Video Information

For things like youtube links

imvdb.videoData(199998171889).then(function( response ){
    console.log(`Title: ${response.song_title}`)

    // Filter youtube sources
    let target = response['sources'].filter(function( item ){
        return item.source === 'youtube';
    }).shift(); // Get first youtube link

    console.log(`YouTube: https://www.youtube.com/watch?v=${target['source_data']}`)
})

Entity Information

Additional information about an entity.

imvdb.entityData(634).then(function( response ){
    console.log( response )
})

Keywords

FAQs

Package last updated on 22 Aug 2019

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