imdb

Given an IMDB movie id, how do I programmatically get its poster image?


movie id tt0438097 can be found at http://www.imdb.com/title/tt0438097/

What's the url for its poster image?


Solution

  • As I'm sure you know, the actual url for that image is

    http://ia.media-imdb.com/images/M/MV5BMTI0MDcxMzE3OF5BMl5BanBnXkFtZTcwODc3OTYzMQ@@._V1._SX100_SY133_.jpg

    You're going to be hard pressed to figure out how it's generated though and they don't seem to have a publicly available API.

    Screenscraping is probably your best bet.

    The picture seems to generally be inside a div with class=photo and the name of the a tag is poster.

    The image itself is just inside the a tag.