The Movie Database Support

hi, I'm pretty new to searching the DB via the api, I'm trying to search movies and sort by english, french & spanish. My query below without language works fine but I cannot get it to filter the above languages could some one please help?

standard query for english only (doesn't work?): url + "search/movie?api_key=" + API_KEY + "&query=" + nameToSearch + "&language=en&sort_by=popularity"

thanks

3 replies (on page 1 of 1)

Jump to last post

I should add that above query does return movies just in all languages where I specified EN only?

Hi gordon7up,

There is currently only 3 fields that would return a translated value in a search call depending on your specified language and those are title, overview and poster_path. A quick example of this would be:

https://api.themoviedb.org/3/search/movie?api_key=###&query=batman&language=en
https://api.themoviedb.org/3/search/movie?api_key=###&query=batman&language=fr
https://api.themoviedb.org/3/search/movie?api_key=###&query=batman&language=de

You'll notice that the 3 fields that I mentioned above change according to the specified language.

P.S. there are no sorting options for search.

Cheers.

Thanks Travis, What I'm trying to do is filter out all movies not listed under the specified language so if user searches say three characters for example "tre" only english films beginning with these letters are displayed? how would I do this? Is my above approach correct.

Thanks again. Gordon

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?

लॉगिन