Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Google Play Books Search

Docs da API
https://api.sandbase.ai/v1/api/google-play/books

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

Preço
$0.00015USD / chamada
Método
POST
Resposta
JSON
Parâmetros
0 obrigatórios · 11 opcionais

Playground

Entrada
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
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Google Play$0.00015 por chamadaJSON
Google Play$0.00015 por chamadaJSON
Google Play$0.00015 por chamadaJSON
Google Play$0.00015 por chamadaJSON assíncrono
Google Play$0.00015 por chamadaJSON
Google Play$0.00015 por chamadaJSON assíncrono

Perguntas

FAQ

Como eu uso a API Google Play Books Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/google-play/books com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Google Play Books Search?

$0.00015 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Google Play Books Search aceita?

Nenhum parâmetro é obrigatório. Opcionais: hl (string), gl (string), q (string), chart (string), next_page_token (string) e section_page_token (string) e mais 5. A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Google Play Books Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Google Play ou de uma chave de API?

Não. Google Play Books Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Google Play separadamente.