Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fetching Amazon Product Image by ASIN

I'm trying to find the image URLs for Amazon products based solely on their ASIN.

For example:

This link is for a product with ASIN B07NVVQL66 in the USA If you click it you will see an image of the product

http://images.amazon.com/images/P/B07NVVQL66.01._SCLZZZZZZZ_.jpg

I want to do something similar for product with ASIN B07QXZV6SH in the UK This URL doesn't work though

http://images.amazon.com/images/P/B07QXZV6SH.01._SCLZZZZZZZ_.jpg  

and also for product with ASIN B07SD338ZL in Germany Again the url doesn't work

http://images.amazon.com/images/P/B07SD338ZL.01._SCLZZZZZZZ_.jpg  

I found the URLs above by using the method described here

There are also some "tricks" here which I also tried but didn't work, eg I tried changing the 01 section to 02 and 03 but still nothing.


Why do I want this?

I have a list of ASINs for which I want to show a thumbnail. The other method is to scrape the product listings one by one but that isn't practical.

Also, I can't use Amazon MWS since this is in a Chrome Extension so it will run locally on each users computer.

like image 639
xdiavel123 Avatar asked Sep 27 '19 23:09

xdiavel123


3 Answers

Two options:

1) This is Amazon's API for images by their ASIN You need to create an AssociateTag first

2) This works for the UK store: https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=GB&ASIN=B06Y64P1DG&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=SL250

2a) for US Store: https://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=US&ASIN=B07HS3Y5KH&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=SL250

replace B06Y64P1DG with your ASIN

like image 75
oavi Avatar answered Nov 08 '22 05:11

oavi


you can also change that size up to a maximum of 500. Some images may have additional white padding, but that can be removed with the AC parameter (auto-crop maybe?)

https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=GB&ASIN=B07HS3Y5KH&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=SL500

https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=GB&ASIN=B07HS3Y5KH&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500

like image 4
mousedown Avatar answered Nov 08 '22 03:11

mousedown


You Can Use this link siplly with some correction you should change ASIN no. and Market Place where you sell Like USA>Us UK>FB Germany>DE etc.

https://ws-eu.amazon-adsystem.com/widgets/q?_encoding=UTF8&MarketPlace=**YourMarkt**&ASIN=**YourASIN**&ServiceVersion=20070822&ID=AsinImage&WS=1&Format=AC_SL500

See in this link And correct with "yourASIN" & "YourMarket"

like image 3
Muhafiz Islam Avatar answered Nov 08 '22 04:11

Muhafiz Islam