Reproducible Python script that queries the public, unauthenticated GET https://api.apify.com/v2/store endpoint without search, sortBy, or fields deprecated on November 15, 2026.
pip install -r requirements.txt
python analyze_store.py --max-items 15000 --delay 0.6
ls out/- Uses only
GET https://api.apify.com/v2/store(no API token required). - Enforces
--delay >= 0.5seconds between sequential requests,--max-items <= 15000on a single query, and keepsoffset + limitinside that window, so--max-itemsvalues below15000do not overshoot it. - Retries
429,500,502,503and504responses up to three times with a backoff, so one transient error does not end the run. - If a request still fails,
raise_for_status()stops the run before any output is written, so the next run starts again from the first page. - Reads review counts and ratings from
stats.actorReviewRating/stats.actorReviewCount, and treatsstats.totalUsers30Daysas optional. - Keeps
isWhiteListedForAgenticPaymentsandnoticeas missing values when the API omits them, and reportsagentic_pctover the rows that carry the field (agentic_present_count). Actors withoutcurrentPricingInfo.pricingModelare counted asUNKNOWN, notFREE. author_concentration.csvincludesactors_with_30d, the number of an author's Actors that carriedstats.totalUsers30Days, so a partial sum (users_30d_sum) can be told apart from a complete one.- Writes
store_sample.csv,author_concentration.csv,category_summary.csv,summary.json, and two PNG charts toout/. - After November 15, 2026,
categoriesreturns new category IDs assigned from a larger list, socategory_summary.csvand the category rows instore_sample.csvare not comparable with runs made before the switch (see the API changelog of 2026-10-30).
MIT. See LICENSE.