The Movie Database Support

Is there a way to filter out adult films when using Combined Credits API?

I'm currently seeing a bunch of adult films when searching for Asa Akira combined credits for example: https://api.themoviedb.org/3/person/232008/combined_credits?language=en-US

And I need to filter out adult films as my app is rated for ages 13+

Thanks in advance!

5 replies (on page 1 of 1)

Jump to last post

Hi @lgrube3, I don't see any way to do this. Someone else may come along with with a solution I haven't thought of.

I am wondering, since the adult flag is returned in the results, why can't you solve this by coding to skip the results that are flagged adult?

Thanks! I might need to do some filtering on the front-end.

Any plans to add this as a query param?

I would guess not for that particular query and filter, but here are all the future plans.

@lgrube3 said:
Any plans to add this as a query param?

I don't know if it solves your problem, but...
It is only possible with movies using Discover.
https://developer.themoviedb.org/reference/discover-movie
Examples with 232008, Asa Akira, using &include_adult= false and true:

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&include_adult=false&include_video=false&language=en-US&page=1&sort_by=popularity.desc&with_people=232008
total_pages 1
total_results   5

https://api.themoviedb.org/3/discover/movie?api_key=THE_KEY&include_adult=true&include_video=false&language=en-US&page=1&sort_by=popularity.desc&with_people=232008
total_pages 16
total_results   312

I need tv shows included as well but this is a nice approach. Thanks for sharing.

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

Settings

Want to rate or add this item to a list?

Login