I'm working on a project with my students and these 5 URLS are requesting the same group of movies.
Is there an updated list we should be deploying ?
THANKS! :)
BASE URL:
https://image.tmdb.org/t/p/original/
Queries:
action movies:
/discover/movie?api_key=${API_KEY}&with_genre=28
Comedy movies:
/discover/movie?api_key=${API_KEY}&with_genre=35
Horror Movies
/discover/movie?api_key=${API_KEY}&with_genre=2
Romance Movies
/discover/movie?api_key=${API_KEY}&with_genre=10749
Documentaries
/discover/movie?api_key=${API_KEY}&with_genre=99
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 November 4, 2021 at 6:22 PM
I don't think I could understand your question.
I believe this is not true. It's not necessarily the same group of movies.
They are movies with different genres.
Not all movies have these same genres.
An updated list of what?
Genres? Other Genres?
Reply by icstarsJTD
on November 4, 2021 at 6:26 PM
My apologies if I was not clear.
When we run the requests with those 5 URLs - they all return the SAME MOVIES - which are all from the Action genre. I'm looking for updated URLs if there are updated URLs.
Reply by ticao2 š§š· pt-BR
on November 4, 2021 at 6:52 PM
I tested these IDs.
I received different answers.
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=28
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=35
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=10749
https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&language=en-US&page=1&with_genres=99
Take a test here in the browser.
Just change THE_KEY to your API Key.
If you want the complete list of Genres, see here:
Films
https://developers.themoviedb.org/3/genres/get-movie-list
TV show
https://developers.themoviedb.org/3/genres/get-tv-list
Reply by ticao2 š§š· pt-BR
on November 4, 2021 at 6:57 PM
I found out now what the problem is.
Your &with_genre= is singular.
Must be &with_genres=, plural
Reply by icstarsJTD
on November 4, 2021 at 7:25 PM
Amazing thanks so much