Google Books
HTML
<html>
<head>
<title>Books API Example</title>
</head>
<body>
</body>
</html>
CSS
label {
display:block;
}
JavaScript
var body = $("body");
var bookTitle = "lord of the rings";
$.get("https://www.googleapis.com/books/v1/volumes?q=q=subject:fiction", function(data) {
if(data.totalItems > 0) {
var book = data.items[0];
var volumeInfo = book.volumeInfo;
var imageLinks = volumeInfo.imageLinks;
var industryIdentifiers = volumeInfo.industryIdentifiers;
var cat = volumeInfo.categories;
//$('.foo').html(cat)
console.log(cat)
var preview = $("<img />");
$(preview).attr("src", imageLinks.thumbnail);
var isbn = $("<label />");
isbn.text("ISBN: " + industryIdentifiers[0].identifier);
var rating = $("<label />");
rating.text("Rating: " + volumeInfo.averageRating);
$(body).append(rating);
$(body).append(isbn);
$(body).append(preview);
}
});