How to build a list of app publishers in a category

From a category to a ranked list of the developers who matter in it, with a short Python script.

Start from the apps

Page through a category with an install floor and collect the developer of every app. The developers with the most installs in the category rise to the top.

import os, collections, requests

H = {"X-API-Key": os.environ["API_KEY"]}
total = collections.Counter()
for page in range(1, 11):
    r = requests.get("https://apksphere.com/api/v1/search", headers=H, timeout=60,
                     params={"category": "FINANCE", "min_installs": 100000,
                             "per": 100, "page": page}).json()
    for a in r["results"]:
        total[a["developer"]["name"]] += a["installs"]["min"] or 0
    if page >= r["pages"]:
        break
for name, n in total.most_common(25):
    print(f"{n:>15,}  {name}")

Enrich it

For each developer on the list, /developer?id=… adds the full portfolio and the website. On the Business plan the same call adds contact details.