I am trying to create a film search portal through the API. The issue I am having is I am receiving results that include collections even though I am using the movies search endpoint. Any easy way to exclude collections?
Ne možete pronaći film ili TV seriju? prijavite se da biste ga napravili.
Want to rate or add this item to a list?
Not a member?
Odgovorio ticao2 🇧🇷 pt-BR
dana 7 svibanj 2024 u 9:25 AM
Problems with API Request
In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.
Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.
Odgovorio nmotamedi
dana 7 svibanj 2024 u 2:10 PM
await fetch(
https://api.themoviedb.org/3/search/movie?query=polar%20express&include_adult=false&language=en-US&page=1
, {headers: { Authorization:Bearer <TMDB_TOKEN>
, }}, );When I make this request, I receive the Polar Express Collection as a result as well, which it causing some issues when displaying those details since the TMDbID for the collection won't work when populating detail results.
Odgovorio ticao2 🇧🇷 pt-BR
dana 8 svibanj 2024 u 12:29 PM
Hummm
I believe it is not possible to filter/eliminate the collection in the response.
Movies and collections are in the same DB.
Maybe Travis Bell, the admin, has a solution for this.
Let's wait for him to come by.