Using Amazon Product Search

Type keywords to search in Amazon's index of books.

Oh snap!

Since I first wrote this code a decade ago Amazon has locked down their free search APIs, so this code stopped working until I set up an account as a seller.

It's too bad, since this was a nice showcase for building SEO-fiendly URLs based on the product search. For example if you searched for "electronics headphones" the result URL would be "/products/electronics/headphones".

You can see the code. The controller generates the SEO URL and redirects to it, the model does the product search, and the view decodes and formats the search results.