# Changelog of YouTube Video Data Scraper (`googleapi/youtube-video-data-scraper`) Actor

- **URL**: https://apify.com/googleapi/youtube-video-data-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/googleapi/youtube-video-data-scraper.md

## Changelog

### \[Unreleased]

#### Added (NW12-A, 2026-11-21)

- Single injectable `src/api-run.js` control path for the default-off `youtube_data_api` mode: every API exit is an explicit labeled break, and the public watch path is reached only for a `public_mode` decision.
- Mandatory offline isolation regression suite (`tests/isolation.test.js`) covering all nine API-only scenarios plus KVS non-overwrite, with zero keyed calls, zero retries and zero fallback.
- Protected-env billing/quota attestation (`YOUTUBE_DATA_API_BILLING_CONFIRMED=true`) required before the first keyed request; provider quota/billing refusals are terminal allowlisted stops.
- Dataset schema aligned with the preserved full-description fix (no stale 500-character `shortDescription` cap).

#### Changed

- Added source-backed channel, subscriber, description-link, chapter, thumbnail-dimension, caption-track, and player-status fields to the primary video record.
- Added channel avatar variants and separate raw/player plus rendered view-count values; page date/view labels are scoped to the primary video renderer rather than recommendation content.
- Aligned the dataset schema with the output allowlist and recursively removed crawler/error envelope fields.
- Removed the unused diagnostic-row input and unsupported pagination/proxy input claims. Diagnostics remain in logs and the `OUTPUT` / `RUN_HEALTH` key-value summaries only.
- The current runtime reads public pages with bounded HTTPS requests and routes them through Apify Proxy when `proxyConfiguration` is enabled.
- Added offline parser, sanitizer, dataset-contract, and read-only saved-sample validation checks.

### \[2.0.1] - 2026-05-22

#### Fixed

- Fixed `ReferenceError: input is not defined` crash — renamed `rawInput` to `input` in `src/main.js` so `createRouter(input, state)` receives the validated input correctly

### \[1.0.0] - 2026-05-22

#### Added

- Initial release with YouTube data scraping
- Playwright-based scraping with proxy support
- Dataset schema validation
