概要
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google ブックス API ファミリーの API を使用すると、Google ブックスの機能をサイトやアプリケーションに組み込むことができます。新しい Google ブックス API を使用すると、Google ブックスのウェブサイトでインタラクティブにできるほとんどの操作をプログラムによって実行できます。Embedded Viewer API を使用すると、コンテンツをサイトに直接埋め込むことができます。
Google は、できるだけ多くのユーザーが情報を利用できるようにすることを目指しており、API はそのことを念頭に置いて設計されています。ただし、Google は Google ブックスで使用するデータの多くのライセンスを付与しているため、Google が選択した方法での配布は Google のものではありません。
この API は、商用サービスの代わりとして使用することを意図したものではありません。これらのサービスは価値があり、Google は一般向けの独自の API を構築する際にも利用しています。
API の使用に関する Google 利用規約は、https://developer.google.com/books/terms.html でご覧いただけます。ユーザーが利用規約に違反し、Google から違反の通知を受けた後、違反を是正するための措置を講じない場合、Google はユーザーの API へのアクセスを停止します。
ブックス API v1(試験運用版)
新しい Google ブックス API v1 を使用すると、Google ブックスのウェブサイトで利用できる多くの操作にプログラムでアクセスできます。これを使用して、Google ブックスとより緊密に統合される強力なアプリケーションを作成できます。API が提供する主な機能は次のとおりです。
- 特定のクエリに一致する書籍のリストを検索およびブラウジングする。
- メタデータ、在庫状況、価格、プレビュー ページへのリンクなど、書籍に関する情報を表示する
- 自分で本棚を管理することもできます。
API について学ぶには、まずスタートガイド ページをご覧ください。ここでは、API が使用する基本コンセプトと、API が従う基本的なインタラクションの原則について説明します。API でサポートされているすべてのオペレーションの包括的な説明については、API の使用ページをご覧ください。
埋め込みビューア API
Embedded Viewer API を使用すると、JavaScript を使用して Google ブックスの書籍コンテンツをウェブページに直接埋め込むことができます。書籍のプレビューに関する独自のユーザー エクスペリエンスを構築できます。
書籍のプレビュー機能をサイトに追加するのは比較的簡単ですが、HTML と JavaScript の知識が必要です。デベロッパー ガイドでは、Google AJAX ローダを使用して API を読み込み、ページ上の特定のコンテナに描画する方法について説明しています。
ウェブページに追加された埋め込みビューアは、JavaScript 関数を使用して制御できるようになります。これにより、コントロールをクリックして実行できる操作(次のページへの移動、ズームイン / ズームアウト、検索キーワードのハイライト表示など)を実行できます。現在のページ番号を取得することもでき、ユーザーが書籍内を移動したときにコードが反応します。
|
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-06-28 UTC。
[null,null,["最終更新日 2024-06-28 UTC。"],[[["\u003cp\u003eThe Google Books APIs allow you to integrate Google Books features, such as searching, browsing, and embedding book content, into your website or application.\u003c/p\u003e\n"],["\u003cp\u003eThe Books API provides programmatic access to book information, including metadata, availability, and pricing, enabling you to build book-related applications.\u003c/p\u003e\n"],["\u003cp\u003eThe Embedded Viewer API enables you to embed book previews directly into your web pages, offering customizable user experiences around book content.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Books APIs are subject to the Google Terms of Service, and misuse may lead to suspension of access.\u003c/p\u003e\n"]]],[],null,["# Overview\n\nThe APIs in the Google Books API Family let you bring [Google Books](https://books.google.com/) features to your site or application.\n\nThe new [Google Books API](#books_api_v1) lets you perform programmatically most of the operations that you can do interactively on the\nGoogle Books website. The [Embedded Viewer API](#embedded_viewer_api) lets you embed the content directly into your site.\n\nAt Google, we're constantly striving to make information available to as\nmany people as possible, and our APIs were designed with that goal in mind.\nHowever, we license much of the data that we use to power Google Books, so\nit's not ours to distribute however we choose.\n\nThe API is not intended to be used as a replacement for commercial services.\nThese services are valuable and Google also relies upon them to build our\nown APIs for the general public.\n\nThe Google Terms of Service for use of the APIs is available at [https://developer.google.com/books/terms.html](/books/terms). We 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.\n\nBooks API v1 (Experimental)\n---------------------------\n\nThe new Google Books API v1 gives you programmatic access to many of the operations available on Google Books website. You can use it to\ncreate powerful applications that provide deeper integration with Google Books. Some of the main features that the API provides are:\n\n- search and browse through the list of books that match a given query.\n- view information about a book, including metadata, availability and price, links to the preview page.\n- manage your own bookshelves.\n\nA good first step in learning about the API is the [Getting Started](/books/docs/v1/getting_started) page. It explains the basic\nconcepts that the API uses and describes the basic interaction principles that the API follows. A comprehensive description of all the operations\nsupported by the API is given in the [Using the API](/books/docs/v1/using) page.\n\nEmbedded Viewer API\n-------------------\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------|\n| The Embedded Viewer API lets you embed book content from Google Books directly in your web pages with JavaScript. It allows you to build your own user experience around book previews. Adding book preview functionality to your site is relatively simple, though it does require some knowledge of HTML and JavaScript. The [Developer's Guide](/books/docs/viewer/developers_guide) explains how the API can be loaded using the Google AJAX loader and drawn into a particular container on your page. Once the embedded viewer has been added to a webpage, it can be controlled using [JavaScript functions](/books/docs/viewer/reference). This allows you to perform actions similar to what the user can do by clicking on the controls: you can go to the next page, zoom in or out, highlight search terms, and so on. You are also able to get the current page number, allowing your code react as the user navigates through the book. | [](/books/docs/viewer/examples/book-simple) |"]]