title: How to convert TMDB ID to IMDB ID
body: <p>This API url: <a href="https://api.themoviedb.org/3/tv/1399?api_key=8d6d91941230817f7807d643736e8a49&amp;append_to_response=external_ids" rel="nofollow noreferrer">https://api.themoviedb.org/3/tv/1399?api_key=8d6d91941230817f7807d643736e8a49&amp;append_to_response=external_ids</a> 
  outputs IMDB ID with a lot of things including this result: </p>
  
  <pre><code>{"imdb_id":"tt0944947","freebase_mid":"/m/0524b41","freebase_id":"/en/game_of_thrones","tvdb_id":121361,"tvrage_id":24493,"facebook_id":"GameOfThrones","instagram_id":"gameofthrones","twitter_id":"GameOfThrones"}}
  </code></pre>
  
  <p>I have this code on my file:</p>
  
  <pre><code>&lt;?php
  $values = info_movie_get_meta( 'ids' );
  
  
  
  $seson = info_movie_get_meta( 'temporada' );
  $epi = info_movie_get_meta( 'episodio' );
  
  echo '&lt;iframe src="https://videospider.in/getvideo?key=Ez99ULqORLkSi7LH&amp;video_id='.$values.'&amp;tmdb=1&amp;tv=1&amp;s='.$seson.'&amp;e='.$epi.'"height="100%"allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" frameborder="0"&gt;&lt;/iframe&gt;';
  ?&gt;
  </code></pre>
  
  <p>Here,  $values = TMDB ID (I have TMDB ID need IMDB), and on my provided API URL <a href="https://api.themoviedb.org/3/tv/1399" rel="nofollow noreferrer">https://api.themoviedb.org/3/tv/1399</a>?.... Here 1399 is TMDB ID,... So I will extract the IMDB ID from TMDB ID with this: <a href="https://api.themoviedb.org/3/tv/" rel="nofollow noreferrer">https://api.themoviedb.org/3/tv/</a>$values?.... 
  Now, I have this code: 
  <code>echo '&lt;iframe src="https://videospider.in/getvideo?key=Ez99ULqORLkSi7LH&amp;video_id='.$values.'.....</code> Here in the place of <code>$values</code>, I want to insert IMDB ID,.... I have the TMDB ID, API to Convert to TMDB to IMDB and I have IMDB ID in JS result, so how I will insert the only IMDB ID here: e<code>cho '&lt;iframe src="https://videospider.in/getvideo?key=Ez99ULqORLkSi7LH&amp;video_id=imdbID,......</code></p>