The Movie Database Support

I've been able to use the API to get details for a list of movies, but I was wondering how to find out what the MPAA rating for the movie is. Thanks!

10 replies (on page 1 of 1)

Jump to last post

I moved your thread to API support sun_with_face

Maybe that will solve. I use the feature &append_to_response=release_dates.
See here https://developers.themoviedb.org/3/movies/get-movie-release-dates
Is the certification item.

https://api.themoviedb.org/3/movie/[MOVIE ID]?api_key=[MY_KEY]&language=en-US&append_to_response=release_dates  

Thanks! That is just what I needed!

I've followed the answer given here, but I still can't find the MPAA rating. Is it under some strange key?

In release_dates we see the different countries and in each of them the certification.
In order for someone to help you with API Request questions, it is critical that you post here the API Request you are using.
Remember to replace your Key with [THE_KEY].

They're available in the /release_dates method. The query above included them. As an example:

http://api.themoviedb.org/3/movie/550?api_key=###&append_to_response=release_dates

Here's a snippet of the response, for example:

{
  "id": 550,
  ...
  "release_dates": {
    "results": [
      ...
      {
        "iso_3166_1": "US",
        "release_dates": [
          {
            "certification": "R",
            "iso_639_1": "",
            "note": "",
            "release_date": "1999-10-15T00:00:00.000Z",
            "type": 3
          }
        ]
      },
      ...
    ]
  }
}

@travisbell said:

They're available in the /release_dates method. The query above included them. As an example:

http://api.themoviedb.org/3/movie/550?api_key=###&append_to_response=release_dates

Here's a snippet of the response, for example:

{
  "id": 550,
  ...
  "release_dates": {
    "results": [
      ...
      {
        "iso_3166_1": "US",
        "release_dates": [
          {
            "certification": "R",
            "iso_639_1": "",
            "note": "",
            "release_date": "1999-10-15T00:00:00.000Z",
            "type": 3
          }
        ]
      },
      ...
    ]
  }
}

It's giving a big array under release_dates if your search for a famous movie. For example, if you search for Titanic (ID: 597), the release_dates array has more than 40 elements. Most of them have rating "" but the node that has US released date has the rating PG13 Do we need to traverse the whole array to find the PG certificate? Just like we have a generic release_date with the movie detail, can we get a generic PG certificate the same way?

@adi.shoukat@gmail.com said:

@travisbell said:

They're available in the /release_dates method. The query above included them. As an example:

http://api.themoviedb.org/3/movie/550?api_key=###&append_to_response=release_dates

Here's a snippet of the response, for example:

{
  "id": 550,
  ...
  "release_dates": {
    "results": [
      ...
      {
        "iso_3166_1": "US",
        "release_dates": [
          {
            "certification": "R",
            "iso_639_1": "",
            "note": "",
            "release_date": "1999-10-15T00:00:00.000Z",
            "type": 3
          }
        ]
      },
      ...
    ]
  }
}

It's giving a big array under release_dates if your search for a famous movie. For example, if you search for Titanic (ID: 597), the release_dates array has more than 40 elements. Most of them have rating "" but the node that has US released date has the rating PG13 Do we need to traverse the whole array to find the PG certificate? Just like we have a generic release_date with the movie detail, can we get a generic PG certificate the same way?

This is my question too. Is there a way to get only the US certification instead of having to deal with such a large API response?

Hi @faultyhawk, unfortunately we do not provide a way to filter the results of a /release_dates request at this time. This is something you will have to do client side.

@travisbell said:

Hi @faultyhawk, unfortunately we do not provide a way to filter the results of a /release_dates request at this time. This is something you will have to do client side.

I understand. Thanks for your work.

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