Graphing Amazon sales rank, or automated author navel-gazing
Like most authors tasked with promoting their new book, checking Lifehacker the book’s Amazon sales rank has become part of my daily routine. But your book’s sales rank is one of those things - if you obsess about it too much, you’ll lose your mind. “It’s total B.S.,” a writer friend told me. “My agent told me it’s a miniscule representation of your book’s sales overall.” That’s probably less true for tech books than fiction, but either way, I wanted a way to capture my sales rank over time without constantly checking myself like an anxious freak. A number alone after awhile is pretty meaningless, and it literally changes by the hour.
So, inspired by PB’s graphing post and a curiosity about Amazon’s API, I set out to write a little something that would help me visualize what’s happening with the book’s sales over time. I didn’t get into the hardcore tools Paul did - just the names RRDTool or SNMP scare me - so I instead opted for the very no-frills, Flash-based PHP/SWF graphs. After registering for a free key, I was delighted to find that the Amazon API is dead simple. In less than 30 minutes of a little PHP/MySQL hacking, I had a sales rank capture-and-graph set of PHP scripts. It’s turned out to be a really nice way to keep an eye out without reloading the book’s Amazon page 4 times a day like a total egotistical loser.
Here’s the finished Lifehacker book Amazon sales rank charter. Screengrab below:
