WeMakeSites

Site Sesarch

Changes to the IMDb RESTful API

Three major changes to the RESTful API for IMDb:

  • From December 4, 2016 on, the IMDb API will not support unauthenticated requests anymore. Authentication is done via a free API key, which can be generated on this page. Once the API key is generated it will be send to the email used to register. To use the API key, just pass it as api_key parameter in the request:
    // get data by resource_id:
    'http://imdb.wemakesites.net/api/nm0000115&api_key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
    // search imdb:
    'http://imdb.wemakesites.net/api/search?q=Nicolas+Cage&api_key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
  • Dramatic improvement of the response time, since the data is now being cached locally.
  • Two new status codes for missing or invalid API key:
    { "status": "fail", "code": 2, "message": "API Key not provided. Get one for free from http://imdb.wemakesites.net and include is as api_key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx parameter to your requests to the API."
    }
    { "status": "fail", "code": 3, "message": "The provided API key is invalid. Get one for free from http://imdb.wemakesites.net and include is as api_key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx parameter to your requests to the API."
    }

The JSON structure, returned from the services are not affected by the changes above.

I use cookies to ensure you get the best experience.