Skip to content

Fix authentication for new Blink API (OAuth2 - Nov 2025)#38

Open
tpgal wants to merge 3 commits into
nayrk:masterfrom
tpgal:master
Open

Fix authentication for new Blink API (OAuth2 - Nov 2025)#38
tpgal wants to merge 3 commits into
nayrk:masterfrom
tpgal:master

Conversation

@tpgal
Copy link
Copy Markdown

@tpgal tpgal commented Nov 27, 2025

Problem

The original script stopped working in mid-October 2024 due to Blink API changes.
The error "An app update is required" appeared on all login attempts.

Solution

This PR updates the script to use the new OAuth2 authentication endpoint.

Key Changes:

  • Migrated from API v4/v5 to OAuth2 endpoint (api.oauth.blink.com)
  • Added automatic token refresh mechanism
  • Added 2FA support via header

Testing

  • Tested on Windows 11 with PowerShell 5.1+
  • Successfully authenticates with 2FA
  • Downloads videos and thumbnails correctly
  • Token refresh working after multiple hours of execution

Fixes issues reported in October-November 2025 by multiple users.

Fixes authentication issues caused by Blink API changes in October 2025.

Changes:
   - Migrated from API v4/v5 to OAuth2 endpoint (api.oauth.blink.com)
   - Added automatic token refresh mechanism
   - Added 2FA support via header

Tested and working as of November 2025.
Resolves the "An app update is required" error.
The homescreen endpoint is now used, providing all required info. The camera/usage endpoint is no longer needed.
@tpgal
Copy link
Copy Markdown
Author

tpgal commented Nov 30, 2025

Solved issue with thumbnails download, replacing the camera/usage endpoint by the homescreen endpoint, which provides the right full path to download the thumbnails.

@will-k-2
Copy link
Copy Markdown

will-k-2 commented Dec 3, 2025

@tpgal Getting login failed as of today when trying to use are you getting the same error?

@sutty550e
Copy link
Copy Markdown

sutty550e commented Dec 3, 2025

By way of an extra datapoint, I too get login failed today, but not yesterday.

@tpgal
Copy link
Copy Markdown
Author

tpgal commented Dec 3, 2025

I'm sorry hearing that, unfortunately I'm on a business trip and won't be able to test it until the weekend. Hope Amazon hasn't decided to change it once again...

@sutty550e
Copy link
Copy Markdown

No rush, I'm grateful for anything you can do, and whenever you can do it. Until 2 days ago, mine hadn't been working for a year, so it was a pleasant surprise to have it working at all. Odd that it only worked for a day, but I suppose they changed things again.

Just so you know, I did not get locked out from 'overuse', which I recall could be a thing, going back a good while in this project. I only logged in about three times, and only for a maximum of 10 minutes per time. Then, I tried again, a day later to check, after I got the update from @will-k-2 that he could not.

@tpgal
Copy link
Copy Markdown
Author

tpgal commented Dec 5, 2025

It looks like Amazon has done it again! I have the same issue, and we're not alone:
fronzbot/blinkpy#1147
It will require futher analysis, let's hope it won't be as complex as last time and will just be a minor change...

Updated the login procedure with the new implemented PKCE authrization code flow.
@tpgal
Copy link
Copy Markdown
Author

tpgal commented Dec 8, 2025

I have updated once again the login procedure of the script, following the same approach as in blinkpy #1149. Kudos to @KiraPC for his great work, and in record time!!
The script works again, and at least after the first login, you will receive an automatic email from The Blink Team informing you that a new device has been used to sign into your account (an iPhone 15 Pro! ;-), just ignore that message.

@sutty550e
Copy link
Copy Markdown

Worked a treat for me. Thanks for your efforts, and also to @KiraPC.

@tpgal
Copy link
Copy Markdown
Author

tpgal commented Dec 15, 2025

@nayrk The script keeps working, and hopefully Amazon will not change the login procedure for a while. Could you please review this PR, and if it is fine, merge it into the main branch ?

@KDN0691
Copy link
Copy Markdown

KDN0691 commented Apr 14, 2026

Thanks to all, it ill run very fine. But what ist not clear for me, in my cloud are more than 500 videos, but only 109 are downloaded by the first request... My be the others will be loaded be the next time...

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.

4 participants