# Changelog of ViewStats Scraper - YouTube Channel Stats & Search (`haketa/viewstats-scraper`) Actor

- **URL**: https://apify.com/haketa/viewstats-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/haketa/viewstats-scraper.md

## Changelog

### 1.1.0 — 2026-11-01

- **New fields: `category` + `categoryName`.** Every channel now carries its YouTube genre (numeric `category` id plus a readable `categoryName` such as `Music`, `Gaming`, `Entertainment`, `News & Politics`). This value is returned on ViewStats search objects but dropped by the channel-detail endpoint, so it is backfilled during enrichment — exactly like `description` — and the dataset overview table gains a **Category** column for one-click genre filtering.
- **Verified a fresh production run.** A 10-keyword search (`music`, `gaming`, `news`, `tech`, `food`, `sports`, `beauty`, `vlog`, `comedy`, `education`) returned **100 unique channels with 0 duplicates in ~252s**. Core/identity coverage was excellent: `channelId` 100%, `displayName` 100%, `subscriberCount` 100%, `viewCount` 100%, `videoCount` 100%, `youtubeUrl` 100%, `handle` 98%, `viewstatsUrl` 98%, `globalSubscribersRanking` 96%, `verified`/`vpv90` 97%. No value bugs (`[object Object]`, scheme-less URLs, wrong types).
- **Confirmed pagination behaviour.** ViewStats' `search/advanced` endpoint reports `totalPages=1` and returns up to ~10 channels per keyword; the scraper walks pages correctly and stops at the real ceiling, then de-duplicates and trims to `maxResultsPerQuery`. Scale breadth by adding more keywords and/or channel handles.
- **Documented data-dependent fields honestly.** `country` (85%), `countrySubscriberRanking` (82%), ranking fields and `description` (92%) are populated only when ViewStats has them — verified live against the API, not scraper bugs. Auto-generated YouTube topic channels (e.g. the "Music" channel) legitimately report `viewCount`/`videoCount` of `0` and carry no `@handle`, so `viewstatsUrl` is correctly `null` for them.
- **Refreshed the README** to the current gold standard: output example and field reference now match the live fields (including the new `category`/`categoryName`), pagination/scale note corrected to reflect the ~10-per-keyword search ceiling, and the FAQ expanded.

### 1.0.0 — 2026-10-14

- Initial release. Scrapes ViewStats YouTube channel search results and channel details over pure HTTP (no browser): subscribers, views, video count, global/country/category rankings, `vpv90`, verification, country, avatar/banner, plus optional `averages` (views, subscriber gains, estimated USD revenue, upload frequency) and `longsAndShorts` breakdowns via `includeStats`. Decrypts ViewStats' AES-GCM-encrypted API responses and refreshes the bot-prevention token from the live bundle.
