Aquarionics

Friday 26th July 2002

Amazon Links

A tutorial, or guide, to Amazon Item Links, and making them usable.

An amazon link is made up of four parts, server, path, asin and session.

http://www.amazon.co.uk/exec/obidos/ASIN/B000050ABX/202-0443038-0326228
\--------------------/ \--------------/ \--------/ \-----------------/
Site Name Script Code # Session Ref.

See below for an update, it gets shorter

The first part, or Server, is the physical server to use when referring to the object, it can be any one of amazon.co.uk .com, .co.jp, .co.dk, .co.ca or whatever they have opened today. It is required.

The second part, or path, is almost always /exec/obidos/, and is mandatory.

The third part is the Amazon System Identification Number, or ASIN, consisting of that phrase, plus a string identifying the item.

The fourth and final part is everything after the asin number, and is known as the Session, identifying your personal access of the database system. It is not any kind of security risk to add this to links, because should you access this session from a new IP - or after a length of time - it becomes invalid, but is not necessary for people to get to your item. For example, the optimal link to the above is: http://www.amazon.co.uk/exec/obidos/ASIN/0385602642/

Furthermore, it should be noted that if you place the id of an Amazon Affiliate in place of the session, then a percentage of your purchase will go towards that affiliate. (It's one of the few ways Aquarionics comes close to paying for it's bandwidth).

For example, for that link to donate a percentage (ranging from 5 to 15%) to the Buy Aquarion A Clié Fund, the link would be the following:

http://www.amazon.co.uk/exec/obidos/ASIN/0385602642/aquarion

Also, it is very rare for any amazon link (minus session) to be more than 72 chars, thus avoiding linewrap.

This has been a public service announcement, on behalf of makea shorta linka corp.

Sponsored by snackyspores.

2004-06-25 According to the new Amazon Hacks book, you can shorten this even further by replacing the "/exec/obidos" with "/o", so the above link becomes:

http://www.amazon.co.uk/o/ASIN/B000050ABX/202-0443038-0326228
\---------------------/ \----/ \--------/ \-----------------/
Site Name Script Code# Session Ref.


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.


Aquarion's last Twitter was: [updating]
Twitter last updated


More Articles:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.792 seconds, 8 queries, 2.57Mb on Wed, 25 Jun 2008 20:07:08 +0000
Generated by Epistula Version 2.0.3