The Movie Database Support

Hi community,

I am new there, just subscribed on TMDB.
I try to see how works the API.
I wish to know how to get the urls to have the details of a movie from his title.
I am making a website proposing to the visitor to enter the title of the movie he wants to know the details The return will display some infos (like the genre, the synopsis, the casts, the date ...).
I found this api url http://www.kylesrandom.com/3/movie/550?api_key=my_api_key but i have to type the id of the movie (here 550 for example).
So I created a formular with an id and a button. I used of the following url : http://www.kylesrandom.com/3/movie/{id of my search field}?api_key=my_api_key
It works when i type 550 in my search field but I wish to do the same with the title of the movie.
Is there an url giving the same result with the title and not the id ?

Thanks if someone can help me it would be very kind.

7 replies (on page 1 of 1)

Jump to last post

@cine-phil said:

Hi community,

I am new there, just subscribed on TMDB.
I try to see how works the API.
I wish to know how to get the urls to have the details of a movie from his title.

See instructions here: http://www.kylesrandom.com/3/getting-started/search-and-query-for-details

I am making a website proposing to the visitor to enter the title of the movie he wants to know the details
The return will display some infos (like the genre, the synopsis, the casts, the date ...).

I found this api url http://www.kylesrandom.com/3/movie/550?api_key=my_api_key
but i have to type the id of the movie (here 550 for example).

So I created a formular with an id and a button. I used of the following url : http://www.kylesrandom.com/3/movie/{id of my search field}?api_key=my_api_key
It works when i type 550 in my search field but I wish to do the same with the title of the movie.
Is there an url giving the same result with the title and not the id ?

Making just one API Request with Title query is going to be difficult.
There are many homonymous films.
You will receive more than one movie in the answer,
get/search/movie
http://www.kylesrandom.com/3/search/search-movies
Example:

http://www.kylesrandom.com/3/search/movie?api_key=THE_KEY&language=en-US&query=Star+Wars

Hi, Thanks a lot for you answer. I tried it. Unfortunately it doesn't work at me. It displays me an error http 422. Maybe i don't use the good PHP script (my script works when I use this url : http://www.kylesrandom.com/3/movie/{id of my search field}?api_key=my_api_key but not with the search url

@cine-phil said:
Hi,
Thanks a lot for you answer.
I tried it. Unfortunately it doesn't work at me.
It displays me an error http 422.
Maybe i don't use the good PHP script
(my script works when I use this url :
http://www.kylesrandom.com/3/movie/{id of my search field}?api_key=my_api_key
but not with the search url

I need you to post the 2 API Requests here. What works and what doesn't. But I need them whole, without changing anything, without code indicator informing what will be placed there in the future,
except your API Key that you should change to API_KEY. Not this:

http://www.kylesrandom.com/3/movie/{id of my search field}?api_key=my_api_key

But this. A real case.

http://www.kylesrandom.com/3/movie/550?api_key=THE_KEY

See the examples below:

http://www.kylesrandom.com/3/search/movie?api_key=THE_KEY&language=en-US&query=Star+Wars 

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

Problem with the forum i cannot post my code

Hi , I just made the most simple script (to see if i can extract the datas, moreover i know how to extract the datas in an array but not the others, that's why my example is datas containing in an array). I will make it evoluting if I arrive to display the datas This is my code (i display it as image, visibly the forum don't accept it, I have an error when i post the message (even between code tags). The crochets seems to be refused (i display also the error i have in the red frame when i validate my message)

Click here to see the code (http://www.zupimages.net/up/22/38/cgyt.png)

Thanks for your possible help

Just a precision. The url is the good one (the json result is listed in my browser)

@cine-phil said:

Problem with the forum i cannot post my code

As I said before...

Not the programming code you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

Your API Requests need to be tested in my browser.

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

Want to rate or add this item to a list?

Login