NuGet

NuGet

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect NuGet to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Track adoption of .NET libraries over time: package metadata, per-version download counts, and publish/delete events for the NuGet packages you care about.

The public NuGet V3 API allows anonymous read access, so no API key is needed. Enter the package IDs you want to track, separated by commas or new lines — e.g. Newtonsoft.Json, Serilog.

Configuration

OptionTypeRequired
Package IDstextareaYes

Linking NuGet to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select NuGet
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
packages

One row per tracked package from NuGet search, including the total download count and verification status. Download totals are re-polled on every sync. Unlisted packages are hidden from NuGet search and skipped

Full refresh
package_versions

One row per version of each tracked package from the NuGet registration index, with per-version download counts merged in from search

Full refresh
catalog_events

Publish, edit, and delete events for the tracked packages from the append-only NuGet catalog. The first sync walks the full nuget.org catalog (tens of thousands of pages) and can take several hours; incremental syncs afterwards only read new catalog pages

Incremental, Full refreshcommit_timestamp