Skip to main content
All providers

NuGet

Developer

api.nuget.org

.NET package metadata from nuget.org: the registration index for a package and full-text search.

Capabilities (15)

GET /v1/data/nuget/autocomplete1 credit

Returns a short array of package ids that begin with the typed prefix, plus the total number of matches: the data behind nuget.org's search box suggestions.

qskip?take?prerelease?packageType?
GET /v1/data/nuget/catalog-entry1 credit

Returns the permalinked catalog leaf for one published version: the complete nuspec as JSON plus packageEntries (every file inside the .nupkg with its compressed and uncompressed size), packageHash and hash algorithm (SHA512), packageSize, licenseExpression, minClientVersion, dependency groups and created/lastEdited/published timestamps and verbatimVersion.

commitnameversion
GET /v1/data/nuget/catalog-index1 credit

Returns the root of nuget.org's append-only change log: the total commit count and one entry per catalog page, each with the page URL and the commit timestamp it ends at, newest last.

No parameters
GET /v1/data/nuget/catalog-page1 credit

Returns one page of the change log: up to ~2,750 items, each a package id, version, commit timestamp and type (PackageDetails for a publish or edit, PackageDelete for a removal) with a permalink to that version's catalog entry.

page
GET /v1/data/nuget/gallery-search1 credit

The search index behind the nuget.org website: returns totalHits plus documents carrying owners, verified flag, created/published/lastEdited timestamps, listed flag, package hash and file size, flattened dependencies, target frameworks and a Vulnerabilities array, and, unlike the standard search, it can be sorted and run with no query at all.

q?skip?take?sortBy?prerelease?packageType?ignoreFilter?countOnly?luceneQuery?
GET /v1/data/nuget/package1 credit

Returns the registration document for a package: every published version grouped into pages, each normally inlined with its catalog entry (description, authors, license, tags, dependency groups per target framework), listed flag and publish date.

name
GET /v1/data/nuget/package-page1 credit

Returns one page of a paged registration: the full catalog entry for each of up to 128 versions in the lower..upper range, with dependency groups, license, tags and publish dates.

namelowerupper
GET /v1/data/nuget/package-version1 credit

Returns the registration leaf for one exact version: whether it is listed, when it was published, the .nupkg download URL, and the catalog entry URL holding that version's full metadata.

nameversion
GET /v1/data/nuget/repository-signatures1 credit

Returns whether every package on the feed is repository-signed and the certificates used to do it: subject, issuer, SHA-256 fingerprint and validity window.

No parameters
GET /v1/data/nuget/search1 credit

Searches nuget.org and returns ranked packages with id, latest version, description, authors, tags, total download count, verified-owner flag, project and icon URLs, and a per-version download breakdown.

qskip?take?prerelease?packageType?
GET /v1/data/nuget/search-diagnostics1 credit

Returns the search service's own health report: indexed document count (2.18 M registrations), the index's last commit timestamp, warm query duration, the deployment label and the age of its auxiliary download-count files.

No parameters
GET /v1/data/nuget/service-index1 credit

Returns nuget.org's resource directory: every V3 resource with its @type, version and base URL (search, autocomplete, registration, flat container, catalog, vulnerabilities, signatures and the HTML link templates).

No parameters
GET /v1/data/nuget/versions1 credit

Returns a plain ascending array of every version string published for a package, including prereleases and unlisted ones.

name
GET /v1/data/nuget/vulnerabilities1 credit

Returns the two-entry pointer document for nuget.org's vulnerability dataset: the timestamped URL of the current base snapshot and of the incremental update file, each with the time it was generated.

No parameters
GET /v1/data/nuget/vulnerability-base1 credit

Returns the full advisory dataset as an object keyed by lowercase package id, each value an array of advisories with a GitHub Advisory URL, a severity number (0 low to 3 critical) and the affected version range in NuGet interval notation such as "(, 13.0.1)".

snapshot

Response example

The shape of data from nuget/autocomplete (Package ID autocomplete). A sample, not live data.

JSON
{
  "@context": {
    "@vocab": "http://schema.nuget.org/schema#"
  },
  "totalHits": 592,
  "data": [
    "Newtonsoft.Json",
    "Newtonsoft.Json.Bson",
    "Microsoft.AspNetCore.Mvc.NewtonsoftJson",
    "Newtonsoft.Json.Schema",
    "Swashbuckle.AspNetCore.Newtonsoft",
    "NJsonSchema.NewtonsoftJson",
    "GraphQL.NewtonsoftJson",
    "Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson",
    "Refit.Newtonsoft.Json",
    "GraphQL.Client.Serializer.Newtonsoft",
    "… 10 more items"
  ]
}

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Package ID autocomplete

    Use NuGet (nuget) from fastCRW Pergamon, capability "Package ID autocomplete" (autocomplete). You have a partial or misremembered NuGet package id and want the candidate ids quickly, without full search result payloads. Example options: q=newtonsoft, take=20, skip=0. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nuget" and capability "autocomplete". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Catalog entry for one version

    Use NuGet (nuget) from fastCRW Pergamon, capability "Catalog entry for one version" (catalog-entry). You need the deepest metadata nuget.org holds for one exact version - its full file listing, SHA-512 hash or exact byte size - beyond what the registration leaf carries. Example options: commit=2023.03.08.07.46.17, name=newtonsoft.json, version=13.0.3. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nuget" and capability "catalog-entry". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Catalog index

    Use NuGet (nuget) from fastCRW Pergamon, capability "Catalog index" (catalog-index). You are following nuget.org's firehose and need to find which catalog page covers a given moment, or which page is currently the newest. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nuget" and capability "catalog-index". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Catalog page

    Use NuGet (nuget) from fastCRW Pergamon, capability "Catalog page" (catalog-page). You want the raw stream of what was published, edited or deleted on nuget.org in a time window, rather than searching the current state. Example options: page=23367. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "nuget" and capability "catalog-page". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

nuget.org serves this metadata through the documented V3 API. We pass it through and do not licence callers to rebuild the registry.

https://www.nuget.org/policies/Terms

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: NuGet Gallery

Cache: up to 3600s