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 replies (on page 1 of 1)

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.

ყველგან

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

მედიის გვერდზე

b go back (or to parent when applicable)
e go to edit page

ტელევიზიის სეზონების გვერდზე

(right arrow) go to next season
(left arrow) go to previous season

ტელევიზიის ეპიზოდების გვერდზე

(right arrow) go to next episode
(left arrow) go to previous episode

გამოსახულებების გვერდზე

a open add image window

რედაქტირების ყველა გვერდზე

t open translation selector
ctrl+ s submit form

დისკუსიების გვერდზე

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

Settings

გსურთ შეაფასოთ ან დაამატოთ ეს ელემენტი სიაში?

ავტორიზაცია