Create Link with Amazon ASIN Number to link the right country (e.g. amazon.com, .co.uk, .jp) by usersettings?

陌路散爱 提交于 2019-12-05 02:24:16

问题


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.


回答1:


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.




回答2:


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).



来源:https://stackoverflow.com/questions/12159775/create-link-with-amazon-asin-number-to-link-the-right-country-e-g-amazon-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!