Wolumin: lista
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przeprowadza wyszukiwanie książki.
Wypróbuj
Żądanie
Żądanie HTTP
GET https://www.googleapis.com/books/v1/volumes?q={search terms}
Parametry
Nazwa parametru |
Wartość |
Opis |
Parametry wymagane |
q |
string |
Pełnotekstowy ciąg zapytania wyszukiwania.
|
Parametry opcjonalne |
download |
string |
Ogranicz do wolumenów według dostępności pobierania.
Akceptowane wartości to:
- „
epub ” – wszystkie woluminy z plikami epub.
|
filter |
string |
Filtrowanie wyników wyszukiwania.
Akceptowane wartości:
- „
ebooks ” – wszystkie e-booki Google.
- „
free-ebooks ” – e-book Google z widocznością tekstu w całości.
- „
full ” – użytkownicy mogą wyświetlać cały tekst.
- „
paid-ebooks ” – e-book Google z ceną.
- „
partial ” – część tekstu jest widoczna dla wszystkich.
|
langRestrict |
string |
Ogranicz wyniki do książek z tym kodem języka.
|
libraryRestrict |
string |
Ogranicz wyszukiwanie do biblioteki tego użytkownika.
Akceptowane wartości:
- „
my-library ” – ograniczenie do biblioteki użytkownika, dowolnej półki.
- „
no-restrict ” – nie ograniczaj dostępu na podstawie biblioteki użytkownika.
|
maxResults |
unsigned integer |
Maksymalna liczba wyników do zwrócenia.
Akceptowane wartości to od 0 do 40 (włącznie).
|
orderBy |
string |
Sortuj wyniki wyszukiwania.
Akceptowane wartości to:
- „
newest ” – ostatnio opublikowane.
- „
relevance ” – trafność w stosunku do wyszukiwanych haseł.
|
partner |
string |
Ograniczanie i oznaczanie wyników za pomocą identyfikatora partnera.
|
printType |
string |
Ogranicz dostęp do książek lub czasopism.
Akceptowane wartości:
- „
all ” – wszystkie typy treści objętościowych.
- „
books ” – tylko książki.
- „
magazines ” – tylko czasopisma.
|
projection |
string |
Ograniczenie zwracania informacji do zbioru wybranych pól.
Akceptowane wartości:
- „
full ” – obejmuje wszystkie dane o wolumenie.
- „
lite ” – zawiera podzbiór pól w polachVolumeInfo i accessInfo.
|
showPreorders |
boolean |
Ustaw na Prawda, aby wyświetlać książki dostępne do zamówienia w przedsprzedaży. Wartość domyślna to fałsz.
|
source |
string |
Ciąg tekstowy identyfikujący źródło tego żądania.
|
startIndex |
unsigned integer |
Indeks pierwszego wyniku do zwrócenia (rozpoczyna się od 0)
|
Treść żądania
W przypadku tej metody nie podawaj treści żądania.
Odpowiedź
Jeśli operacja się powiedzie, metoda zwróci odpowiedź o tej strukturze:
{
"kind": "books#volumes",
"items": [
volume Resource
],
"totalItems": (value)
}
Nazwa właściwości |
Wartość |
Opis |
Uwagi |
kind |
string |
Typ zasobu. |
|
items[] |
list |
lista tomów; |
|
totalItems |
integer |
Łączna liczba znalezionych woluminów. Jeśli wyniki zostały podzielone na strony, może być ich więcej niż zwróconych w tej odpowiedzi. |
|
Wypróbuj
Użyj eksploratora poniżej, aby wywołać tę metodę w przypadku bieżących danych i wyświetlić odpowiedź.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-08 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-08 UTC."],[[["\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."]]