# NuGet Package Metadata - Downloads, Versions & Deps (`digivibetech/nuget-package-metadata`) Actor

Look up .NET NuGet packages via the official nuget.org V3 API: downloads, versions, license, frameworks, dependencies, vulnerabilities, deprecation. Audit a .csproj or lock file. Email patterns removed. $0.0009 per package returned, no start fee.

- **URL**: https://apify.com/digivibetech/nuget-package-metadata.md
- **Developed by:** [DigiVibeTech](https://apify.com/digivibetech) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 package fetcheds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## NuGet Package Metadata - Downloads, Versions & Deps

**NuGet Package Metadata** — look up .NET NuGet packages via the official nuget.org V3 API: downloads, versions, license, frameworks, dependencies, vulnerabilities, deprecation.

> **Try it free:** press **Start** — the prefilled input runs a small real job (up to 20 × package fetched, about $0.018 in events). Apify's free plan includes monthly platform credit, so a first test costs you nothing. You can also set a maximum cost per run.

- **What you get:** `packageId`, `latestVersion`, `totalDownloads`, `licenseUrl`, `isVulnerable`, `maxSeverity`
- **Who it's for:** .NET developers, security teams and OSPOs
- **Price:** $0.0009 per package fetched
- **Data source:** Uses the official nuget.org V3 API; email-like patterns are removed.

### What is NuGet Package Metadata?

Look up **.NET NuGet packages** through the **official, documented NuGet V3 API** (the same API `dotnet restore` and Visual Studio use). One clean record per package:

- id, title, latest version (stable or prerelease), description, summary, tags, project URL

- **total downloads**, downloads of the selected version, newest versions with download counts, verified (reserved) prefix, owners, authors

- **license expression** / license URL, published date, listed flag (`licenseExpression` is null when a package publishes only a license URL; `licenseUrl` is set whenever the package declares a license, and for an expression without a URL it links to the official licenses.nuget.org page)

- **target frameworks + dependency groups** (dependency id + version range per framework)

- **known vulnerabilities** (severity + GitHub advisory URL) and **deprecation** (reasons, message, alternate package)

- **audit flags**: `isVulnerable` + `maxSeverity` (`none` when there is no known vulnerability), `isDeprecated`, and `isOutdated` when you check a pinned version and a newer one exists

- **project audit**: paste a `.csproj`, `Directory.Packages.props`, `packages.config` or `packages.lock.json`, and each direct package reference in it is checked at the version in the file (see Input for ranges and floating versions)

- **PACKAGES.csv**: one line per returned package (version, latest, license, downloads, vulnerable, severity, advisory, deprecated, alternate package, frameworks), plus counts in `SUMMARY`

Great for dependency audits, SBOM enrichment, license checks, tracking your own packages' downloads, or comparing .NET libraries.

### 📸 Real-run screenshots

Apify Console views of a 10 November 2026 cloud run of the example input below.

![Apify Console output table of the 10 November 2026 run: 8 NuGet packages with latest version, total downloads, license URL, vulnerable flag, max severity, deprecated flag, dependency count and published date](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/nuget-proof-01-console-run-output-l26.png)

![Browser JSON view of the Apify key-value store SUMMARY record of that run: 8 packages billed, 2 vulnerable, 3 deprecated, 2 outdated pins, 1 package not found and not charged, and the license mix](https://digivibetech.com/assets/apify/nuget/proof/02-console-summary.png)

![Apify Console run page of that run: status Succeeded, the status message with 8 packages returned and 1 not charged, and the run log](https://api.apify.com/v2/key-value-stores/8dx7mDMr71NbvtKdp/records/nuget-proof-03-console-run-log-l26.png)

### ⬇️ What data you get

One dataset item per result. Key fields:

| Field |
|---|
| `packageId` |
| `latestVersion` |
| `totalDownloads` |
| `licenseUrl` |
| `isVulnerable` |
| `maxSeverity` |
| `isDeprecated` |
| `dependencyCount` |
| `published` |
| `nugetUrl` |

### 🎯 Use cases

- Audit a .csproj or lock file for vulnerable or deprecated packages
- Check licenses and target frameworks in bulk
- Compare download counts of alternatives

### ▶️ How to use

1. Open the actor; the input is prefilled with a small real example.
2. Replace it with your own input and set `maxVersionsListed` to control the cost.
3. Press **Start**. Results appear in the **Output** tab (Overview view).
4. Download JSON, CSV or Excel, call the results via API, or schedule the actor.

### ⚙️ Input

| Field | Meaning |
|---|---|
| `packageIds` | NuGet ids, e.g. `Newtonsoft.Json`, `Serilog`, `Newtonsoft.Json@12.0.3` (check that exact version), or a nuget.org/packages URL |
| `projectFileText` | Optional: paste a `.csproj`, `Directory.Packages.props`, `packages.config` or `packages.lock.json`. Each direct reference is checked at its version; a range such as `[2.0.123, 3.0.0)` at its inclusive lower bound. Floating versions (`10.*`), exclusive ranges and MSBuild variables (`$(Ver)`) are checked at the latest version. Transitive and project entries in a lock file are skipped. An id that is also in `packageIds` is checked once, at the version from the file |
| `version` | Optional: one exact version for all packages (details for that version). Packages without that version go to `ERRORS`, not charged |
| `includePrerelease` | Latest may be a prerelease (default false). With false, a package that has only prerelease versions still returns its newest prerelease |
| `includeDependencies` | Add license expression, published date, frameworks and dependency groups (default true). With false these fields are empty |
| `maxVersionsListed` | Newest N versions with downloads (default 20, max 500) |
| `maxPackages` | Cap on billed packages per run (default 100, max 5000); the rest are listed in `ERRORS`, not charged |

#### Example input

```json
{
  "packageIds": [
    "Newtonsoft.Json@12.0.3",
    "Serilog",
    "WindowsAzure.Storage",
    "Microsoft.Azure.ServiceBus",
    "Microsoft.Data.OData",
    "System.Text.RegularExpressions@4.3.0",
    "System.Data.SqlClient",
    "Microsoft.AspNetCore.Http",
    "NoSuchPackage.DoesNotExist.Xyz"
  ],
  "maxVersionsListed": 5
}
```

This input returned 8 records and billed 8 packages. The last id does not exist, so it went to `ERRORS` and was not charged.

### ⬆️ Output

These are real records from a run of that input on 10 Nov 2026 (download counts change daily). Fields not shown here: `packageDescription`, `summary`, `authors`, `owners`, `tags`, `projectUrl`, `requireLicenseAcceptance`, `iconUrl`, `packageTypes`, `listed`, `registrationUrl`, `source` and `attribution`. Lists are cut where marked.

Vulnerable pinned version:

```json
{
  "recordType": "nuget-package",
  "packageId": "Newtonsoft.Json",
  "title": "Json.NET",
  "latestVersion": "13.0.4",
  "pinnedVersion": "12.0.3",
  "isOutdated": true,
  "licenseExpression": "MIT",
  "licenseUrl": "https://www.nuget.org/packages/Newtonsoft.Json/12.0.3/license",
  "totalDownloads": 9766150429,
  "selectedVersionDownloads": 772273545,
  "verifiedPrefix": true,
  "versionCount": 53,
  "versionsListed": [
    {"version": "12.0.3", "downloads": 772273545},
    {"version": "13.0.1", "downloads": 1643708935},
    {"version": "13.0.2", "downloads": 285033551},
    {"version": "13.0.3", "downloads": 1402779533},
    {"version": "13.0.4", "downloads": 316785408}
  ],
  "published": "2019-11-09T01:27:30.723+00:00",
  "targetFrameworks": [".NETFramework2.0", ".NETFramework3.5", ".NETFramework4.0", ".NETFramework4.5", ".NETPortable0.0-Profile259", ".NETPortable0.0-Profile328", ".NETStandard1.0", ".NETStandard1.3", ".NETStandard2.0"],
  "dependencyGroups": [
    {
      "targetFramework": ".NETStandard1.0",
      "dependencies": [
        {"id": "Microsoft.CSharp", "range": "[4.3.0, )"},
        {"id": "NETStandard.Library", "range": "[1.6.1, )"},
        {"id": "System.ComponentModel.TypeConverter", "range": "[4.3.0, )"},
        {"id": "System.Runtime.Serialization.Primitives", "range": "[4.3.0, )"}
      ]
    },
    {"...": "8 other framework groups"}
  ],
  "dependencyCount": 6,
  "vulnerabilities": [
    {"severity": "High", "advisoryUrl": "https://github.com/advisories/GHSA-5crp-9r3c-p9vr"}
  ],
  "isVulnerable": true,
  "maxSeverity": "High",
  "deprecation": null,
  "isDeprecated": false,
  "nugetUrl": "https://www.nuget.org/packages/Newtonsoft.Json/12.0.3",
  "fetchedAt": "2026-11-10T09:37:40.152686+00:00"
}
```

Deprecated package (`deprecation` field from the `WindowsAzure.Storage` record in the same run):

```json
{
  "packageId": "WindowsAzure.Storage",
  "latestVersion": "9.3.3",
  "isDeprecated": true,
  "deprecation": {
    "reasons": ["Legacy"],
    "message": "Please note, this package is obsolete as of 3/31/2023 and is no longer maintained or monitored. Microsoft encourages you to upgrade to the replacement package, Azure.Storage.Common, to continue receiving updates. Refer to our deprecation policy (https://aka.ms/azsdk/support-policies) for more details.",
    "alternatePackage": {"id": "Azure.Storage.Common", "range": "*"}
  }
}
```

Failed inputs (not charged) are in the key-value store record `ERRORS`. Counts (billed, not found, not processed, vulnerable, deprecated, outdated pins, license mix) are in `SUMMARY`, and one line per returned package is in `PACKAGES` (CSV).

### 💵 Pricing and cost estimate

**$0.0009 per package returned** (event `package-fetched`, charged once for each package saved to the dataset), **no start fee**. Packages that are not found, invalid ids, pinned versions that do not exist and other errors are listed in `ERRORS` and not charged.

The run stops before the next package when `maxPackages` packages (default 100) have been billed, when one more package would go over your *Max cost per run*, or when NuGet answers HTTP 403 or 429. The packages it did not get to are listed in `ERRORS` as not processed and are not charged.

#### Cost estimate

| Package fetcheds | Cost |
|---|---|
| 100 | $0.090 |
| 1,000 | $0.90 |
| 10,000 | $9.00 |

You pay only for these events: no subscription. Set **Maximum cost per run** in the run options and the actor stops before it is reached.

### 🔌 Integrations and API

Run it from **n8n, Make, Zapier, Clay** or any tool that can call an HTTP endpoint, connect a **webhook** to get notified when a run finishes, or let AI agents call it through the **Apify MCP server** (`mcp.apify.com`).

Run it and get the results in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/digivibetech~nuget-package-metadata/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"packageIds": ["Newtonsoft.Json", "Serilog"], "maxVersionsListed": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("digivibetech/nuget-package-metadata").call(run_input={"packageIds": ["Newtonsoft.Json", "Serilog"], "maxVersionsListed": 20})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

### ⚠️ Limits

- Data is returned as the source publishes it; fields the source leaves empty stay empty.
- Each run stops at `maxVersionsListed` results, so the cost stays predictable.

### 🛡️ Data source, privacy and legality

Uses the official nuget.org V3 API; email-like patterns are removed.

#### How it works / responsible use

- Uses only documented NuGet V3 resources: `SearchQueryService` (stats) and `RegistrationsBaseUrl` (package metadata). **No nuget.org web-page scraping, no .nupkg downloads, no login, no proxies.**
- Polite: at most 1 request per second per host, robots.txt checked (fail-closed), honest User-Agent with a contact URL; on HTTP 403 or 429 the run stops and lists the remaining packages in `ERRORS` (not charged) instead of working around limits.
- Email-address patterns are removed from all text fields and phone patterns from descriptive text only (pattern-based filtering, not a PII-free guarantee). Owner usernames and author names are returned as nuget.org publishes them (up to 40 names each). **Do not use this data for spam or unsolicited outreach** (NuGet.org Terms of Use, Code of Conduct).
- Data is subject to the NuGet.org Terms of Use. Not affiliated with or endorsed by Microsoft or the .NET Foundation; "NuGet" is used only to describe the data source.

#### Privacy and data retention

- What is stored: public package metadata, including the owner usernames and author names that publishers put on nuget.org. Email-address patterns are removed from all text fields and phone patterns from descriptive text only (pattern-based filtering, not a PII-free guarantee). If you paste a project file, only the package ids and versions found in it are used. The file itself is not saved anywhere except your run input.
- Where it is stored: in your own Apify run storage (dataset plus key-value store: SUMMARY, ERRORS, PACKAGES). Apify keeps it for your plan's data retention period, and you can delete it at any time. See Apify's privacy policy: https://apify.com/privacy-policy
- DigiVibeTech gets no copy of your results. Our general privacy policy: https://digivibetech.com/privacy/

### ❓ FAQ

#### How much does NuGet Package Metadata cost?

$0.0009 per package fetched. See the cost estimate table above. There is no monthly fee.

#### Can I try it for free?

Yes. Press Start with the prefilled input: it runs a small real job (up to 20 × package fetched, about $0.018 in events). Apify's free plan includes monthly platform credit, which covers a first test.

#### Is it legal to use NuGet Package Metadata?

Uses the official nuget.org V3 API; email-like patterns are removed. Use the results lawfully (terms of the source, GDPR where it applies). This is not legal advice.

#### Can I use it through the API or an MCP server?

Yes. Every run is available through the Apify API and the official client libraries, and AI agents can call the actor through the Apify MCP server. See Integrations and API above.

#### Something does not work. Where do I get help?

Open an issue on the Issues tab or use [digivibetech.com/support](https://digivibetech.com/support/). Include the run ID so we can reproduce it.

### 📝 Changelog

#### 20 Nov 2026 — listing refresh

- README, listing text and input form restructured to the DigiVibeTech Apify quality standard v1. No feature or price change.

#### 1.0 — builds 1.0.1 to 1.0.5

- First build 2026-10-14, latest build 2026-11-10 (5 successful builds).

### 🧩 More DigiVibeTech actors

- [Bulk Image Converter & Compressor - WebP, AVIF, JPEG, PNG](https://apify.com/digivibetech/bulk-image-converter-compressor)
- [Bulk QR & Barcode Generator - PNG, SVG, Label PDFs](https://apify.com/digivibetech/bulk-qr-barcode-generator)
- [PDF OCR to Markdown - Scanned PDF & Image to Text for RAG](https://apify.com/digivibetech/document-to-markdown-ocr)
- [Bulk WHOIS & DNS Lookup - Domain Expiry, RDAP, SPF, DMARC](https://apify.com/digivibetech/domain-whois-rdap-dns)

*Maintained by DigiVibeTech. Questions or bugs: use the Issues tab or [digivibetech.com/support](https://digivibetech.com/support/); we reply within 2–5 business days.*

# Changelog

This Actor's version history is a separate document: https://apify.com/digivibetech/nuget-package-metadata/changelog.md

# Actor input Schema

## `packageIds` (type: `array`):

NuGet package ids to look up (e.g. Newtonsoft.Json, Serilog). Add @version to check one exact version (e.g. Newtonsoft.Json@12.0.3). A nuget.org/packages/... URL is accepted too.

## `projectFileText` (type: `string`):

Paste a .csproj, Directory.Packages.props, packages.config or packages.lock.json. Each direct package reference is checked at the version in the file (a range at its inclusive lower bound; floating versions and $(Variables) at the latest version) and flagged when a newer version exists. Each package returned is charged as one package.

## `version` (type: `string`):

If set, return details (dependencies, vulnerabilities, deprecation) for this exact version of each package instead of the latest (e.g. 13.0.3). Packages without that version are listed in ERRORS and not charged.

## `maxVersionsListed` (type: `integer`):

How many of the newest versions (with download counts) to include in versionsListed (1-500).

## `maxPackages` (type: `integer`):

Cap on billed packages for this run (1-5000). Packages after the cap are listed in ERRORS as not processed and not charged.

## `includePrerelease` (type: `boolean`):

When true, the latest version may be a prerelease (e.g. 9.0.0-rc.1) and prerelease versions are listed.

## `includeDependencies` (type: `boolean`):

When true, add license expression, published date, target frameworks and dependency groups from the registration API (1-4 extra requests per package). False = faster, search fields only (a pinned version is still looked up to confirm it exists).

## Actor input object example

```json
{
  "packageIds": [
    "Newtonsoft.Json",
    "Serilog"
  ],
  "version": "",
  "maxVersionsListed": 20,
  "maxPackages": 100,
  "includePrerelease": false,
  "includeDependencies": true
}
```

# Actor output Schema

## `results` (type: `string`):

All result items (overview view)

## `errors` (type: `string`):

Inputs that could not be processed, with the reason

## `summary` (type: `string`):

Counts of processed, billed and failed items

## `packagesCsv` (type: `string`):

One line per package: version, license, downloads, vulnerable, max severity, deprecated, alternate package, frameworks

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "packageIds": [
        "Newtonsoft.Json",
        "Serilog"
    ],
    "version": "",
    "maxVersionsListed": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digivibetech/nuget-package-metadata").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "packageIds": [
        "Newtonsoft.Json",
        "Serilog",
    ],
    "version": "",
    "maxVersionsListed": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digivibetech/nuget-package-metadata").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "packageIds": [
    "Newtonsoft.Json",
    "Serilog"
  ],
  "version": "",
  "maxVersionsListed": 20
}' |
apify call digivibetech/nuget-package-metadata --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,digivibetech/nuget-package-metadata"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/o6VlgJzELGcyfRWP2/builds/Ffv78QO9dyZuUV97n/openapi.json
