Search code examples
phpamazon-product-api

Amazon Product API - Get Musician's Unique ID from Artist Name


I'd like to query AWS for a Musician's ASIN from the artist's name. I'm not concerned about false matches at this point, I just want to discover the correct parameters that it'll take to get the job done.

Alternatively, I could query using an album's ASIN which I already have. Using the following parameters, I'm able to get the album's artist name, but not the artist ASIN.

Operation => ItemSearch, SearchIndex => Music, Artist => Moby, ResponseGroup => Images,
AssociateTag => Associate_tag

Thanks All!

EDIT: I made a mistake labeling this as a "ASIN". What I'm looking for is the unique id for an artist. Looking at amazon.com/Shinedown/e/B00197I1JU illustrates the use of this unique id ("B00197I1JU"). I'm trying to get this value to store locally.


Solution

  • You need to use the ItemAttributes response group to get a list of products and their ASIN values that are related to your search criteria. This response group will also contain such information as artist name, binding, list price, etc.

    You can use more than one ResponseGroup attributes to get both the ItemAttributes and Images response group with the same call.