The new Google Books API lets you perform programmatically most of the operations that you can do interactively on the Google Books website.
The Google Terms of Service for use of the APIs is available at https://developer.google.com/books/terms.html. Google will suspend a user's access to the APIs if a user violates the Terms of Service and does not take action to remedy the violation after notice of violation by Google.