Tổng quan
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
API trong nhóm API Google Sách cho phép bạn đưa các tính năng của Google Sách vào trang web hoặc ứng dụng của mình.
API Google Sách mới cho phép bạn thực hiện hầu hết các thao tác theo phương thức lập trình mà bạn có thể thực hiện một cách tương tác trên trang web Google Sách. API Trình xem được nhúng cho phép bạn nhúng nội dung trực tiếp vào trang web của bạn.
Tại Google, chúng tôi luôn nỗ lực cung cấp thông tin cho nhiều người nhất có thể và các API của chúng tôi đã được thiết kế nhằm đáp ứng mục tiêu đó.
Tuy nhiên, chúng tôi cấp phép cho nhiều dữ liệu mà chúng tôi sử dụng để hỗ trợ Google Sách. Vì vậy, chúng tôi không có quyền phân phối theo cách nào đó.
API này không được dùng để thay thế cho các dịch vụ thương mại.
Các dịch vụ này rất có giá trị và Google cũng dựa vào chúng để xây dựng các API riêng dành cho công chúng.
Điều khoản dịch vụ của Google để sử dụng các API có tại https://developer.google.com/books/terms.html. Chúng tôi sẽ tạm ngưng quyền truy cập của người dùng vào các API nếu người dùng vi phạm Điều khoản dịch vụ và không thực hiện hành động để khắc phục lỗi vi phạm đó sau khi Google thông báo về việc vi phạm đó.
Books API v1 (Thử nghiệm)
Google Books API v1 mới cung cấp cho bạn quyền truy cập có lập trình vào nhiều thao tác hiện có trên trang web Google Sách. Bạn có thể dùng công cụ này để tạo các ứng dụng mạnh mẽ giúp tích hợp sâu hơn với Google Sách. Một số tính năng chính mà API cung cấp là:
- tìm kiếm và duyệt qua danh sách các sách khớp với truy vấn cụ thể.
- xem thông tin về một cuốn sách, bao gồm cả siêu dữ liệu, tình trạng còn hàng và giá, đường liên kết đến trang xem trước.
- quản lý giá sách của riêng bạn.
Bước đầu tiên để tìm hiểu về API là trang Bắt đầu. Tài liệu này giải thích các khái niệm cơ bản mà API sử dụng và mô tả các nguyên tắc tương tác cơ bản mà API tuân thủ. Bạn có thể xem nội dung mô tả toàn diện về tất cả thao tác mà API này hỗ trợ trên trang Sử dụng API.
API Trình xem được nhúng
API trình xem được nhúng cho phép bạn nhúng nội dung sách từ Google Sách trực tiếp vào trang web của bạn bằng JavaScript. Tính năng này cho phép bạn xây dựng trải nghiệm người dùng của riêng mình liên quan đến bản xem trước sách.
Việc thêm chức năng xem trước sách vào trang web của bạn tương đối đơn giản, mặc dù chức năng này yêu cầu một số kiến thức về HTML và JavaScript. Hướng dẫn dành cho nhà phát triển giải thích cách tải API bằng trình tải AJAX của Google và được vẽ vào một vùng chứa cụ thể trên trang của bạn.
Sau khi thêm trình xem được nhúng vào một trang web, bạn có thể kiểm soát trình xem đó bằng các hàm JavaScript. Điều này cho phép bạn thực hiện các thao tác tương tự như những gì người dùng có thể làm bằng cách nhấp vào các nút điều khiển: bạn có thể chuyển đến trang tiếp theo, phóng to hoặc thu nhỏ, đánh dấu cụm từ tìm kiếm, v.v. Bạn cũng có thể lấy số trang hiện tại, cho phép mã phản ứng khi người dùng di chuyển trong cuốn sách.
|
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-06-28 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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) |"]]