https://api.themoviedb.org/3/discover/movie?api_key=####&include_adult=false&language=en-US&sort_by=popularity.desc&with_keywords=2426
and
https://api.themoviedb.org/3/discover/movie?api_key=####&language=en-US&sort_by=popularity.desc&with_keywords=2426
both returns same result just &include_adult=false
just adds a field "adult":false to it nothing else as the keyword id i used is sensitive(i.e group sex) should trim down result as i used ** &include_adult=false** but the result count is same and exact in both the cases to be "total_results":27 if that is the case how can we remove adult result when we use discover
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by Travis Bell
on September 22, 2017 at 10:04 AM
Hi @toshik,
The default setting is
false
so you are indeed not changing anything there. If you wanted to include adult items, you would addinclude_adult=true
.Adult is really our customer friendly way of saying "porn" so if there's some porn showing in your query then the data is probably not tagged as adult. You can pop into each item and edit them to fix them. At a quick glance though, I didn't see anything obvious that should be marked as adult.
Reply by toshik
on September 22, 2017 at 10:18 AM
hi @travisbell
thanks a lot for reply can you help me with
how can i remove unrated or R movies from my search
thanks again
Reply by Travis Bell
on September 22, 2017 at 10:31 AM
No problem. You use the
certification_country
andcertification.lte
filters. Here's an example:Reply by toshik
on September 22, 2017 at 10:40 AM
hi @travisbell yes I read this in the documentation and know how use this but we missed "PG" "NR" and "G" movies were omitted?
Reply by Travis Bell
on September 22, 2017 at 10:48 AM
The
certification.lte
is a "less than or equal" query. It will include everything from PG-13 and below. Those orders are outlined in the certifications method.Reply by toshik
on September 22, 2017 at 10:48 AM
i tried to use
and
Both failed here
Reply by Travis Bell
on September 22, 2017 at 10:49 AM
That's not a valid query. See my reply above.
Reply by toshik
on September 22, 2017 at 10:50 AM
that solves the issue only last problem do i restricting my search to only US after using &certification_country=US?
Reply by Travis Bell
on September 22, 2017 at 10:51 AM
Yes, you are. There's no real way to map other countries certification systems since they all vary so wildly.
Reply by toshik
on September 22, 2017 at 10:59 AM
no way to include more than one country? comma separated thanks for your time
Reply by Travis Bell
on September 22, 2017 at 11:14 AM
Not at this time. That could be very complicated since some countries could use the same certification that could potentially map to different ratings. I'd need to support a different way of filtering certifications like
certification.lte=US(PG)|CA(PG)
or something. I don't have any plans for anything like this right now.