Skip to main content

Introducing WebService::IMDBAPI

·1 min

WebService::IMDBAPI is a Perl 5 interface to the IMDB API, a free service which provides a nice API to the IMDB data.

The synopsis shows how to use it:

my $imdb = WebService::IMDBAPI->new();
 
# an array of up to 1 result
my $results = $imdbapi->search_by_title('In Brugges', { limit => 1 });
 
# an WebService::IMDBAPI::Result object
my $result = $results->[0];
 
say $result->title;
say $result->plot_simple;

I will be using this as a source to App::MP4Meta. It currently uses IMDB::Film, which gets its data by screen scraping but was once again broken by changes to the IMDB. Using this API should be a lot more reliable.

A new version of App::MP4Meta which uses WebService::IMDBAPI should be ready a bit later.


Want great, practical advice on implementing data mesh, data products and data contracts?

In my weekly newsletter I share with you an original post and links to what's new and cool in the world of data mesh, data products, and data contracts.

I also include a little pun, because why not? 😅

    Newsletter

    (Don’t worry—I hate spam, too, and I’ll NEVER share your email address with anyone!)


    Andrew Jones
    Author
    Andrew Jones
    I build data platforms that reduce risk and drive revenue.