Hi, I am using movie/now_playing to get list of movies. In api response I am getting an array of genre ids. How can i get genre names corresponding to those ids. Why is the api sending ids instead of names?
Also, there are no attributes corresponding to cast in the response. Is there any way i can get this?
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 Travis Bell
on June 30, 2015 at 4:08 PM
Hi harsimran8,
genre_ids
are passed in so the responses are lighter and not subject to translations, this keeping it all around quicker and simpler. Most people would have already integrated our genres and probably already have access to those objects in their app. The list of genres can be found here.We do not return any other fields in any of our "featured list" methods. There is no way to get extra fields aside from making the call to the root item.
Cheers.
Reply by harsimran8
on July 1, 2015 at 2:28 AM
Hey, Travis
Thanks for the reply and making it clear. After digging some more into your api docs, i found all the methods that I need. Great job on the api by the way.
Reply by anand.mishra
on November 14, 2016 at 4:05 AM
Hi, Can You please post the updated link of the genre name for every corresponding genre ids. Previous link is not working
Reply by Travis Bell
on November 15, 2016 at 6:13 PM
The method you're looking for is this one here.
Cheers.
Reply by anand.mishra
on November 16, 2016 at 1:24 AM
thanks man. appreciate it :)
Reply by jagmeet13
on June 30, 2018 at 9:44 AM
but can't understand how to get genre names for a particular movie. what we have to pass in the path to get genre names corresponding to their ids
Reply by Travis Bell
on June 30, 2018 at 12:14 PM
@jagmeet13 With the master list of genres in hand you can then map the results of a movie. ID
28
is "Action" for example.Reply by olehcambel
on September 9, 2018 at 8:23 AM
But how can I fetch movies by genreId ? fe i have genreId 28, which is Action, so I want to fetch all corresponding movies. Thanks
Reply by Travis Bell
on September 10, 2018 at 11:19 AM
Discover would be the best way:
Take a look at the documentation, there's over 25 filters and sort options.
Reply by tmdb25298348
on December 16, 2018 at 7:34 AM
Hi, I don't understand how to get the actual genre names to parse from the genre_ids (I'm using jQuery). I'm currently listing the movies now playing with posters and I want to put their genres with, but I get the ids rather than the names ( 'action' for example). I'm quite a newbie at this, so any help appreciated.
Reply by ticao2 🇧🇷 pt-BR
on December 17, 2018 at 9:26 AM
As your problem is figuring out how to program using JQuerry, I think you might not find help here in this forum.
First, visit this page and see if any of the links can help you.
https://www.themoviedb.org/documentation/api/wrappers-libraries
Another possibility is to search on https://stackoverflow.com