Hello, i have found in the movie credit API request, this key: "cast_id" and "credit_id", but I do not understand the use that I can do with these two values, i can use that key for something?
thanks
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 May 13, 2014 at 4:08 PM
Hi Piero87,
Cast & crew credits were changed when we launched TV. Starting with TV the
credit_id
value is a unique value for you to be able to identify a unique credit if there is more than one credit added per person for a movie or TV show/season/episode. You can look up this id with the /credit/:id method. I haven't updated this method to support movie credit IDs yet, that will be arriving shortly.A few months after TV launched, we finally migrated the movie credits to the newer credit system so that both system were powered by the same system. Before this,
cast_id
was the same unique value, there for the same reason but there was no 3rd party lookup like there is for credits. It was left in the response as to make sure we didn't break any existing clients that relied on it.Cheers.
Reply by Piero87
on May 14, 2014 at 6:39 PM
ok, thank you for the answer :)
Reply by Le Quynh Hoa
on October 6, 2016 at 11:28 PM
Sorry, i still confuse what "credit_id" is used for, could someone please explain more detail. Thank you
Reply by Travis Bell
on October 7, 2016 at 11:05 AM
Hi @Le Quynh Hoa,
It's used as the identifier for the particular credit record. If you make a call for some TV credits:
And take a look at Bryan Cranston's record, with the id
52542282760ee313280017f9
, you can query it to get the details of that particular record, outside of the TV namespace:You might not have a use for that query, which is fine but the id is useful so that you have a way of referencing the record on TMDb. If someone deletes that person and re-adds them, they will have a different ID so you know it changed and you can invoke whatever logic is important to you given those conditions.
Reply by gilfoyle
on March 14, 2017 at 3:12 PM
Hi. Following this instructions, i can get the info for this credit ID: 52542282760ee313280017f9 (Breaking Bad","original_name":"Breaking Bad","character":"Walter White"...etc). It's not working for movies yet? I tested this credit id for Clint Eastwood on Gran Torino: 52fe454f9251416c750523ff. It gives me a 34 error. {"status_code":34,"status_message":"The resource you requested could not be found."}
Tested multiple credits for Gran Torino from this request: https://api.themoviedb.org/3/movie/13223?api_key=8277ae593821f15114e4b063f6ff057b&append_to_response=credits
Also tryed Emi Rossum on Shameless without a problem. I can't get it on movies. https://api.themoviedb.org/3/credit/5258d807760ee346617130a4?api_key=8277ae593821f15114e4b063f6ff057b
I need to retrieve the info on what job/role people play on movies. Am I on the right path? Sorry for digging up this thread. Regards
Reply by Travis Bell
on March 14, 2017 at 3:37 PM
There's a bug right now preventing credits from being retrieved properly. I'm hoping to get it fixed sometime in the near of future.
Reply by gilfoyle
on March 14, 2017 at 4:33 PM
You mean, a bug instead of big, right? I have a project to present on the 5th April. I was counting on your api for this, do you think it will be solved before this date?
Regards
Reply by Travis Bell
on March 14, 2017 at 5:50 PM
Yes, of course.
Not sure. Is there a reason the data returned in the movie credits method isn't enough? What were you looking for specifically?
Reply by gilfoyle
on March 14, 2017 at 6:35 PM
I need to know what part each people play on movie. Clint Eastwood is director and actor, possibly producer on a certain number of films. Million dollar baby and gran Torino are two cases where this happens. I manage to get every part/role/job for TV shows, but can't do it for movies. Was I clear? I need to know how rough get this info so I can't finish my data model. Thanks and Regards
Reply by Travis Bell
on March 14, 2017 at 7:00 PM
If you're coming at it from a movie ID, you can use the method I linked to above. It has all of cast & crew for a movie. If you're coming at from the person ID, you can use one of either the movie credits, tv credits or combined credits methods.
What you're looking for is possible with one of the 4 methods I've linked to.
Reply by gilfoyle
on March 14, 2017 at 7:05 PM
Yes. I'm not testing now. Will test tomorrow. From what I remember, those methods don t have id's for each "job", do they? Will look into it tomorrow. Thanks for your help. Regards
Reply by Travis Bell
on March 14, 2017 at 7:08 PM
Yes, the
credit_id
(which is what I think you're referring to) is returned in each of those method. There's nothing you can really do with them though, other than use the ID to track that the credit is the same.Reply by gilfoyle
on March 14, 2017 at 7:14 PM
Is there a match for job id's like there is on genres? That would help.
Reply by Travis Bell
on March 14, 2017 at 7:45 PM
No, just the job/list method but there are no id's returned with it.