amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
612 stars 736 forks source link

How can I get product pictures from SP-API? #770

Closed shuaiys closed 3 years ago

shuaiys commented 4 years ago

I want to get the seller's product picture, but I can't find the specific API, can somebody please help?

charliecode commented 4 years ago

Hello @shuaiys! I haven't had the time yet to go over all the APIs but I think I found a solution for you. It appears things have changed a bit for the SP-API in this regards. For the MWS API you would use the "Products" api along with the GetMatchingProduct or GetMatchingProductForId operations. But for the SP-API I don't see a "Products" api but rather a catalog-items-api. It looks like the getCatalogItem and listCatalogItems operations are what you're looking for. Once you get the response you'll want to drill down to the Item and pay attention to the AttributeSetList which should contain the "SmallImage". There you can find the Image along with it's URL, Height and Width. Hope this helps, maybe someone else has a better solution.

shuaiys commented 3 years ago

Thank you for your reply, but what is given in AttributeSetList seems to be a small picture of the product, not the main picture of the product. I don't know if these two concepts are the same

charliecode commented 3 years ago

@shuaiys If there's another way via the API to get a different picture, I have not used it. If you're able to find another way I'd love to hear the solution.

intellifox-hq commented 3 years ago

Unfortunately the API is quite dry in this regard. If you want the 1500x1500 image, you need to get it yourself without Amazon's help.

shuaiys commented 3 years ago

thank you, I will try other methods first.

MiHuaaaaaaaa commented 3 years ago

In the previous MWS, the images obtained ended with ul400.jpg. I replaced 400 with 1600 to get high-definition images. In spapi, I haven't done this step yet. You can try it.

pprbhm commented 3 years ago

Hi, Looks like there are few suggestions for the issue. If you still face similar problem, you can try creating support case and we can help you.