socialcrawl/
← All recipes

Watch app store ratings for your app and rivals

Poll a handful of app ids on a schedule and alert when a rating slips.

Python
import os, requests

H = {"x-api-key": os.environ["SOCIALCRAWL_API_KEY"]}
APPS = {"Spotify": "324684580", "Deezer": "292738169"}

for name, app_id in APPS.items():
    d = requests.get("http://datatrend.nl/v1/appstore/app", params={"id": app_id}, headers=H).json()["data"]
    print(f'{name:10} {d["rating"]:.2f} ★  ({d["rating_count"]:,} ratings)  v{d["version"]}')
    if d["rating"] and d["rating"] < 4.0:
        print(f"  ⚠ {name} has slipped below 4.0")
You'll need a key. It takes ten seconds and starts with 100 credits. Get a key