The Movie Database Support

I had built out a horror movie bucket list app back at the end of my bootcamp and I am starting to refactor it now and one of the things I want to do is get rid of the 279 movies(box art, description, sub-genre) and use this API to pull in as many horror movies as I can to really flesh out this app for horror hounds like myself and I cannot seem to get the request figured out to just pull any movie with horror in the genre. Any help would be greatly appreciated.

2 replies (on page 1 of 1)

Jump to last post

@PhilipJobe said:

I had built out a horror movie bucket list app back at the end of my bootcamp and I am starting to refactor it now and one of the things I want to do is get rid of the 279 movies(box art, description, sub-genre) and use this API to pull in as many horror movies as I can to really flesh out this app for horror hounds like myself and I cannot seem to get the request figured out to just pull any movie with horror in the genre. Any help would be greatly appreciated.

Discover - Filter by Genre

Tip: For TV Show the procedure is similar.

First you need to have the list of Genres with their IDs.
The list of Genre IDs is here, for Movie and TV Show.
get/genre/movie/list - https://developers.themoviedb.org/3/genres/get-movie-list
get/genre/tv/list - https://developers.themoviedb.org/3/genres/get-tv-list

For example, the Horror Genre ID for movies is 27.

Knowing the Genre ID you want, make an API Request of type get / discover / movie
https://developers.themoviedb.org/3/discover/movie-discover
And use the with_genres and/or without_genres parameter.
More than one genre can be searched using the comma or pipe feature

Also note that a number of filters support being comma (,) or pipe (|) separated.
Comma's are treated like an AND and query while Pipe's are an OR.

Example

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&sort_by=release_date.desc&page=1&with_genres=27

Thank you so much I just need to add the pagination to it and that should give me all of them. And look into seeing if it will also give me the posters and stuff like that but the first issue has been solved and I thank you.

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