hlstring
Storefront language, such as en, de, or zh-TW. Maximum 32 characters.
默认值:"en"
https://api.sandbase.ai/v1/api/google-play/booksSearch Google Play ebooks and audiobooks by keyword or browse categories and charts.
您的输出将显示在这里
完成输入,然后点击运行。
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.
extracted_original_price with extracted_price on audiobooks.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.
| Name | Type | Required | Description |
|---|---|---|---|
age | string | No | Children's age range. Requires books_category=coll_1689. |
books_category | string | No | Native book category identifier, such as coll_1689 for children's books. Excludes q. |
chart | string | No | 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. |
gl | string | No | Two-letter country code. |
hl | string | No | Storefront language, such as en, de, or zh-TW. Maximum 32 characters. |
next_page_token | string | No | Use the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token. |
price | integer | No | 1 for free books or 2 for paid books. Requires q. |
q | string | No | At most 2,048 UTF-8 bytes. |
section_page_token | string | No | Continue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart. |
see_more_token | string | No | Open a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart. |
timeout | number | No | 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 cal |
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"
}
]
}
| Field | Meaning |
|---|---|
organic_results[] | One result group. Each group has a title such as Series, Ebooks or Audiobooks, and a list of items. |
organic_results[].items[].title | Name of the item. Series items include it; book items in this response do not. |
organic_results[].items[].author / category | Author name and genre label of a book or audiobook. |
organic_results[].items[].link | Google Play URL for the item. Book and audiobook links contain an id query value. |
organic_results[].items[].product_id | ID of a series item. It also appears in the series link. |
organic_results[].items[].format / extension | format 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 / currency | Price 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_price | List 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_token | Tokens for loading more items in this group or opening its full collection. |
organic_results[].see_more_link | Google Play URL of the full collection for this group. |
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.description.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
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",
"gl": "us",
"hl": "en"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
hlstringStorefront language, such as en, de, or zh-TW. Maximum 32 characters.
默认值:"en"
glstringTwo-letter country code.
默认值:"us"
qstringAt most 2,048 UTF-8 bytes.
chartstringChart 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.
next_page_tokenstringUse the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token.
section_page_tokenstringContinue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart.
see_more_tokenstringOpen a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart.
books_categorystringNative book category identifier, such as coll_1689 for children's books. Excludes q.
agestringChildren's age range. Requires books_category=coll_1689.
可选值:AGE_RANGE1, AGE_RANGE2, AGE_RANGE3
priceinteger1 for free books or 2 for paid books. Requires q.
timeoutnumberOptional 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 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| 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 |
问题
向 https://api.sandbase.ai/v1/api/google-play/books 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.00015,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
无需参数。 可选:hl (string), gl (string), q (string), chart (string), next_page_token (string) 和 section_page_token (string) 以及另外 5 项。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Google Play Books Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Google Play API 访问权限。