The Movie Database Support

I make a call to the API for a movie, eg Sunshine, and it returns the JSON data as such.

{
  "movie_results": [
    {
      "adult": false,
      "backdrop_path": "/5AIAnucJKZ3sHpm7r1ykFVIoUHK.jpg",
      "id": 1272,
      "title": "Sunshine",
      "original_language": "en",
      "original_title": "Sunshine",
      "overview": "Fifty years into the future, the sun is dying, and Earth is threatened by arctic temperatures. A team of astronauts is sent to revive the Sun — but the mission fails. Seven years later, a new team is sent to finish the mission as mankind’s last hope.",
      "poster_path": "/tM8meWkPrshbp0s5BmLpcgNX72e.jpg",
      "media_type": "movie",
      "genre_ids": [
        18,
        878,
        53
      ],
      "popularity": 20.674,
      "release_date": "2007-04-05",
      "video": false,
      "vote_average": 6.953,
      "vote_count": 3301
    }
  ],
  "person_results": [],
  "tv_results": [],
  "tv_episode_results": [],
  "tv_season_results": []
}

What I actually need is the MPA Rating, ie PG, R etc.

How do I secure more data in my API call?

I am working in BASH, so my prefered carriers are wget and cURL.

TIA

7 replies (on page 1 of 1)

Jump to last post

Edit: Also, would like to return the top listed Actors, Director, Writers, etc.

Edit: I have managed to return all the data I want, except for the MPA Rating (Content Rating). This is the one item I actually need the most.

Please help

You can get the content ratings from the /release_dates method.

Now I would never have thought of that... let me give it a go.

Thanks, that will do me just fine...

@thisiszeev said:

Edit: I have managed to return all the data I want, except for the MPA Rating (Content Rating). This is the one item I actually need the most.

Please help

Hey, how did you manage to return other data like actors, directors, etc ??

Sorry for the late reply... Work has been busy.

Check out this page: https://developer.themoviedb.org/reference/movie-credits

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