The Movie Database Support

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

11 replies (on page 1 of 1)

Jump to last post

Hi @toshik,

The default setting is false so you are indeed not changing anything there. If you wanted to include adult items, you would add include_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.

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

No problem. You use the certification_country and certification.lte filters. Here's an example:

https://api.themoviedb.org/3/discover/movie?api_key=###&language=en-US&sort_by=popularity.desc&certification_country=US&certification.lte=PG-13

hi @travisbell yes I read this in the documentation and know how use this but we missed "PG" "NR" and "G" movies were omitted?

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.

i tried to use

&certification.lte=PG-13|PG|NR


and

&certification.lte=PG-13,PG,NR

Both failed here

That's not a valid query. See my reply above.

that solves the issue only last problem do i restricting my search to only US after using &certification_country=US?

Yes, you are. There's no real way to map other countries certification systems since they all vary so wildly.

no way to include more than one country? comma separated thanks for your time

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.

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