Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a Filter System #18

Open
jandrewwhit opened this issue Jul 26, 2024 · 0 comments
Open

Build a Filter System #18

jandrewwhit opened this issue Jul 26, 2024 · 0 comments

Comments

@jandrewwhit
Copy link
Collaborator

-------------------- Previous Note --------------------

The Discover Movies and Discover TV have a ton of Filters that can be applied to those endpoints. The Routes / Services need to be built out first in express. Then we can add Filters to it.

Also these endpoints in the API are just Discover Filters behind the scenes. It would be nice to have these Filters predefined without having to use the following endpoints. It will take some work but if we could figure out the parameters they used for the following endpoints and just use the Discover endpoints that would be great. The Reason being we could add more filters to Discover vs these specific endpoints.

Movie Lists Endpoints
Now Playing
Popular
Top Rated
Upcoming

TV Lists Endpoints
Airing Today
On The Air
Popular
Top Rated

These links to the The Movie DB frontend might help figure out what filters they are applying.

Movies
Popular
Now Playing
Upcoming Movies
Top Rated

TV
Popular
Airing Today
On TV / Currently Airing
Top Rated

-------------------- LATER NOTE --------------------

I figured out what the Discover API calls are. They are listed plain as day under a big "Note" box that says in small writing "Equivalent Discover Call."

So here is the Movie Lists
Now playing is
https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=popularity.desc&with_release_type=2|3&release_date.gte={min_date}&release_date.lte={max_date}

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

Top Rated
https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=vote_average.desc&without_genres=99,10755&vote_count.gte=200

Upcoming
https://api.themoviedb.org/3/discover/movie?include_adult=false&include_video=false&language=en-US&page=1&sort_by=popularity.desc&with_release_type=2|3&release_date.gte={min_date}&release_date.lte={max_date}

Here is the TV Lists
Airing Today
https://api.themoviedb.org/3/discover/tv?include_adult=false&language=en-US&page=1&sort_by=popularity.desc&air_date.lte={max_date}&air_date.gte={min_date}

On The Air
https://api.themoviedb.org/3/discover/tv?include_adult=false&language=en-US&page=1&sort_by=popularity.desc&air_date.lte={max_date}&air_date.gte={min_date}

Popular
https://api.themoviedb.org/3/discover/tv?include_adult=false&language=en-US&page=1&sort_by=popularity.desc

Top Rated
https://api.themoviedb.org/3/discover/tv?include_adult=false&language=en-US&page=1&sort_by=vote_average.desc&vote_count.gte=200

So there we go. Mystery solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant