磁碟區:清單
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
執行書籍搜尋。立即試用。
要求
HTTP 要求
GET https://www.googleapis.com/books/v1/volumes?q={search terms}
參數
參數名稱 |
值 |
說明 |
必要參數 |
q |
string |
全文搜尋查詢字串。 |
選用參數 |
download |
string |
依據下載功能的可用性來限制磁碟區。
可接受的值如下:
|
filter |
string |
篩選搜尋結果。
可接受的值為:
- 「
ebooks 」:所有 Google 電子書。
- 「
free-ebooks 」- 具備整冊文字的 Google 電子書顯示比例。
- 「
full 」:公眾可查看整個音量文字。
- 「
paid-ebooks 」 - 有價格的 Google 電子書。
- 「
partial 」 - 一般大眾可查看部分文字。
|
langRestrict |
string |
僅搜尋含有這個語言代碼的書籍。
|
libraryRestrict |
string |
僅搜尋這位使用者的資料庫。
可接受的值如下:
- 「
my-library 」:僅限使用者的媒體庫,任何書架。
- 「
no-restrict 」:不依使用者的媒體庫限制搜尋結果。
|
maxResults |
unsigned integer |
要傳回的結果數上限。可接受的值介於 0 到 40 (包含這兩者) 之間。 |
orderBy |
string |
將搜尋結果排序。
可接受的值如下:
- 「
newest 」:最近發布的版本。
- 「
relevance 」:與搜尋字詞的相關性。
|
partner |
string |
限制合作夥伴 ID 的結果並加上品牌資訊。 |
printType |
string |
僅限書籍或雜誌。
可接受的值如下:
- 「
all 」:所有音量內容類型。
- 「
books 」- 僅限書籍。
- 「
magazines 」- 僅限雜誌。
|
projection |
string |
限制系統只能將資訊傳回一組選定的欄位。
可接受的值如下:
- 「
full 」:包含所有音量資料。
- 「
lite 」-VolumeInfo 和 accessInfo 中包含部分欄位。
|
showPreorders |
boolean |
將其設為 true,即可顯示可預購的書籍。預設值為 false。
|
source |
string |
用於識別此要求來源的字串。 |
startIndex |
unsigned integer |
要傳回的第一個結果的索引 (從 0 開始)
|
要求主體
請勿透過此方法提供要求主體。
回應
如果成功的話,這個方法會傳回回應內文,其結構如下:
{
"kind": "books#volumes",
"items": [
volume Resource
],
"totalItems": (value)
}
資源名稱 |
值 |
說明 |
附註 |
kind |
string |
資源類型。 |
|
items[] |
list |
卷數清單。 |
|
totalItems |
integer |
找到的音量總數。如果結果已分頁,這個值可能會大於此回應中傳回的卷數。 |
|
歡迎試用!
您可以使用下方的 Explorer,針對即時資料呼叫這個方法,然後查看回應。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-08 (世界標準時間)。
[null,null,["上次更新時間:2024-11-08 (世界標準時間)。"],[[["\u003cp\u003eSearches for books based on a provided query string.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by criteria such as availability, format, language, and publication type.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over the number of results, sorting order, and specific data fields returned.\u003c/p\u003e\n"],["\u003cp\u003eCan be used to retrieve information about books, including volume details and access options.\u003c/p\u003e\n"],["\u003cp\u003eSupports pagination to handle large result sets.\u003c/p\u003e\n"]]],[],null,["# Volume: list\n\nPerforms a book search.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP Request\n\n GET https://www.googleapis.com/books/v1/volumes?q={search terms}\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|-------------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Required Parameters** |||\n| `q` | `string` | Full-text search query string. |\n| **Optional Parameters** |||\n| `download` | `string` | Restrict to volumes by download availability. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`epub`\" - All volumes with epub. |\n| `filter` | `string` | Filter search results. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`ebooks`\" - All Google eBooks. - \"`free-ebooks`\" - Google eBook with full volume text viewability. - \"`full`\" - Public can view entire volume text. - \"`paid-ebooks`\" - Google eBook with a price. - \"`partial`\" - Public able to see parts of text. |\n| `langRestrict` | `string` | Restrict results to books with this language code. |\n| `libraryRestrict` | `string` | Restrict search to this user's library. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`my-library`\" - Restrict to the user's library, any shelf. - \"`no-restrict`\" - Do not restrict based on user's library. |\n| `maxResults` | `unsigned integer` | Maximum number of results to return. Acceptable values are `0` to `40`, inclusive. |\n| `orderBy` | `string` | Sort search results. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`newest`\" - Most recently published. - \"`relevance`\" - Relevance to search terms. |\n| `partner` | `string` | Restrict and brand results for partner ID. |\n| `printType` | `string` | Restrict to books or magazines. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`all`\" - All volume content types. - \"`books`\" - Just books. - \"`magazines`\" - Just magazines. |\n| `projection` | `string` | Restrict information returned to a set of selected fields. \u003cbr /\u003e \u003cbr /\u003e Acceptable values are: - \"`full`\" - Includes all volume data. - \"`lite`\" - Includes a subset of fields in volumeInfo and accessInfo. |\n| `showPreorders` | `boolean` | Set to true to show books available for preorder. Defaults to false. |\n| `source` | `string` | String to identify the originator of this request. |\n| `startIndex` | `unsigned integer` | Index of the first result to return (starts at 0) |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n {\n \"kind\": \"books#volumes\",\n \"items\": [\n volume Resource\n ],\n \"totalItems\": (value)\n }\n\n| Property Name | Value | Description | Notes |\n|---------------|-----------|-------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | Resource type. | |\n| `items[]` | `list` | A list of volumes. | |\n| `totalItems` | `integer` | Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated. | |\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]