NuGet API guide

nuget.org

Search NuGet for .NET packages, include prereleases when needed, and review publication dates and listing status across a package’s version history.

Actions and inputs

nuget search

Find .NET packages by keyword and optionally include prereleases.

Inputs Search query, optional result limit and prerelease setting

nuget package

View a package’s version history, including publication dates and listing status.

Inputs Package ID

Package releases

Create

Upload a new package release on NuGet.org for a package you own or administer.

Inputs Package file and publish confirmation

Read

Review a release and its listing status on the package page.

Inputs Package ID and version

Update

Deprecate a version you administer and point users to a replacement; publish a new version to change package contents.

Inputs Package ID, version, deprecation reason, and optional replacement

Delete

Unlist a version you administer to hide it from search; it remains installable by exact version.

Inputs Package ID, version, and unlisting confirmation