The Movie Database Support

Hello, I tried the api but it doesn't work for me, I've already tried everything but I can't get it to work, can you help me please.

The code I use:

$data = https://api.themoviedb.org/3/movie/12?api_key=$apikey
$file  = file_ get_ contents($data)
$json = json _ decode( $file , true )
$title = $json["title"]
echo $title

it doesn't give me anything back :C

5 replies (on page 1 of 1)

Jump to last post

same here.

same problem since 2 days ago.

Edit: its seems to affect file_ get _ content requests only. my site have some requests from javascript and those are working.

@SabiasQue said:
Problems with TMDB
Hello, I tried the api but it doesn't work for me, I've already tried everything but I can't get it to work, can you help me please.
The code I use:

$data = https://api.themoviedb.org/3/movie/12?api_key=$apikey
$file  = file_ get_ contents($data)
$json = json _ decode( $file , true )
$title = $json["title"]
echo $title

it doesn't give me anything back :C

You do not receive any response reporting an error?

@ticao2 said:

it doesn't give me anything back :C

You do not receive any response reporting an error?

in mi case is:

Warning: file_ get_ contents(https://api.themoviedb.org/3/tv/latest?api_key=********&language=en-US): failed to open stream: Connection timed out

@pericopelayo said:
in mi case is:

Warning: file_ get_ contents(https://api.themoviedb.org/3/tv/latest?api_key=********&language=en-US): failed to open stream: Connection timed out

I believe this warning is not from TMDb Servers.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
Most likely this error response is from your system.

I made this API Request using my Firefox browser and got the correct response.

https://api.themoviedb.org/3/tv/latest?api_key=THE_KEY&language=en-US

Try making this API Request using your browser, in a new tab.
If the answer is correct, then the problem is not external.
It must be a problem with your hardware and/or software.

I see this in your API Request.
failed to open stream
Are you trying to open or access some streaming service?

@ticao2 said:

@pericopelayo said:
in mi case is:

Warning: file_ get_ contents(https://api.themoviedb.org/3/tv/latest?api_key=********&language=en-US): failed to open stream: Connection timed out

I believe this warning is not from TMDb Servers.
See the list of TMDb server error warnings here.
https://www.themoviedb.org/documentation/api/status-codes
Most likely this error response is from your system.

I made this API Request using my Firefox browser and got the correct response.

https://api.themoviedb.org/3/tv/latest?api_key=THE_KEY&language=en-US

Try making this API Request using your browser, in a new tab.
If the answer is correct, then the problem is not external.
It must be a problem with your hardware and/or software.

I see this in your API Request.
failed to open stream
Are you trying to open or access some streaming service?

No. Iยดm trying to do a file_ get_ contents. I will ask to my hosting provider if they are blocking something. Thanks for you answer.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login