Getting data from IMDB using json

I save the IMDB movie id in my db. Is there any way to get imdb movie data by their identifiers?

I have json like

http://api.rottentomatoes.com/api/public/v1.0/movies.json?apikey=XXXXXXXXXXXXXXXXXXXXXXXX&q=titanic3d

I want to take json by id? Is there such a json?

+3
source share
3 answers

Using IMDb-PHP-API , you can get JSON data as follows:

$movie = $imdb->find_by_id("tt0068646");

The "tt" part is optional.

Disclosure: IMDb-PHP-API is a PHP script that I wrote and is originally based on this Ruby stone.

+1
source
+1

You can also get full movie information with OMDB. Here's the link:

http://www.omdbapi.com/?i=YOUR IMDB ID & apikey = YOUR API KEY

0
source

All Articles