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
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة thisiszeev
بتاريخ يونيو 27, 2023 في 11:29 صباحا
Edit: Also, would like to return the top listed Actors, Director, Writers, etc.
رد بواسطة thisiszeev
بتاريخ يونيو 27, 2023 في 12:11 مساءا
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
رد بواسطة Travis Bell
بتاريخ يونيو 27, 2023 في 1:52 مساءا
You can get the content ratings from the /release_dates method.
رد بواسطة thisiszeev
بتاريخ يونيو 28, 2023 في 2:38 صباحا
Now I would never have thought of that... let me give it a go.
رد بواسطة thisiszeev
بتاريخ يونيو 28, 2023 في 2:40 صباحا
Thanks, that will do me just fine...
رد بواسطة anamika7153
بتاريخ يونيو 28, 2023 في 2:48 مساءا
Hey, how did you manage to return other data like actors, directors, etc ??
رد بواسطة thisiszeev
بتاريخ يوليو 5, 2023 في 7:07 مساءا
Sorry for the late reply... Work has been busy.
Check out this page: https://developer.themoviedb.org/reference/movie-credits