The Movie Database Support

https://api.themoviedb.org/3/movie/top_rated?api_key=${process.env.REACT_APP_API_KEY}&language=en-US&page=1&region=US

I don't know what I'm doing wrong here. I just want to get back top rated movies that are relevant to the USA. Apparently no one else has this problem. I'm getting back movies from India and Japan that I have never heard of. Can someone please help me?! I plan on doing the same thing with people and popular movies. Just USA actors and movies please. Not from other countries.

2 replies (on page 1 of 1)

Jump to last post

https://developers.themoviedb.org/3/movies/get-top-rated-movies

region > string > Specify a ISO 3166-1 code to filter release dates. Must be uppercase. pattern: [A-Z]{2}$

Any movie, from any country in the world, that has, here in the TMDb, a date of exhibition in the USA.

I think you need to use the append_to_response function with a parameter, for example, production_countries

See here https://developers.themoviedb.org/3/movies/get-movie-details

I have not used it that way, so I can not help much.

Hi @CarterChilds,

Unfortunately, there isn't really a way to do this right now. You could use the certification filters on disvover but you'll be limited to movies that have a US certification added. Example:

https://api.themoviedb.org/3/discover/movie?api_key=###&certification.lte=R&certification_country=US

If that's enough for you, you can add in any of the other discover filters to craft a custom query (sorting by rating, adding a min vote, etc...)

The (most likely?) better option would be an open ticket that I have, which is to add a filter for production country.

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