Call it
curl https://api.peume.com/v1/call/google-play-browse-ebooks \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"q": "your q",
"hl": "your hl"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-play-browse-ebooks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"q": "your q",
"hl": "your hl"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-play-browse-ebooks",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"q": "your q",
"hl": "your hl"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-play-browse-ebooks.
Parameters
qstringThe query you want to search in Google Play Books Store, such as a book title or author. Google also usually accepts ISBN numbers like `9780593135211` if there is an exact match, and if dashes and spaces are excluded.
hlstringThe language to use for the Google Play search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish).
next_page_tokenstringThe next page token. It is used for retrieving the next page results. It shouldn't be used with the `section_page_token`, `see_more_token`, and `chart` parameters.
glstringThe country to use for the Google Play search. It's a two-letter country code. (e.g., `us` (default) for the United States, `uk` for United Kingdom, or `fr` for France). You can find the full list of Google Play country availability here: Google Play Countries. Afterwards, head to the Google countries page page for a two-letter country code.
pricestringSorting items by price. It should be used only in combination with the `q` parameter. It can be set to: `1` - Free `2` - Paid
books_categorystringThe books store category. See the Google Play Store's book categories for a full list.
see_more_tokenstringThe see more token used for retrieving the pagination results from individual sections It is usually found in next page results. It shouldn't be used with the `section_page_token`, `next_page_token`, and `chart`, parameters
section_page_tokenstringThe section page token used for retrieving the pagination results from individual sections. This parameter is a safer version of `see_more_token`, and is found in every row you can paginate into. It shouldn't be used with the `next_page_token`, `see_more_token`, and `chart` parameters
chartstringShowing top charts. It can return up to `50` results. Each store contains different charts which require different values for retrieving results. To get the value of a specific chart you can use our Google Play Books Store API JSON output: `chart_options[index].value` (e.g. `chart=topselling_free`). It shouldn't be used with the `section_page_token`, `see_more_token`, and `next_page_token` parameters
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
agestringAge subcategory. `age` works, and should only be used with `books_category=coll_1689` (Children's books) It can be set to: `AGE_RANGE1` - Ages up to 5 `AGE_RANGE2` - Ages 6-8 `AGE_RANGE3` - Ages 9-12 The default value for `age` is: - All ages up to 12
