Hello, So I Was playing with the API and I found that when I search for a movie the query is done with the original titles of movies, So when you want to search for a movie that the original title is in another language, for example: https://www.themoviedb.org/movie/575604?language=en-US, The movie doesn't show up in the results, the only way to have it in the results is to search with it's original language... Is there any way to search for movies with their "title" in place of "original_title"... Thank you.
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on January 3, 2021 at 6:22 AM
The search can be done using the title in any language as a query.
It can be the Original Title or the Local Title, used in your country.
For example this research of a Kurosawa film.
https://api.themoviedb.org/3/search/movie?api_key=THE_KEY&language=pt-BR&query=å½±ę¦č
https://api.themoviedb.org/3/search/movie?api_key=THE_KEY&language=pt-BR&query=Kagemusha,+a+Sombra+do+Samurai
Above you can see the search for a Kurosawa film (Japanese) done with the title used in my country (pt-BR).
And the search worked correctly, the result is the same.
I believe that perhaps the problem must be occurring for some other reason.
And so that we can find out what the problem is ...
In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are using.
Not the programming code you used to build the API Request.
But the API Request that is sent to the TMDb server.
Remember to replace your Key with THE_KEY , or something like that.
Reply by ama_blbs
on January 18, 2021 at 4:06 AM
Hello again, I am sorry it took me forever to respond, I was a little bit busy and I forgot about this error till now. So I tried the two requests in your response and they worked perfectly, but then I tried the same request with just changing the name of the movie. The movie I tried is ģ½. So the movie is "ģ½" in Korean and "The call" in English and "Call" in French ( the language I am using is French ), The following request gives me the movie as the first result. The request is with the Korean name and a French result
but I can't find the movie in any of the following requests:
The request is for French result and with the French name of the movie
The request is for French result with the English Name of the movie
The request is for English result with the English Name of the movie
I am not that familiar with the API so I am sure I might be wrong in something obvious But I would Appreciate if you can help me with anything here. Thank You.
Reply by superboy97
on January 18, 2021 at 5:20 AM
Can you post the responses you get with these querys ?
Reply by ticao2 š§š· pt-BR
on January 18, 2021 at 10:40 AM
Just to facilitate understanding and investigation.
In those cases of evaluating problems with API Request
it is better to visualize how the Request is actually built, and not "hide" behind a Link.
Reply by ticao2 š§š· pt-BR
on January 18, 2021 at 11:09 AM
Searching for films that have a very common word as their title is always problematic.
There are many films that have that word in the title.
I believe that Travis Bell has already put a change on the To-Do list so that
the answers first deliver the films with the exact match of the searched title,
https://trello.com/c/FhpxaRAx/132-support-searching-for-exact-matches
and then the other possibilities, that is, films whose title has the searched term.
But I think that this has not yet been implemented.
See the results:
Note that using only Call greatly increases the amount.
EDIT
Be glad. There are worse cases. :-)
M (1931) - https://www.themoviedb.org/movie/832-m?language=en-US
Z (1969) - https://www.themoviedb.org/movie/2721-z?language=en-US
Reply by ama_blbs
on January 19, 2021 at 1:53 AM
@ticao2 and @superboy97 Thank you for your Kind responses and your help. I finally found the movie with this Query in the 3rd Page... https://api.themoviedb.org/3/search/movie?api_key=THE_KEY&language=fr-FR&query=the+call I believe I can just Add a button to my App or something like that where if you can't find the movie in first query you just search for it in other pages ( this might be frustrating in cases like the Query with "Call" but I can't see a better Idea, Or maybe I'll make it possible too just find the movie by it's id from TMDB official site ) Any ways Thanks for you Help.
One last thing I would like to ask, isn't there any way to make the request more precise ? Like adding the year or the movie or something like that. I think it would really help a lot specially with cases like mine.
Thank you. Again.
Reply by ticao2 š§š· pt-BR
on January 19, 2021 at 7:29 AM
You can add the primary_release_year parameter.
https://developers.themoviedb.org/3/search/search-movies
Reply by ama_blbs
on January 19, 2021 at 3:10 PM
That's a life saver !! Thank you so much, this would make everything easier. Thank you.