Skip to content

Migrate NextCounts exact subscriber lookups to API v3 - #23

Open
RicksNext wants to merge 1 commit into
ReturnYouTubeSubscribers:mainfrom
RicksNext:migrate-nextcounts-api-v3
Open

RicksNext wants to merge 1 commit into
ReturnYouTubeSubscribers:mainfrom
RicksNext:migrate-nextcounts-api-v3

Conversation

@RicksNext

Copy link
Copy Markdown

Summary

  • Use the NextCounts v3 Studio realtime endpoint for exact counts. Accept data.subscribers only when success === true and the count is a non-negative integer.
  • Keep the hourly participant cache and bulk filtering. Show the Mixerno estimate and its source tooltip for unlisted channels and when a Studio count is unavailable or invalid.
  • Regenerate both userscripts and the store reviewer notes, and update the privacy disclosure. Requests use the public API with the existing manifest permissions.

NextCounts API documentation

Verification

npm run lint and npm run check passed with the existing Firefox for Android manifest warning. I inspected the built Chrome, Firefox, and Safari ZIPs for the retired host and checked their host permissions.

Mocked

  • npm run test:smoke passed for the unpacked Chromium extension and for the userscript in Chromium, Firefox, and WebKit with NextCounts v3 unavailable.
  • npm run test:e2e passed for participating and nonparticipating channels and for a realtime HTTP 503. It checks the source tooltip on both channel and watch pages, accepts zero, rejects invalid counts and non-success responses, and verifies directory reuse and filtering.
  • I injected a request to an arbitrary v2 path into the local build and confirmed that the regression guard failed. The E2E runner also handles Chromium's unpacked extension ID on Windows.

Live

I loaded the unpacked Chromium extension on fixture channel and watch pages with live, anonymous requests to NextCounts and Mixerno. The v3 directory and realtime endpoints returned HTTP 200 for Natop Shorts, and both pages displayed its YouTube Studio source tooltip. The official YouTube channel was absent from the directory and received a Mixerno estimate with its estimate tooltip on both pages. A separate request to that channel's Studio realtime endpoint returned HTTP 404.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant