{"id":89,"date":"2008-03-16T23:58:15","date_gmt":"2008-03-16T23:58:15","guid":{"rendered":"http:\/\/www.nostuff.org\/words\/2008\/google-books-api\/"},"modified":"2008-03-16T23:58:15","modified_gmt":"2008-03-16T23:58:15","slug":"google-books-api","status":"publish","type":"post","link":"https:\/\/www.nostuff.org\/words\/2008\/google-books-api\/","title":{"rendered":"Google Books API"},"content":{"rendered":"<p>Google <a href=\"http:\/\/blogs.talis.com\/panlibus\/archives\/2008\/03\/new_api_makes_i.php\">released<\/a> <a href=\"http:\/\/www.daveyp.com\/blog\/index.php\/archives\/290\/\">an<\/a> API for their <a href=\"http:\/\/books.google.com\/\">Book Search<\/a> at the end of last week. You can implement this in two ways: static (just linking to a URL with a ISBN inserted) or dynamic, which basically means using javascript, which will check to see if Google have the book available as the page loads and can show a link accordingly.<\/p>\n<p>The (very rough and basic) &#8216;catalogue&#8217; I recently created already had a link to Google Books for each item. This was just a very simple URL with an ISBN stuck on the end, e.g. <a href=\"http:\/\/books.google.com\/books?as_isbn=0596003722\">http:\/\/books.google.com\/books?as_isbn=0596003722<\/a><\/p>\n<p>Tonight I have made the first steps in adding links to items using the Google Books API using both the static (simple) and dynamic methods.<\/p>\n<p>You can see an example <a href=\"http:\/\/www.nostuff.org\/tdn\/6b\/item.php?item=0596003722\">here http:\/\/www.nostuff.org\/tdn\/6b\/item.php?item=0596003722<\/a>.<\/p>\n<p>You can also do a search via <a href=\"http:\/\/www.nostuff.org\/tdn\/6b\/\">http:\/\/www.nostuff.org\/tdn\/6b\/<\/a><\/p>\n<p>The layout is currently very rough, and the dynamic search is broken in that it will only show a result for the first ISBN for a given item (I know why  but don&#8217;t have time to fix now).<\/p>\n<p>I have to confess I know very little javascript. The examples from Google only use a few lines of code but  not really understanding what it did, did not help. For example, for the dyanmic display, I found it did not work at all, until I added a second paragraph tag for every ISBN. I can&#8217;t see what in the js makes this so :(<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google released an API for their Book Search at the end of last week. You can implement this in two ways: static (just linking to a URL with a ISBN inserted) or dynamic, which basically means using javascript, which will check to see if Google have the book available as the page loads and can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,10,14],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-information-searching-and-libraries","category-techy","category-web"],"_links":{"self":[{"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":0,"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nostuff.org\/words\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}