Amazon ISBN EAN linking with Associate ID embedded

How to programmatically embed your Amazon Associates affiliate code into a link using 13 digit ISBN codes.

After digging quite a lot into this, I found out that the 13 digit ISBN code is different to the 10 digit and you’ll probably want to perform an ASIN lookup rather than rely on the ISBN. Some 13 digit ISBNs are the same when converted to a 10 digit call, some not. Amazon don’t recommend using conversion tools or mapping as this can break things.

Here’s my starting point for a search request using ECS:

An alternative way without ECS using a search results link:

 

Remove the brackets in the code samples above and you should have a neat Amazon Associates link that can be altered with a few php or javascript variables.

Leave a Reply

Your email address will not be published. Required fields are marked *