ภาพรวม
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
API ใน Google Books API Family ทำให้คุณนำฟีเจอร์ของ Google Books มาใช้ในเว็บไซต์หรือแอปพลิเคชันได้
Google Books API ใหม่ให้คุณเรียกใช้การดำเนินการส่วนใหญ่โดยใช้โปรแกรมได้แบบอินเทอร์แอกทีฟในเว็บไซต์ Google Books API โปรแกรมดูแบบฝังช่วยให้คุณฝังเนื้อหาลงในเว็บไซต์ได้โดยตรง
ที่ Google เราพยายามอย่างต่อเนื่องที่จะทำให้ผู้คนเข้าถึงข้อมูลได้มากที่สุดเท่าที่จะเป็นไปได้ และ API ของเราก็ได้รับการออกแบบมาโดยคำนึงถึงเป้าหมายดังกล่าว
อย่างไรก็ตาม เราอนุญาตให้ใช้ข้อมูลส่วนใหญ่ที่เราใช้เพื่อขับเคลื่อน Google หนังสือ ดังนั้นเราจึงไม่สามารถเผยแพร่ข้อมูลได้ตามที่เราเลือก
API นี้ไม่ได้มีจุดประสงค์เพื่อใช้แทนบริการเชิงพาณิชย์
บริการเหล่านี้มีประโยชน์มาก และ Google ยังต้องอาศัยบริการเหล่านี้ในการสร้าง API ของเราเองสำหรับผู้ใช้ทั่วไป
ดูข้อกำหนดในการให้บริการของ Google สำหรับการใช้ API ได้ที่ https://developer.google.com/books/terms.html เราจะระงับการเข้าถึง API ของผู้ใช้หากผู้ใช้ละเมิดข้อกำหนดในการให้บริการและไม่ดำเนินการใดๆ เพื่อแก้ไขการละเมิดหลังจากที่ Google ได้สังเกตเห็นการละเมิด
Books API v1 (ทดลอง)
Google Books API v1 ใหม่ให้คุณเข้าถึงการดำเนินการต่างๆ ที่มีอยู่ในเว็บไซต์ Google Books แบบเป็นโปรแกรมได้ คุณสามารถใช้แอปพลิเคชันนี้เพื่อสร้างแอปพลิเคชัน
ที่มีประสิทธิภาพซึ่งช่วยให้ทำงานร่วมกับ Google Books ได้อย่างลึกซึ้งยิ่งขึ้น คุณลักษณะหลักบางประการที่ API มีให้ ได้แก่:
- ค้นหาและเรียกดูรายชื่อหนังสือที่ตรงกับคำค้นหาที่ระบุ
- ดูข้อมูลเกี่ยวกับหนังสือ รวมถึงข้อมูลเมตา ความพร้อมจำหน่ายสินค้า และราคา และลิงก์ไปยังหน้าตัวอย่าง
- จัดการชั้นวางหนังสือของคุณเอง
ขั้นตอนแรกที่ดีในการเรียนรู้เกี่ยวกับ API คือหน้าการเริ่มต้นใช้งาน โดยจะอธิบายแนวคิดพื้นฐานที่ API ใช้และอธิบายหลักการโต้ตอบพื้นฐานที่ API ใช้ คำอธิบายที่ครอบคลุมเกี่ยวกับการดำเนินการทั้งหมดที่ API รองรับมีอยู่ในหน้าการใช้ API
API ผู้ดูแบบฝัง
API โปรแกรมอ่านแบบฝัง ช่วยให้คุณฝังเนื้อหาของหนังสือจาก Google หนังสือลงในหน้าเว็บได้โดยตรงด้วย JavaScript คุณสามารถสร้างประสบการณ์ของผู้ใช้ของคุณเองเกี่ยวกับการแสดงตัวอย่างหนังสือ
การเพิ่มฟังก์ชันการแสดงตัวอย่างหนังสือลงในเว็บไซต์เป็นเรื่องที่ค่อนข้างง่าย แม้ต้องอาศัยความรู้เรื่อง HTML และ JavaScript อยู่บ้าง คู่มือนักพัฒนาซอฟต์แวร์อธิบายวิธีโหลด API โดยใช้ตัวโหลด Google AJAX และวาดลงในคอนเทนเนอร์หนึ่งๆ ในหน้าเว็บ
เมื่อเพิ่มมุมมองที่ฝังลงในหน้าเว็บแล้ว คุณสามารถควบคุมได้โดยใช้ฟังก์ชัน 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) |"]]