The Movie Database Support

Is there any way to retrieve a list of movies by genre alone and if not, is creating your own database using parsed api data allowed or is it against the terms of use?

6 replies (on page 1 of 1)

Jump to last post

You can use discover method of our API. E.g. to get a list of English action movies sorted by popularity:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1&with_genres=28&with_original_language=en

Notes:

  1. Discover methods return only first 10 000 matches. If you need more movies, you must split your discover query into smaller batches, e.g. by years.
  2. You can get the list of all valid genre ids by using genre API method.
  3. "&with_genres=" parameter supports more genre ids being comma (,) or pipe (|) separated. Comma's are treated like an AND and query while pipe's are an OR.

Amazing! This is exactly what I was looking for. Thanks for your help!

I also want to send search word with genre just like you send in search api https://developers.themoviedb.org/3/search/search-movies E.g q="War" and with_genre=12

You can't limit search to specific genres, "&with_genres=" works only with TV and movie discover methods.

All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

@andricperez said:
All I've seen is non-answers and highly-technical talk about "API" and things ordinary people don't know about.

Making API Requests is usually done by code programmers, developing APPs and data query tools.
An API Request where there is a small typing error, a comma or space more or less, does not usually work.
But it is not an impossible subject to understand.
I, for one, don't program code.
I'm just a curious 71 year old.
Who for strange reasons decided to have fun with this subject.
If you found any non-answers and want some clarification, feel free to ask. :-)

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