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 svar (på side 1 af 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.

Kan du ikke finde en film eller TV-serie? Log in og opret den.

Want to rate or add this item to a list?

Log ind