The Movie Database Support

Hi I want a list of movies and poster images and all other details based on genre. Based on discussion forum I used this query

https://api.themoviedb.org/3/discover/movie?api_key=MY_KEY&language=en-US&with_genre=10749

I get 20 movies but none of them has genre id 10749 (Romantic). How can I get what I need specifically. Also I saw how query was designed for which year to look in but is it possible to give a range of year.

So I want list of movies with Genre Id 13, ranging from 2010 to 2019.

Thanks

5 replies (on page 1 of 1)

Jump to last post

1 You forgot the letter S in &with_genres

I get 20 movies but none of them has genre...

2 You actually got 405979 movies with this wrong search.
See the beginning of the answer the following information:

page    1
total_results   405979
total_pages 20299

There are 20 movies per page. And you got 20299 pages.
You can add the &page parameter in your Request.
https://api.themoviedb.org/3/discover/movie?api_key=[MY_KEY]&language=en-US&page=1&with_genres=10749

... but is it possible to give a range of year.

3 If this is a question, the answer is yes.
I suggest you carefully read the instructions on this page:
https://developers.themoviedb.org/3/discover/movie-discover
To set a Range of dates, you need to use the parameters:
primary_release_date.gte = equal to or greater than
primary_release_date.lte = equal to or less than

https://api.themoviedb.org/3/discover/movie?api_key=[MY_KEY]&language=en-US&page=1&primary_release_date.gte=2012-04-25&primary_release_date.lte=2017-12-23&with_genres=10749
The answer will be with this quantity:

page    1
total_results   5166
total_pages 259

Thanks for prompt response :)

Hey! I Have a question. Is it possible to give a range of vote_average?

The solution is the same, but with the voting parameters:
vote_average.gte
vote_average.lte

See here: https://developers.themoviedb.org/3/discover/movie-discover

Thanks a lot!

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