# PyPI Package Metadata: Versions, Downloads and Vulnerabilities

> PyPI package metadata for up to 1,000 Python packages: latest version, license, dependencies, release dates, yanked status, downloads and vulnerabilities.

URL: https://cliqtomedia.com/actors/pypi-package-metadata/

Category: Developer & website monitoring · Status: live on Apify Store · Apify page: https://apify.com/cliqtomedia/pypi-package-metadata?fpr=cliqto

Enter Python package names, pypi.org links or requirements.txt lines. You get one row per package. A row has the latest version, license, Python support, dependencies and release dates. It can add downloads and known vulnerabilities.

## How to use it: 3 steps

1. **Make a free Apify account.** Apify is the cloud platform where our tools run. The free plan gives you $5 of usage every month, no credit card needed. You pay Apify, not us.
2. **Paste your input and press Start.** No code needed: you fill in a form (the input). It already has a working example. For example: `requests` in Packages. Each start is one run.
3. **Download the results.** When the run ends, the results are in a table (the dataset). Open Output, press Export and pick Excel or CSV. JSON and the API are there too.

## What it does

Add Python package names, and the Actor reads PyPI and returns one row per package: latest version, license, Python support, dependencies, release dates, downloads and known vulnerabilities. Use it to audit a `requirements.txt`, compare libraries or watch for new releases; the smallest run is one package name, and it needs no login or API key.



### Good for

- Check a `requirements.txt`: latest version, license and known vulnerabilities of every package.
- Compare Python libraries by downloads, release activity and Python support.
- Get the release history of packages: version, upload date, yanked, wheel or source files.
- Watch packages on a schedule and get only the new releases since the last run.

## Price

Pay per event. Apify bills you, not us.

| What you pay for | Price | When |
|---|---|---|
| Start fee | $0.0005 | Charged once per run. This tool uses 1 GB of memory or less by default; more memory costs more. |
| Package record | $0.00022 (from $0.000154 on paid Apify plans) | One PyPI package row with its latest version, licence, links and (optional) download counts saved to the Dataset. |
| Release record | $0.00069 (from $0.000483 on paid Apify plans) | One release (version) row saved to the Dataset in releases mode. |
| Package checked, no row | $0.00008 (from $0.000056 on paid Apify plans) | A package was checked but no row was saved: no new versions since the last run (onlyNew), or fewer downloads than minDownloadsLastMonth. |
| Entry not found or invalid | $0.00003 (from $0.000021 on paid Apify plans) | One row for an input entry that is not a PyPI project, has no such version, or is not a valid package name. |

- One package: about $0.0007.
- 1,000 packages: about $0.22.
- Every day 100 packages, for 30 days: about $0.68 a month.

Free to try: the Apify free plan gives you $5 of usage every month, no credit card needed.

Prices checked on 27 November 2026. Current price: https://apify.com/cliqtomedia/pypi-package-metadata?fpr=cliqto

## Questions

### Do I need a PyPI account?

No. You need only an Apify account. No API key.

### Can I search PyPI by keyword?

No. PyPI has no public search API. Give package names, a PyPI user or the top list.

### Does an empty vulnerability list mean the package is safe?

No. It only shows what PyPI returns for the checked version.

### How fresh is the data?

Every run reads PyPI at that moment. Downloads come from pypistats.org and are usually one day behind. The top list for `topPackages` is updated monthly.

### Does it return every field for every package?

No. Many projects do not fill all PyPI fields. When a value is not given, the field is `null` or an empty list; the Actor does not guess it.

## Data fields

- `recordType` (string): package: one row per PyPI project; release: one row per release (Output = One row per release).
- `input` (string): The entry as you typed it, or "maintainer:<user>", "top:<rank>", "dependency of <name>" for added packages.
- `status` (string): complete: all requested data; partial: metadata ok but downloads or project status missing (see warnings); not_found: PyPI has no such project or version (404), not an error; invalid: not a valid PyPI name, no request made; error: lookup failed (see error). error rows are free; not_found and invalid rows cost the small unresolved-entry fee.
- `name` (string): Project name as PyPI shows it. null when not found or invalid.
- `normalizedName` (string): PEP 503 normalized name (lowercase, runs of -_. replaced by -).
- `version` (string): Checked version: the latest one, or the version you pinned with name==version. In release rows, the release version.
- `latestVersion` (string): Latest version on PyPI (what pip install <name> installs without a pin, ignoring pre-releases).
- `isLatest` (boolean): true when version is the latest version.
- `summary` (string): One-line summary from the package metadata.
- `license` (string): License: SPDX license_expression if set, else the short license field, else the License classifier. null when the package declares none.
- `licenseSource` (string): Which metadata field license came from.
- `author` (string): Author name only (e-mail addresses are never output).
- `maintainer` (string): Maintainer name only (e-mail addresses are never output).
- `owners` (array): Owner and maintainer PyPI usernames with role. Filled for packages found through PyPI users; otherwise empty.
- `homepage` (string): Homepage link from project URLs.
- `repositoryUrl` (string): Source code link (GitHub, GitLab and others) from project URLs.
- `documentationUrl` (string): Documentation link from project URLs.
- `changelogUrl` (string): Changelog or release notes link from project URLs.
- `issuesUrl` (string): Issue tracker link from project URLs.
- `projectUrls` (object): All project URLs as the package declares them (label → link).
- `requiresPython` (string): Python versions the package supports (Requires-Python), e.g. ">=3.9".
- `requiresDist` (array): Dependency specifiers as declared (Requires-Dist), including optional extras.
- `dependencies` (array): Names of required dependencies (extras excluded), normalized.
- `dependenciesCount` (integer): Number of required dependencies.
- `providesExtra` (array): Optional extras the package offers (pip install name[extra]).
- `classifiers` (array): Trove classifiers.
- `keywords` (array): Keywords from the package metadata.
- `developmentStatus` (string): Development status from the classifiers, e.g. "5 - Production/Stable".
- `firstReleaseAt` (string): Upload time of the first release with files (ISO 8601).
- `latestReleaseAt` (string): Upload time of the newest release with files (ISO 8601).
- `daysSinceLastRelease` (integer): Days since latestReleaseAt.
- `releasesCount` (integer): Number of releases that have files (empty releases are not counted).
- `versionFilesCount` (integer): Number of files (wheels and sdists) in the checked version.
- `hasWheel` (boolean): true when the checked version (or release) has at least one wheel.
- `yanked` (boolean): true when the checked version (or release) is yanked on PyPI.
- `yankedReason` (string): Reason given for the yank, if any.
- `abandonmentSignals` (array): Hints that the project may be unmaintained: no_release_2y, inactive_classifier (Development Status 7), all_versions_yanked, project_archived / project_deprecated / project_quarantined.
- `projectStatus` (string): Project status from the PyPI Simple API: active, archived, deprecated or quarantined (Include project status). null when not requested.
- `vulnerabilities` (array): Known vulnerabilities of the checked version from the OSV data PyPI returns. null when not requested; [] when none known.
- `vulnerabilitiesCount` (integer): Number of known vulnerabilities. null when not requested.

## Input settings

- `packages` (array): PyPI project names, pypi.org project links or requirements.txt lines, one per line (up to 1000). Pin a version with name==1.2.3. Other version specifiers are cut to the name.
- `maintainers` (array): PyPI usernames or pypi.org/user/ links (up to 20). Every project the user owns or maintains is added to the list.
- `topPackages` (integer): Add the N most-downloaded PyPI projects of the last 30 days (0–1000). The list comes from hugovk/top-pypi-packages and is updated monthly.
- `mode` (string): One row per package with all metadata, or one row per release (version, upload date, yanked, wheel or sdist).
- `includeDownloads` (boolean): Downloads in the last day, week and month from pypistats.org. pypistats allows about 1 request per second, so each package adds about 1 second to the run.
- `minDownloadsLastMonth` (integer): Skip packages with fewer monthly downloads (needs Include downloads). Packages with unknown downloads are kept. 0 keeps all.
- `includeVulnerabilities` (boolean): Known vulnerabilities of the checked version from the OSV data PyPI returns: ID, aliases (CVE), short summary, fixed-in versions.
- `includeReleases` (boolean): Add the newest releases (version, upload date, yanked, files) to each package row.
- `maxReleasesPerPackage` (integer): How many of the newest releases to list per package (release list and release rows).
- `includePrereleases` (boolean): Also list alpha, beta, release-candidate and dev versions.
- `includeProjectStatus` (boolean): Project status from the PyPI Simple API (active, archived, deprecated, quarantined). Adds one request per package.
- `dependencyDepth` (integer): Also check the required dependencies of each package, down to this many levels (0–3). Optional extras are not followed.
- `onlyNew` (boolean): For scheduled runs: write only packages (or releases) uploaded since the previous run with the same state name. Unchanged packages cost a small fee and are not written. The first run is the baseline.
- `stateName` (string): Name of the saved state the next run compares with (letters, digits and -). Required for Only new releases.
- `maxResults` (integer): Stop after this many Dataset rows (1–10000).
- `deliveryConnector` (string): Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors.
- `deliveryTarget` (string): Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why.
- `includeDescription` (boolean): Add the project description (README) to each row, up to 20000 characters, with e-mail addresses removed. Makes rows much larger.

## Step by step on Apify

1. Open the Input tab. The Packages field already has `requests`, `numpy` and one name that does not exist (box 1 in the picture). Add or change package names, one per line.
2. Keep Output as One row per package (box 2). This is the default.
3. Click Start.
4. Open the Output tab. The Packages view (box 1) shows one row per package (box 2): version, license, Python support, downloads and vulnerabilities. The missing name has status `not_found` and empty values. Use Export (box 3) to save JSON, CSV or Excel.

## Use cases

| Task | Input | You get | Key fields | Next step |
|---|---|---|---|---|
| Audit a `requirements.txt` | `packages` (paste the file lines) | Package row | `version`, `latestVersion`, `license`, `vulnerabilitiesCount`, `yanked` | CSV export, spreadsheet |
| Compare libraries | `packages`, `includeDownloads` | Package row | `downloads.lastMonth`, `latestReleaseAt`, `requiresPython`, `releasesCount` | Dataset API |
| Release history | `packages`, `mode` = `releases` | Release row | `version`, `uploadedAt`, `yanked`, `hasWheel` | CSV export |
| Watch for new releases | `packages`, `onlyNew`, `stateName`, Apify schedule | Package or release row | `newVersions`, `previousVersion`, `isNew` | Slack or Notion summary, webhook |
| Check a maintainer's projects | `maintainers` | Package row | `name`, `maintainerRole`, `version`, `abandonmentSignals` | Dataset API |

## Tips

- Start with one package. Check the row before a big list.
- Turn on downloads only when you need them. They make the run slower.
- Use the new-only option and a schedule to see new releases.

## Limits



- Run time with downloads. pypistats.org allows about one request per second, so each package with downloads takes about 1.5 seconds. Measured: 100 packages in 140 seconds, 400 packages in 603 seconds, 1000 packages in 1500 seconds. With the default 300-second run timeout, a test run of 300 packages wrote 150 rows, then stopped in time: the run status is `PARTIAL`, the saved rows stay, and the message says how many packages were not checked. For more than about 150 packages with downloads, raise the run timeout (about 1.5 seconds per package) or split the list.
- Up to 1000 lines in `packages`. If the list is longer, the first 1000 unique packages are checked and a warning in `RUN_SUMMARY` says how many were left out. `maintainers` (up to 20 users), `topPackages` and dependencies can add more packages, up to 10000 in the queue (a warning says if more were left out). `maxResults` (default 1000, up to 10000) stops the run at that many rows. We tested runs up to 1000 packages.
- Safety stops. A run makes at most 8000 requests; after that it stops early, keeps the saved rows and says so in `RUN_SUMMARY` (`REQUEST_CAP`). A PyPI document larger than 64 MB is not read: that package gets an `error` row (`SOURCE_TOO_LARGE`, free). The biggest PyPI projects today are about 41 MB. If 8 packages in a row fail (not `not_found`), the run stops and says why, so you do not pay for a broken source.
- Memory. The default 256 MB is enough for normal lists. Our hardest test (1000 packages, including the biggest PyPI projects such as ddtrace) used up to 236 MB. If a run with very large packages stops because it ran out of memory, start it again with 512 MB in the run options.
- Downloads can be missing. If pypistats.org is busy, the Actor waits and tries again. If it still gets no answer, the row is `partial` and `downloads` is `null`. Downloads are counts from pypistats.org, not from PyPI itself.
- No keyword search. PyPI has no public search API, so you need package names, PyPI users or the top list.
- Vulnerabilities are only those that PyPI returns from the OSV database for the checked version. An empty list is not a security guarantee.
- The Actor does not download package files and does not return e-mail addresses. README text is off by default and has e-mails removed.

## Sample result

```json
{
  "recordType": "package",
  "input": "requests",
  "status": "complete",
  "name": "requests",
  "version": "2.34.2",
  "latestVersion": "2.34.2",
  "summary": "Python HTTP for Humans.",
  "license": "Apache-2.0",
  "requiresPython": ">=3.10",
  "dependencies": ["charset-normalizer", "idna", "urllib3", "certifi"],
  "firstReleaseAt": "2011-02-14T08:49:42.641660Z",
  "latestReleaseAt": "2026-05-14T19:25:26.443000Z",
  "releasesCount": 160,
  "yanked": false,
  "vulnerabilitiesCount": 0,
  "downloads": { "lastDay": 53147899, "lastWeek": 339718075, "lastMonth": 1478957330 },
  "repositoryUrl": "https://github.com/psf/requests",
  "packageUrl": "https://pypi.org/project/requests/",
  "projectStatus": null,
  "warnings": [],
  "error": null
}
```

## Use it from code

Actor ID: `cliqtomedia/pypi-package-metadata`

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("cliqtomedia/pypi-package-metadata").call(run_input={
    "packages": [
        "requests",
        "numpy",
        "this-package-does-not-exist-xyz-123"
    ],
    "topPackages": 0
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```bash
curl -X POST "https://api.apify.com/v2/acts/cliqtomedia~pypi-package-metadata/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"packages": ["requests", "numpy", "this-package-does-not-exist-xyz-123"], "topPackages": 0}'
```

```python
# pip install langchain-apify
# set APIFY_TOKEN in your environment
from langchain_apify import ApifyActorsTool

tool = ApifyActorsTool("cliqtomedia/pypi-package-metadata")
result = tool.invoke({"run_input": {"packages": ["requests", "numpy", "this-package-does-not-exist-xyz-123"], "topPackages": 0}})
print(result)
```

run-sync waits up to 300 seconds; for longer runs start a run and use a webhook. LlamaIndex and MCP: https://cliqtomedia.com/actors/ai-agents/

## Similar tools

- [npm Package Monitor: Versions, License & Downloads](https://cliqtomedia.com/actors/npm-package-metadata-monitor/)
- [Dependency Vulnerability Scanner: npm, PyPI, Maven (OSV)](https://cliqtomedia.com/actors/osv-dependency-vulnerability-scanner/)
- [Software End-of-Life Checker: Support and EOL Dates](https://cliqtomedia.com/actors/software-end-of-life-checker/)
- [GitHub Repositories & Users Search (No Login)](https://cliqtomedia.com/actors/github-search/)
- [Bulk URL Status & Redirect Checker — Link Route Audit](https://cliqtomedia.com/actors/bulk-url-status-redirect-checker/)
- [GitHub Releases Scraper & Monitor: Notes & Assets](https://cliqtomedia.com/actors/github-releases-monitor-scraper/)
