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 svar (på side 1 af 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.

Kan du ikke finde en film eller TV-serie? Log in og opret den.

Global

s focus the search bar
p open profile menu
esc luk et åbent vindue
? open keyboard shortcut window

PÃ¥ mediesider

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

PÃ¥ alle billedesider

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

PÃ¥ diskussionssider

n opret ny diskussion
w toggle watching status
p toggle public/private
c toggle close/open
a åben aktivitet
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Indstillinger

Want to rate or add this item to a list?

Log ind