Axuda de The Movie Database

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 respostas (na páxina 1 de 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.

Non podes atopar unha película ou serie? Inicia sesión para creala.

Global

s amosar a barra de procura
p abrir menú do perfil
esc pechar e abrir xanela
? abrir xanela de atallos do teclado

En páxinas de medios

b atrás (ou á principal se aplica)
e ir a editar páxina

En páxinas de tempadas de televisión

(flecha dereita) ir á tempada seguinte
(flecha esquerda) ir á tempada anterior

En páxinas de episodios de televisión

(flecha dereita) ir ao episodio seguinte
(flecha esquerda) ir ao episodio anterior

En todas as páxinas de imaxe

a abrir a xanela de engadir imaxe

En todas as páxinas de edición

t abrir selector de traducións
ctrl+ s enviar formulario

Nas páxinas de debate

n crear un novo debate
w amosar o estado do seguimento
p mudar público/privado
c mudar abrir/pechar
a abrir actividade
r responder no debate
l ir á última resposta
ctrl+ enter eviar a túa mensaxe
(flecha dereita) páxina seguinte
(flecha esquerda) ir á páxina anterior

Configuración

Queres valorar ou engadir o elemento a unha listaxe?

Iniciar sesión