I recently found a movie organizer application which fetches its data from the IMDB database.
Does IMDB provide an API for this, or any third party APIs available?
I recently found a movie organizer application which fetches its data from the IMDB database.
Does IMDB provide an API for this, or any third party APIs available?
The IMDb currently has two public APIs that are, although undocumented, very quick and reliable (used on their own site through AJAX).
A statically cached search suggestions API:
Downside:
It's in JSONP format, however the callback parameter can not be set by passing a callback-query parameter. In order to use it cross-domain you'll have to use the function name they choose (which is in the "imdb${searchphrase}" format, see example below). Or use a local proxy (e.g. a small php file) that downloads (and caches!) it from IMDb and strips the JSON-P callback, or replaces it with a custom callback.
If there are no results, it doesn't gracefully fallback, but displays an XML error instead
More advanced search
As said, both of these APIs are undocumented. They could change at any time.
See also https://stackoverflow.com/a/8811412/319266, for an example of a JSON API in PHP.
Yes, but not for free.
URL :- http://www.imdb.com/licensing/
Another legal alternative to get movie info is the Rotten-Tomatoes API (by Fandango).
https://deanclatworthy.com/tools.html is an IMDB API but has been down due to abuse.
Here is a simple solution that fetches shows by name based on the query from Krinkle:
You can get around the same-origin policy by having your server fetch the URL instead of trying to fetch it directly with AJAX and you don't have to use JSONP to do it.
Javascript (jQuery):
PHP (in file ajax.php):
Here is a Python module providing API's to get data from IMDB website
http://techdiary-viki.blogspot.com/2011/03/imdb-api.html