> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stophy.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Play search

> Read a Google Play apps search page with the search in q as JSON with the google-play-search parser. $0.001 per 10 apps.

Reads a Google Play apps search page with the search in q and returns a list of products as JSON.

## Make a request

Send the page's URL to [scrape](https://docs.stophy.dev/api-reference/endpoint/scrape.md) with a `json` format that names the parser. Get an API key in the [Quickstart](https://docs.stophy.dev/quickstart).

```bash cURL theme={null}
curl -X POST https://api.stophy.dev/v1/scrape \
  -H "Authorization: Bearer $STOPHY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://play.google.com/store/search?q=meditation&c=apps","formats":[{"type":"json","parser":"google-play-search"}]}'
```

```typescript TypeScript theme={null}
const response = await fetch("https://api.stophy.dev/v1/scrape", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.STOPHY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    url: "https://play.google.com/store/search?q=meditation&c=apps",
    formats: [{ type: "json", parser: "google-play-search" }],
  }),
});
console.log(await response.json());
```

```python Python theme={null}
import os

import requests

response = requests.post(
    "https://api.stophy.dev/v1/scrape",
    headers={"Authorization": f"Bearer {os.environ['STOPHY_API_KEY']}"},
    json={
        "url": "https://play.google.com/store/search?q=meditation&c=apps",
        "formats": [{"type": "json", "parser": "google-play-search"}],
    },
)
print(response.json())
```

## Read the response

The parser's data is in `data.json`. Its fields include `results`, `cursor`, `page` and `total`. This sample is cut to the first items.

```json theme={null}
{
  "success": true,
  "data": {
    "json": {
      "results": [
        {
          "id": "com.spotlightsix.zentimerlite2",
          "url": "https://play.google.com/store/apps/details?id=com.spotlightsix.zentimerlite2",
          "title": "Insight Timer - Meditation App",
          "brand": "Insight Network Inc",
          "description": "The world’s most popular wellness app.",
          "price": {
            "amount": 0,
            "currency": "USD"
          },
          "originalPrice": null,
          "rating": 4.698212,
          "reviewCount": null,
          "availability": null,
          "images": [],
          "categories": [
            "Health & Fitness"
          ],
          "seller": {
            "id": null,
            "name": "Example user",
            "handle": null,
            "url": null,
            "avatarUrl": null
          },
          "genre": "Health & Fitness",
          "installsText": "10,000,000+",
          "installsMin": 10000000,
          "iconUrl": "https://play-lh.googleusercontent.com/H7MMtGtHuKqoT73wpfXXuqBgufaw3k03jUG58cqwJ1KITPU6nY8c1cvdAYCNcZY7xRwKwi-G3W6yltje3…"
        }
      ],
      "cursor": null,
      "page": null,
      "total": null
    }
  }
}
```

## Options

Send options in the `options` object of the `json` format.

| Option | What it does |
| - | - |
| `country` | ISO 3166-1 alpha-2 country code, e.g. us. Any case is accepted. |
| `language` | BCP 47 language tag, e.g. en or pt-BR. Any case is accepted. |
| `limit` | Return at most this many apps. You pay \$0.001 for each 10 returned. |

## Price

\$0.001 per 10 apps. See [Pricing](https://docs.stophy.dev/account/pricing.md).

## Limits and errors

* The URL must be a Google Play apps search page with the search in q. Any other URL fails with `invalidRequest`.
* The answer comes back in `data.json`. If the page cannot be read, the call fails with an error code from [Errors](https://docs.stophy.dev/api-reference/errors.md).

## Related

* [Pre-built parsers](https://docs.stophy.dev/scrape/prebuilt-parsers) lists every parser.
* [Scrape](https://docs.stophy.dev/scrape/overview) has the options every scrape takes.
* [Google Play app](https://docs.stophy.dev/scrape/prebuilt-parsers/apps/google-play-app.md)
* [Google Play reviews](https://docs.stophy.dev/scrape/prebuilt-parsers/apps/google-play-reviews.md)
* [Google Patents](https://docs.stophy.dev/scrape/prebuilt-parsers/web/google-patents.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.