Google Play scraper in Python: search apps and save reviews
By the AxioAPI team · Published
A Google Play scraper that parses store pages yourself breaks whenever the page layout changes. This guide takes the other route: call a REST API from Python, get JSON, and keep only the part you care about, here a CSV of app reviews that grows with every run.

What you need
- An AxioAPI key, stored as the AXIOAPI_KEY environment variable.
- Python 3 with the requests package.
- A keyword or the package IDs of the apps you want to follow.
Find package IDs
Search by keyword and pick the market with gl and hl. Each result carries package_id, title, developer, rating, icon and store link. Installs and category are only in the app details endpoint.
curl -s "https://axioapi.com/api/v1/google-play/search?q=vpn&gl=us&hl=en&limit=10" \
-H "Authorization: Bearer $AXIOAPI_KEY"
Scrape Google Play reviews into a CSV
The script searches for apps, requests the reviews of each one and appends only the review IDs it has not saved before. fresh=true skips the 60 minute cache.
import csv
import os
import requests
API = "https://axioapi.com/api/v1/google-play"
HEADERS = {"Authorization": f"Bearer {os.environ['AXIOAPI_KEY']}", "Accept": "application/json"}
def get(path, **params):
res = requests.get(f"{API}/{path}", headers=HEADERS, params=params, timeout=60)
res.raise_for_status()
return res.json()["data"]
def save_reviews(package_ids, path="reviews.csv"):
seen = set()
if os.path.exists(path):
with open(path, newline="", encoding="utf-8") as f:
seen = {row["id"] for row in csv.DictReader(f)}
fields = ["id", "package_id", "rating", "date", "app_version", "text"]
new_file = not os.path.exists(path)
with open(path, "a", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=fields, extrasaction="ignore")
if new_file:
writer.writeheader()
for package_id in package_ids:
for review in get("reviews", id=package_id, gl="us", hl="en", limit=20, fresh="true")["reviews"]:
if review["id"] not in seen:
writer.writerow({**review, "package_id": package_id})
seen.add(review["id"])
if __name__ == "__main__":
apps = get("search", q="vpn", gl="us", hl="en", limit=5)["items"]
save_reviews([app["package_id"] for app in apps])
What the reviews endpoint covers
- Up to 20 reviews per request: the ones shown on the app page, not the full history.
- Each review has an ID, author, star rating, text, app version, date and the developer reply when there is one.
- To build a history, run the script on a schedule and let the CSV accumulate.
Keep costs and compliance in mind
Every request is billed, so run the job as often as you need and no more. Reviews contain names of real people: store only what you use, follow the data protection laws that apply to you and respect Google's terms.
Frequently asked questions
Can I scrape Google Play reviews with Python?
Yes. Call the reviews endpoint with requests and your API key. It returns JSON, so there is no HTML to parse.
How many reviews do I get per request?
Up to 20, taken from the app page. Run the job regularly to collect more over time.
Is this the official Google Play API?
No. The official Google Play Developer API works with apps in your own developer account. This guide reads public store data.