Open Library, perhaps? It's run by Archive.org and has a developer API: http://openlibrary.org
ETA: I see they also offer raw JSON downloads of their entire collection: http://openlibrary.org/data#downloads
ETA: I see they also offer raw JSON downloads of their entire collection: http://openlibrary.org/data#downloads