The Movie Database Support

Hi, im using multi search to search for films using this

        fetch(`https://api.themoviedb.org/3/search/multi?api_key=${API_KEY}&language=en-US&include_adult=false&query=${e.target.value}`

how do i only get it to search for movies and tv shows and not people?

2 erantzun (1(e)tik 1. orrian)

Jump to last post

@imadk said:
How to use mutli search but only get movie and tv shows?
Hi,
im using multi search to search for films using this

        fetch(`https://api.themoviedb.org/3/search/multi?api_key=${API_KEY}&language=en-US&include_adult=false&query=${e.target.value}`   

how do i only get it to search for movies and tv shows and not people?

It is not possible to limit the search using get/search/multi to movies and series only.
To limit only using get/search/movie and get/search/tv.

@imadk said:

Hi, im using multi search to search for films using this

        fetch(`https://api.themoviedb.org/3/search/multi?api_key=${API_KEY}&language=en-US&include_adult=false&query=${e.target.value}`

how do i only get it to search for movies and tv shows and not people?

Late to the party, but heres what worked for me,

fetchData?.filter( (item) => item.media_type !== "person"; );

Filter the data using the array filter method to retrieve information that excludes entries with "person" as the media type. This will result in obtaining data exclusively related to movies and TV shows.

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

Ezarpenak

Elementu hau kalifikatu edo zerrenda batera gehitzea nahi al duzu?

Saioa hasi