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
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

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

Google Play Books Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/google-play/books に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Google Play Books Search API の料金はいくらですか?

1回あたり $0.00015、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Google Play Books Search API はどのパラメータを受け付けますか?

必須パラメータはありません。 任意: hl (string), gl (string), q (string), chart (string), next_page_token (string) と section_page_token (string) と他 5 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Google Play Books Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Google Play の開発者アカウントまたは API key は必要ですか?

いいえ。Google Play Books Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Google Play の API アクセスを別途申請する必要はありません。