Blink.NET 0.1.18

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blink.NET" Version="0.1.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Blink.NET" Version="0.1.18" />
                    
Directory.Packages.props
<PackageReference Include="Blink.NET" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Blink.NET --version 0.1.18
                    
#r "nuget: Blink.NET, 0.1.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Blink.NET@0.1.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Blink.NET&version=0.1.18
                    
Install as a Cake Addin
#tool nuget:?package=Blink.NET&version=0.1.18
                    
Install as a Cake Tool

License NuGet NuGet version FuGet Build CodeFactor Repo size

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

  1. Authorization and, if necessary, PIN confirmation:
var auth = await client.AuthorizeAsync(email, password, reauth: true);
if (auth.Account.IsClientVerificationRequired)
{
        await client.VerifyPinAsync(pinFromSms);
}
  1. 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);
  1. 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:

  1. Create a secrets.json file next to Program.cs with your login/password:
{
  "email": "you@example.com",
  "password": "YourPassword"
}
  1. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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