IMDB API

The IMDB API is a lightweight web service which provides efficient access to most of IMDB’s data. IMDB’s dataset is available for download, but there is no good API for retrieving information. This web service aims to bridge that gap by providing data in a range of formats.

Support data formats

Currently we support the following data formats when returning IMDB information:

  • JSON
  • JSONP
  • Plain-text
  • XML new!

Stay in touch

You can keep up to date with what's happening by following me on Twitter!

Donate

Running a web service that handles a large volume of traffic is not cheap. Any donations to help with the cost of running the web service is most appreciated. Click the button below to donate

Donate »



  1. API usage
  2. Examples
  3. Notes
  4. Change log

Send all requests to:

http://www.deanclatworthy.com/imdb/

Parameters:

Parameter Required Valid options Default Value Description
q Yes <empty> The name of the movie you wish to search for (e.g. Finding Nemo, The Green Mile)
type No json, jsonp, xml, text json The data type you wish the API to return.
Note: when using "text" as the type, do not rely on the order of the information
year No 2012 The year you wish to search for. If you omit the year it will automatically use the current year when searching.
yg No 1,0 0 Either pass in a value 1 or 0. This parameter disables year guessing. If you omit the year parameter, set this option to 0 to disable it assuming the movie came out in the current year.
token No 10 When returning data in the "text" format. You can specify the decimal ascii code of the character you wish to split the data tokens by.
  1. Finding a film with just the movie title

    Request:

    http://www.deanclatworthy.com/imdb/?q=The+Green+Mile
    

    Response:

    {"imdbid":"tt0120689","imdburl":"http:\/\/www.imdb.com\/title\/tt0120689\/","genres":"Crime,Drama,Fantasy,Mystery","languages":"English ,French","country":"USA","votes":"281023","stv":0,"series":0,"rating":"8.4","title":"The Green Mile","year":"1999","usascreens":2875,"ukscreens":340}
    
  2. Finding a film with the movie title and year guessing (defaults to current year)

    Request:

    http://www.deanclatworthy.com/imdb/?q=The+Grey
    

    Response:

    {"imdbid":"tt1601913","imdburl":"http:\/\/www.imdb.com\/title\/tt1601913\/","genres":"Action,Adventure,Drama,Thriller","languages":"English","country":"USA","votes":"815","stv":0,"series":0,"rating":"7.5","title":"The Grey","year":"2012","usascreens":0,"ukscreens":0}
    
  3. Finding a film with the movie title and specifying a year

    Request:

    http://www.deanclatworthy.com/imdb/?q=Star+Trek&year=1996
    

    Response:

    {"imdbid":"tt0117731","imdburl":"http:\/\/www.imdb.com\/title\/tt0117731\/","genres":"Action,Adventure,Sci-Fi,Thriller","languages":"English","country":"USA","votes":"54968","stv":0,"series":0,"rating":"7.5","title":"Star Trek: First Contact","year":"1996","usascreens":2812,"ukscreens":0}
    
  4. Finding a film with the movie title and turning off year guessing

    Request:

    http://www.deanclatworthy.com/imdb/?q=Finding+Nemo&yg=0
    

    Response:

    {"imdbid":"tt0266543","imdburl":"http:\/\/www.imdb.com\/title\/tt0266543\/","genres":"Animation,Adventure,Comedy,Family","languages":"English","country":"Australia,USA","votes":"243868","stv":0,"series":0,"rating":"8.1","title":"Finding Nemo","year":"2003","usascreens":3425,"ukscreens":501}
    
  • You are limited to 30 requests per hour. If you want more, I'll consider it after a donation.
  • If you're coding your own movie database, cache the results from my API for testing purposes (so you won't even need to send an API request) and then when you are ready to build your database just stagger the requests every 2 minutes and leave it running overnight. Movie databases that scrape the API in one-go initially are not really a use-case for raising the API limit
  • I make no promises regarding the stability or uptime of this service
  • You should be able to lookup tv shows/series but I cannot guarentee it's accuracy
  • You'll get far more accurate results if you specify the year of a movie
  • Don't rely on the order of the items returned in any of the formats. I may add/remove/reorder elements at any time
  • v2.0 (21/02/2012)/strong>
    • This is a major rewrite of the entire IMDB API. It's now running on a new platform, with new code and heuristics.
    • What's new:
      • XML is now a supported format
    • Fixes:
      • Movie titles returned now return the exact imdb title
      • Countries, genres now are correctly returned
      • Misc. fixes
  • v1.4 (16/11/2010)
    • Non-backwards compatible changes (I didnt have time to keep compatability so it's either this or nothing):
      • JSON type: when using this type errors are now returned as part of the json object, not a string
      • Rating now is in the format "8.4" rather than "8.4/10". There was little point having the /10 part.
    • Fixes:
      • Ratings no longer have left over HTML tags in them sometimes
      • Year no longer returns 0
      • Roman numerals e.g. "Part VII", are changed to "Part 7" to fit in with IMDB formatting
    • Some major changes behind the scenes which should improve performance and get rid of all the "n/a" being returned
    • Added JSONP data type
  • v1.3 (17/10/2010)
    • Fixed API to work with new IMDB layout
  • v1.2 (13/06/2009)
    • Switched to a more accurate method of finding the film
    • Instead of 'screens' field, it is split into 'usascreens' and 'ukscreens' now.
  • v1.1 (07/06/2009)
    • Added series field (0 = not a tv series, 1 = is a tv series)
    • Added stv field (0 = not a STV film, 1 = is a STV film)
    • Fixed issues with double quotes around tv series names