Blink.NET
0.1.18
See the version list below for details.
dotnet add package Blink.NET --version 0.1.18
NuGet\Install-Package Blink.NET -Version 0.1.18
<PackageReference Include="Blink.NET" Version="0.1.18" />
<PackageVersion Include="Blink.NET" Version="0.1.18" />
<PackageReference Include="Blink.NET" />
paket add Blink.NET --version 0.1.18
#r "nuget: Blink.NET, 0.1.18"
#:package Blink.NET@0.1.18
#addin nuget:?package=Blink.NET&version=0.1.18
#tool nuget:?package=Blink.NET&version=0.1.18
Blink.NET
A .NET library (netstandard2.1) for accessing local Blink camera storage: fetching the list of clips, downloading and deleting videos. Works on runtimes that support .NET Standard 2.1 (for example .NET 6/7/8/9, .NET Core 3.0+).
Features
- Login/password authorization and PIN confirmation (2FA).
- Fetching dashboard data and the list of Sync Modules.
- Getting the list of clips from a module's local storage.
- Download a clip as a byte array.
- Delete a clip from the device.
- Configurable delay between requests to stabilize the API.
Installation
Via .NET CLI:
dotnet add package Blink.NET
Via PackageReference:
<ItemGroup>
<PackageReference Include="Blink.NET" Version="x.y.z" />
</ItemGroup>
Quick start
Simple scenario: authorize, confirm PIN (if required), download clips from a single Sync Module.
using Blink;
var client = new BlinkClient();
// Authorization (reauth:true emulates Blink app behavior)
var auth = await client.AuthorizeAsync(email: "you@example.com", password: "YourPassword", reauth: true);
// If the server requires client verification — enter PIN from SMS and confirm
if (auth.Account.IsClientVerificationRequired)
{
Console.Write("Enter PIN: ");
var code = Console.ReadLine();
await client.VerifyPinAsync(code);
}
// Get clips from a single Sync Module (throws if there are multiple modules)
var videos = await client.GetVideosFromSingleModuleAsync();
// Download the first clip as bytes
var first = videos.First();
byte[] bytes = await client.GetVideoBytesAsync(first);
File.WriteAllBytes($"{first.Id}.mp4", bytes);
Step-by-step usage
- Authorization and, if necessary, PIN confirmation:
var auth = await client.AuthorizeAsync(email, password, reauth: true);
if (auth.Account.IsClientVerificationRequired)
{
await client.VerifyPinAsync(pinFromSms);
}
- Get Sync Modules and clips:
var dashboard = await client.GetDashboardAsync();
var module = dashboard.SyncModules.Single(); // choose the desired module
var videos = await client.GetVideosFromModuleAsync(module);
- Download a clip and (optionally) delete it:
var data = await client.GetVideoBytesAsync(video);
await File.WriteAllBytesAsync($"{video.Id}.mp4", data);
// if needed — delete the clip from the device
// await client.DeleteVideoAsync(video);
Client settings
GeneralSleepTime (int, default 3500 ms) Small delay between requests. Without it the server may sometimes return an empty response. You can reduce or disable it if your environment is stable.
UniqueId (string) A unique identifier for the device/client that helps avoid repeated PIN verification. By default generated as a Guid.
Note: If you don't set this property, a new GUID will be generated each time you create a BlinkClient instance. This may lead to frequent requests for PIN verification, as the server treats each new GUID as a new device. To minimize the need for repeated PIN confirmations, it's recommended to set UniqueId to a consistent value (like a fixed GUID or a hash of your email) that remains the same across sessions.
Brief API overview
- Task<LoginResult> AuthorizeAsync(string email, string password, bool reauth = true)
- Task VerifyPinAsync(string code)
- Task<Dashboard> GetDashboardAsync()
- Task<IEnumerable<BlinkVideoInfo>> GetVideosFromModuleAsync(SyncModule module)
- Task<IEnumerable<BlinkVideoInfo>> GetVideosFromSingleModuleAsync()
- Task<byte[]> GetVideoBytesAsync(BlinkVideoInfo video, int tryCount = 3)
- Task DeleteVideoAsync(BlinkVideoInfo video)
See models and exceptions in Sources/Blink/Models and Sources/Blink/Exceptions.
Sample console application from the repository
There is a small example in Sources/Blink.ConsoleTest:
- Create a
secrets.jsonfile next toProgram.cswith your login/password:
{
"email": "you@example.com",
"password": "YourPassword"
}
- Build and run:
cd Sources/Blink.ConsoleTest
dotnet build
dotnet run
Requirements and limitations
- A Blink account and at least one Sync Module with local storage are required.
- Client verification (PIN via SMS) is often enabled. This is normal behavior.
- The Blink API can be unstable without pauses between requests — use
GeneralSleepTime.
Security
- Do not store login/password in the repository. Use user secrets, environment variables, or encrypted stores.
- Remove tokens and personal data from logs before publishing.
Building from source
dotnet build Sources/Blink/Blink.csproj
Disclaimer
This project is not affiliated with Blink, Amazon, or any other companies. Use at your own risk and in accordance with Blink's terms of service.
License
MIT — see LICENSE.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- System.Net.Http.Json (>= 9.0.8)
- System.Text.Json (>= 9.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.6 | 147 | 12/6/2025 |
| 1.0.5 | 204 | 10/19/2025 |
| 1.0.4 | 159 | 10/19/2025 |
| 1.0.3 | 170 | 10/19/2025 |
| 1.0.2 | 169 | 10/19/2025 |
| 1.0.1 | 173 | 10/19/2025 |
| 1.0.0 | 171 | 10/19/2025 |
| 0.1.18 | 184 | 10/1/2025 |
| 0.1.17 | 202 | 9/5/2025 |
| 0.1.16 | 308 | 4/10/2025 |
| 0.1.15 | 209 | 4/9/2025 |
| 0.1.14 | 207 | 11/10/2024 |
| 0.1.13 | 152 | 10/30/2024 |
| 0.1.12 | 163 | 10/30/2024 |
| 0.1.11 | 147 | 10/22/2024 |
| 0.1.10 | 173 | 9/27/2024 |
| 0.1.9 | 183 | 9/27/2024 |
| 0.1.8 | 182 | 9/25/2024 |
| 0.1.7 | 199 | 9/24/2024 |
| 0.1.6 | 181 | 9/24/2024 |
| 0.1.5 | 180 | 9/24/2024 |
| 0.1.4 | 179 | 9/24/2024 |
| 0.1.3 | 155 | 9/24/2024 |
| 0.1.2 | 204 | 9/24/2024 |
| 0.1.1 | 189 | 9/24/2024 |
| 0.1.0 | 190 | 9/16/2024 |