OpenMovieDatabaseClient.searchByTitle()

Get information about movies and tv shows

The OMDb API is a free web service to obtain movie information, all content and images on the site are contributed and maintained by our users.

Usage

Hover over inputs/exits for more info.

var OpenMovieDatabaseClient = require('machinepack-omdb');


// Get information about movies and tv shows

OpenMovieDatabaseClient.searchByTitle({

t: 'Game of Thrones',

y: '2015',

plot: 'short',

r: 'json',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

: function () {

 

},

// OK.

success: function () {

 

},

});

Inputs

t required

Movie title to search for.

'Game of Thrones'
y required

Year of release.

'2015'
plot required

Return short or full plot. (full or short)

'short'
r required

The data type to return. (json or xml)

'json'

Exits

error

An unexpected error occurred.

undefined
success

OK.