Does anyone know of a way to programmaticly get a list of books from a user's Amazon Kindle Library? I would like to build a service for lending books. Ideally users would be able to export a list of books they are willing to lend without having to type each one individually. I believe Amazon may have some sort of API for this but have been unable to find any documentation. I am more or less language agnostic on this one. Thanks in advance for anyone who has any suggestions.
I've created a Gist of a javascript function which will take export a full list of all books using https://read.amazon.com. The Amazon Kindle Reader web app uses Web SQL to store the full list of your books locally (no need to "download" them), and the gist basically exports the list of books to a CSV file. I've commented some notes in the Gist, so you can customize it to fit your needs:
https://gist.github.com/jkubecki/d61d3e953ed5c8379075b5ddd8a95f22
This is similar to what @user2493694 was proposing to do, but using the underlying data instead of parsing the page.