Homeschool Webmasters

Just another A2Z Homeschool Blogs weblog

Writing Your Own Amazon Associate Links

Posted by Ann Zeise on December 24, 2013

This started in the General Amazon Associates forum where Don Wise and I and several others replied multiple times to a thread on building your own links. Don has taken the posts from there, expanded on them, and organized them for here.

You can and should check your links with the link checker. Any link that passes the link checker is fine to use. Do be aware that you can create a link that goes to an Amazon page, has your tag, but doesn’t pass the link checker.

There is no reason to use long links. I like my links as short as possible. I edited down links and tested if they still worked and passed the link checker.

These are examples that you can edit and use. They cover all ways to extract items from Amazon that I am aware of. Hence complete. I wish there was Boolean logic in the search, but there isn’t that I know of.

Remember to change mytagid to your tag id. (Copy this someplace and do a find-and-replace.)

Amazon’s Home Page:

Individual Item:

Link To A Comment:

Search Within A Department. General searching has the default sort of Relevance.

There is an alternative more generalized format. Components of the URL can be in any order. I prefer to put the part that varies at its end.

You have to get the correct tag in the link for the department to search in. Some departments have more than one tag that will work for that department.
Use aps (for All Product Search) for the search-alias if you don’t know the department or you want to span multiple departments. No sorting available.

You can add bestselling sort to a search, though your results will usually be flooded with extraneous hits:

You should use a + sign where blanks between words would be in the entered string:

Alternatively you can use hex %20 to replace a space. But it is longer and harder to read.

Sometimes you need to tighten up the search by putting double quotes around the search string. The problem is you can’t use double quotes directly in a string. Instead use hex %22. The string becomes:

Search By Brand. Get brand string from Amazon URL after clicking on brand link. This will default to Bestselling sort.

A search by Brand and String can be combined. It defaults back to Relevance sort.
A working example (forced to a Bestselling sort):

A Department is actually a Node. The Grocery & Gourmet Food Department has a Node Number, and the following gets the same result as the above examples, which used a department alias. (The Node for Home, Garden & Pets is 1055398.)

Link To A Bestseller List (Basic single column version with 100 item limit). A bestseller list is simply a Node.

Bestseller lists can also be displayed in search format (using b instead of s), with three products across and no limit to the number of items. (One product across when books.) I like it MUCH better.
This is also the same format that you use to Link To A Department/Category Home Page. You just need the node number.

But a book bestseller list can have over 600 items:

However, when using this style you can change the sort. There are several available. For example, to see the newest books use this:

Or sorted by Avg. Customer Review:

If you want to do a search within that bestseller list, you switch to a search format (note s instead of b) giving it the node number to search within. It becomes:

And you can search for a brand within a bestseller list. In this example only a single brand is shown for a specific type of knife.

And the sort can be changed to Price: High to Low.


In my newest page (kitchen equipment) I have added title tags to all my links. Tool tips then display when the cursor is hovered over the link. For these Amazon links I used title tags like these:

title=”Click to go to Home Page”
title=”brand search”
title=”brand + search”
title=”string search”
title=”ranked search”

title=”outside source”
title=”outside vendor”
title=”reference page”

If you would like to see examples of these in use, go here: