UniFi.NET

UniFi.NET

A .NET SDK for the Ubiquiti UniFi Network API and Site Manager API. If you run Ubiquiti UniFi gear and write .NET, this is the library that saves you from hand-rolling another HTTP client. It wraps both the local Network API (running on your Cloud Gateway, UDM, or self-hosted controller) and Ubiquiti's cloud Site Manager API behind a clean, strongly-typed interface.

What it covers

  • UniFi.Net.Network — clients, devices, networks, firewall rules, WLANs, port profiles, and the rest of the Network API surface

  • UniFi.Net.SiteManager — site enumeration and management across multiple controllers via Ubiquiti's cloud API

  • Strongly-typed models, async-first, dependency-injection friendly

Why I built it

Honestly? I can't fully remember. I think the original idea was to get fine-grained control over firewall rules. It turned out the API didn't actually support firewall rules at the time, so the whole premise collapsed before I'd really started. I built it anyway. It was a fun project.

Get it