Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Google Play Books Search

Документация API
https://api.sandbase.ai/v1/api/google-play/books

Search Google Play ebooks and audiobooks by keyword or browse categories and charts.

Цена
$0.00015USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 11 необязательных

Песочница

Ввод
Storefront language, such as en, de, or zh-TW. Maximum 32 characters.
Two-letter country code.
At most 2,048 UTF-8 bytes.
Chart identifier such as topselling_free, topselling_paid, or topgrossing. Excludes q and all pagination selectors. Apps and games charts require phone or an omitted store_device.
Use the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token.
Continue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart.
Open a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart.
Native book category identifier, such as coll_1689 for children's books. Excludes q.
Children's age range. Requires books_category=coll_1689.
1 for free books or 2 for paid books. Requires q.
Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Google Play Books Search API

Returns Google Play book results for a keyword, grouped into sections such as series, ebooks and audiobooks. You send a search term in q, or you browse with books_category or chart. Each item has a title or author, a link and price data.

Use cases

  • Compare ebook and audiobook prices for a title across the Google Play storefront.
  • List every book in a series, such as Dune, with its position in the series.
  • Build a catalog of a author's works with links to each Google Play page.
  • Track discounts by comparing extracted_original_price with extracted_price on audiobooks.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google-play/books" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "Dune"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
agestringNoChildren's age range. Requires books_category=coll_1689.
books_categorystringNoNative book category identifier, such as coll_1689 for children's books. Excludes q.
chartstringNoChart identifier such as topselling_free, topselling_paid, or topgrossing. Excludes q and all pagination selectors. Apps and games charts require phone or an omitted store_device.
glstringNoTwo-letter country code.
hlstringNoStorefront language, such as en, de, or zh-TW. Maximum 32 characters.
next_page_tokenstringNoUse the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token.
priceintegerNo1 for free books or 2 for paid books. Requires q.
qstringNoAt most 2,048 UTF-8 bytes.
section_page_tokenstringNoContinue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart.
see_more_tokenstringNoOpen a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart.
timeoutnumberNoOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "organic_results": [
    {
      "items": [
        {
          "extension": "8 items",
          "format": "Ebook series",
          "link": "https://play.google.com/store/books/series?id=av3XFwAAABC86M",
          "product_id": "av3XFwAAABC86M",
          "thumbnail": "https://play-lh.googleusercontent.com/DO9D9mcmQJ8OXHXGOFyfQWRKgzoTlKbw1Epd4kHRZm…",
          "title": "Dune"
        }
      ],
      "see_more_link": "https://play.google.com/store/books/collection/cluster?gsr=SlBqLGhVcU5uUGxzV1VxN…",
      "see_more_token": "eyJ2Ijox…",
      "title": "Series"
    }
  ]
}

Response fields

FieldMeaning
organic_results[]One result group. Each group has a title such as Series, Ebooks or Audiobooks, and a list of items.
organic_results[].items[].titleName of the item. Series items include it; book items in this response do not.
organic_results[].items[].author / categoryAuthor name and genre label of a book or audiobook.
organic_results[].items[].linkGoogle Play URL for the item. Book and audiobook links contain an id query value.
organic_results[].items[].product_idID of a series item. It also appears in the series link.
organic_results[].items[].format / extensionformat names the item type, such as Ebook series. extension gives extra detail, such as 8 items for a series or Book 1 for an ebook.
organic_results[].items[].price / extracted_price / currencyPrice as display text, as a number, and its currency code, such as $9.99, 9.99 and USD.
organic_results[].items[].original_price / extracted_original_priceList price before a discount, as text and as a number. Audiobooks show it next to a lower extracted_price.
organic_results[].section_page_token / see_more_tokenTokens for loading more items in this group or opening its full collection.
organic_results[].see_more_linkGoogle Play URL of the full collection for this group.

Notes

  • Pass section_page_token or see_more_token back with the same parameters to continue one group. Do not combine it with chart.
  • q excludes chart and books_category. price (1 free, 2 paid) requires q.
  • age works only with books_category=coll_1689.
  • Not every item has every field. Series items have no price, and some books have no description.

Pricing

$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Google Play$0.00015 за запросJSON
Google Play$0.00015 за запросJSON
Google Play$0.00015 за запросJSON
Google Play$0.00015 за запросАсинхронный JSON
Google Play$0.00015 за запросJSON
Google Play$0.00015 за запросАсинхронный JSON

Вопросы

FAQ

Как использовать API Google Play Books Search?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/google-play/books, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Google Play Books Search?

$0.00015 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Google Play Books Search?

Параметры не требуются. Необязательные: hl (string), gl (string), q (string), chart (string), next_page_token (string) и section_page_token (string) и еще 5. В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Google Play Books Search?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Google Play или API key?

Нет. Google Play Books Search работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Google Play.