Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Show Package Metadata

view on GitHub

Show Package Metadata is available as a pgutil command, and will display the Metadata of a specified package.

Command Specification (CLI)

The packages metadata command is used to list the packages in a feed.

The --package and --version options are always required. The --feed option is required if there is no default feed configured.

Displaying a package's metadata requires the package (e.g. Newtonsoft.Json) and version (e.g. 13.0.3):

pgutil packages metadata --package="Newtonsoft.Json" --version=13.0.3 --feed=nuget-approved

Example Output:

Newtonsoft.Json 13.0.3
 Published: 3/8/2023 4:42:54 PM by jsmith
 Status: Remote
 Compliance: Compliant
 License: MIT

HTTP Request Specification

To show a package's metadata, simply GET to the URL following with a feed name, package identifiers, and an appropriate API Key.

GET /api/packages/«feed-name»/metadata?«package-identifiers»

Unless you use a purl, the parameters required will vary by feedtype.

HTTP Response Specification

A PackageMetadata (see PackageMetadata.cs) object will be returned on a successful 200 response. A 403 response indicates a missing, unknown, or unauthorized API Key.