Home > Uncategorized > Get IMDB ratings without any scraping

Get IMDB ratings without any scraping

Update (20150712): If you know Python, check out the awesome IMDbPY library. It does the hard work for you, you just need to call some simple functions. Here is the docs.

Update (20130130): imdbapi.com seems to have moved to omdbapi.com. Links below are updated accordingly.

Problem
You want to get some data (e.g. rating) of a movie from IMDB. How to do it without any web scraping?

Solution #1
Someone made a simple API for this task, available at http://www.omdbapi.com/. You can search by ID or title.

Examples:

The result is a JSON string that contains basic movie info, rating included.

Solution #2
IMDB has a secret API too, made for mobile applications (available at http://app.imdb.com/). Here they say “For use only by clients authorized in writing by IMDb. Authors and users of unauthorized clients accept full legal exposure/liability for their actions.” So what comes below is strictly for educational purposes.

Examples:

The result is a JSON string. Find more info about this API here.

Related posts

Thanks reddit.

Update (20120222)
Python code for solution #1 is here.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: