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?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
RĂ©ponse de Travis Bell
le 30 juin 2015 Ă 16h08
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.
RĂ©ponse de harsimran8
le 1 juillet 2015 Ă 02h28
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.
RĂ©ponse de anand.mishra
le 14 novembre 2016 Ă 04h05
Hi, Can You please post the updated link of the genre name for every corresponding genre ids. Previous link is not working
RĂ©ponse de Travis Bell
le 15 novembre 2016 Ă 18h13
The method you're looking for is this one here.
Cheers.
RĂ©ponse de anand.mishra
le 16 novembre 2016 Ă 01h24
thanks man. appreciate it :)
RĂ©ponse de jagmeet13
le 30 juin 2018 Ă 09h44
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
RĂ©ponse de Travis Bell
le 30 juin 2018 Ă 12h14
@jagmeet13 With the master list of genres in hand you can then map the results of a movie. ID
28
is "Action" for example.RĂ©ponse de olehcambel
le 9 septembre 2018 Ă 08h23
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
RĂ©ponse de Travis Bell
le 10 septembre 2018 Ă 11h19
Discover would be the best way:
Take a look at the documentation, there's over 25 filters and sort options.
RĂ©ponse de tmdb25298348
le 16 décembre 2018 à 07h34
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.
Réponse de ticao2 🇧🇷 pt-BR
le 17 décembre 2018 à 09h26
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