Create Link with Amazon ASIN Number to link the ri

2019-03-31 12:15发布

I have a database and want to link amazon products with their asin.

For example B005UEF678 for iPhone 4S, would be

amazon.com/dp/B005UEF678 in the US,
but amazon.de/dp/B005UEF678 in germany.  

Actually I don't know which URL is the right, since the user could be from any country?

How would you solve this problem?

API? Switch Case in Userlanguage?

thank you

byt he way I use PHP.

2条回答
爷、活的狠高调
2楼-- · 2019-03-31 13:06

I use Stephen Morley's IPToAmazon. It is a php script that creates links to international Amazon stores based on IP or other criteria (you can configure it).

查看更多
欢心
3楼-- · 2019-03-31 13:12

there is a servie for ASIN Short URLs called asin.info. You can easily generate your URLs by Amazonlink or with this syntax:

http://asin.info/a/{asincode}

It will redirect the user to the product for the right country.

Hope this will help you.

查看更多
登录 后发表回答