Keyboard Shortcuts
Advanced Search
I tried using https://api.themoviedb.org/3/search/multi?query=${query}&include_adult=true&include_video=false&include_media_type=true¬_include_media_type=person&page=1&api_key=${API_KEY}
but it doesn't work.
Hi @omkumar1872,
Unfortunately, it is not possible to exclude media types from multi search.
If you are wanting to skip people results, you can inspect the media_type field of each result and skip whatever types you don't want to display.
media_type
But the problem with that - For some page the number of results will be inconsistent like for page 1 there would be 15 results for another page it maybe 12 for some it maybe also 2 or 0 results.
So do you have any idea to deal with this?
Best I can suggest is to make additional page requests if you want to show more data when you detect counts under a certain threshold.
Can't find a movie or TV show? Login to create it.
Login
Sign Up
Want to rate or add this item to a list?
Not a member?
Sign up and join the community
Reply by Travis Bell
on November 17, 2023 at 12:49 PM
Hi @omkumar1872,
Unfortunately, it is not possible to exclude media types from multi search.
If you are wanting to skip people results, you can inspect the
media_type
field of each result and skip whatever types you don't want to display.Reply by omkumar1872
on November 18, 2023 at 1:29 AM
But the problem with that - For some page the number of results will be inconsistent like for page 1 there would be 15 results for another page it maybe 12 for some it maybe also 2 or 0 results.
So do you have any idea to deal with this?
Reply by Travis Bell
on November 20, 2023 at 11:04 AM
Best I can suggest is to make additional page requests if you want to show more data when you detect counts under a certain threshold.