Retrieving Information from the Simple API (The GET Request Only)

FREE API key: a1b2c3d4

IMDb ID

// Set IMDB movie id (ex.tt5727208), your auth token (a1b2c3d4) and get contents
$url = "https://imdbinformer.com/tt5727208.json?key=a1b2c3d4";
$json = file_get_contents($url);
$json_data = json_decode($json, true);

// get data
echo $json_data['tconst'];
echo $json_data['titleType'];
echo $json_data['primaryTitle'];
echo $json_data['originalTitle'];
echo $json_data['startYear'];
echo $json_data['endYear'];
echo $json_data['runtimeMinutes'];
echo $json_data['genres'];
echo $json_data['averageRating'];
echo $json_data['numVotes'];
echo $json_data['poster']; //You can change image size simple just add SX350 ..._V1_SX350.jpg
echo $json_data['actor'];
echo $json_data['director'];
echo $json_data['creator'];
echo $json_data['description'];
echo $json_data['datePublished'];
echo $json_data['keywords'];
echo $json_data['embedUrl'];
echo $json_data['thumbnailUrl'];


Output:
[tconst] => tt7286456
[titleType] => movie
[primaryTitle] => Joker
[originalTitle] => Joker
[startYear] => 2019
[endYear] => 0
[runtimeMinutes] => 122
[genres] => Crime, Drama, Thriller
[averageRating] => 8.6
[numVotes] => 689257
[poster] => https://m.media-amazon.com/images/M/MV5BNGVjNWI4ZGU[email protected]@._V1_.jpg
[actor] => Joaquin Phoenix, Robert De Niro, Zazie Beetz, Frances Conroy
[director] => Todd Phillips
[creator] => Todd Phillips, Scott Silver, Bob Kane, Bill Finger, Jerry Robinson
[description] => Joker is a movie starring Joaquin Phoenix, Robert De Niro, and Zazie Beetz. In Gotham City, mentally troubled comedian Arthur Fleck is disregarded and mistreated by society. He then embarks on a downward spiral of revolution and...
[datePublished] => 2019-10-01
[keywords] => mental illness,evil clown,based on comic,nihilism,stand up comedian
[embedUrl] => https://www.imdb.com/video/imdb/vi1723318041
[thumbnailUrl] => https://m.media-amazon.com/images/M/MV5BOTU0[email protected]._V1_.jpg