Resources for Developers Using Amazon's Product Advertising API
· Home  
· Search  
· Browse Nodes  
· Data Feed?  
· FAQs  
· One-Second Rule  
· PHP Examples  
· Tips for Associates  
· Tools  
· Understanding A2S  

Create a custom Amazon Associate Store in minutes with

Disappointed by and the Associates program?

Please consider

Shareasale manages affiliate programs for thousands of merchants. The site makes it easier to apply to programs and create links. And simple-to-use datafeeds are offered by most merchants.

Simple Text Links to

Amazon provides a number of ways to build Associate links to products at, but the simpliest ways are not very well documented. This article describes how to create URLs to link text or images to

Product Links: You can use the following URL to create a simple text link to or to link an image to

Replace ASIN with the ASIN of the product and YourAssociatesId with your Associates ID or Tracking ID.

The ASIN is a unique identifier Amazon uses for each product. You can find the ASIN on Amazon's product page. Under "Product Details" look for "ASIN: xxxxxxxxx". For most books, the ten-digit ISBN (ISBN-10) is the same as the book's ASIN.

Your Associates ID is used by Amazon to give you credit for any purchases made by the visitor using the link. Your Associates ID is displayed in the upper-left hand corner of Associates Central after you log in. It's displayed below "Signed in as". In place of your Associates ID, you may use a Tracking ID. Tracking IDs are used just like your Associates ID in referrals to They allow you to generate unique reports for different web sites or links.

To create a text link using the simple URL illustrated above, use it in a HTML "a href" tag like:

<a href="">Text to Display</a>

Replace Text to Display with the text you wish to display as a hyperlink.

To create a hyperlink from an image using the simple URL illustrated above, use HTML like:

<a href=""><img src="" border=0></a>

Replace with the URL to the image you wish to hyperlink.

To have either of the above links open a new window, add a target parameter to the "a" tag like this:

<a href="" target="_blank">Text to Display</a>

Browse Node Links:

Another kind of simple link you can use is a link to a Browse Node. A Browse Node is basically a specific page at which may have products associated with it. You can think of a Browse Node as a "category."

Linking to an browse node is as easy as linking to an individual item. The URL to use is:

Where YourAssociatesId is your Associates ID and BROWSENODEID is a number representing the Browse Node.

Be sure to test the link you've created to make sure it takes you to the proper page. If it doesn't, try replacing "/b/" in the URL with "/s/". Using "s" instead of "b" takes you to a page that lists the products in the browse node rather than displaying a page associated with the node.

Home Page Links:

To link to's home page, use a link of the form:

Replace YourAssociatesId with your Associates ID or Tracking ID.

You can use this URL in text or image links as described above.

Search Results Links:

Creating a URL to link to search results at is a little more difficult. The reason it is more difficult is that you need to "URL encode" the search phrase so that it can be embedded within the URL. For this reason, it's easiest to use the "Link to Search Results" tool provided by Amazon at:

Scroll down the page a little to find the "Link to Search Results" form. Select a "Product Line" (or leave it set to "All Products." Then enter the search phrase in the "Enter Keywords" field and some text in the "Name Your Link" field. Click the "Get HTML" button. Look for the word "Preview" followed by the "Name Your Link" text you entered. The text is a hyperlink to the search results. "Right-click" the link and choose "Copy Shortcut" (or "Copy Link Location"). You can now "paste" the URL to the search results where you need it. For example, you can paste it into your browser's "Address" bar to make sure it works.

As with the other URLs described in this article, you can use the URL in text or image links as described above.

Copyright © 2020 by Roger Smith