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
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 thisiszeev
on June 27, 2023 at 11:29 AM
Edit: Also, would like to return the top listed Actors, Director, Writers, etc.
Reply by thisiszeev
on June 27, 2023 at 12:11 PM
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
Reply by Travis Bell
on June 27, 2023 at 1:52 PM
You can get the content ratings from the /release_dates method.
Reply by thisiszeev
on June 28, 2023 at 2:38 AM
Now I would never have thought of that... let me give it a go.
Reply by thisiszeev
on June 28, 2023 at 2:40 AM
Thanks, that will do me just fine...
Reply by anamika7153
on June 28, 2023 at 2:48 PM
Hey, how did you manage to return other data like actors, directors, etc ??
Reply by thisiszeev
on July 5, 2023 at 7:07 PM
Sorry for the late reply... Work has been busy.
Check out this page: https://developer.themoviedb.org/reference/movie-credits