# PyPI Package Scraper API - Releases, Metadata & Dependencies (`pink_comic/pypi-package-intelligence`) Actor

Search canonical PyPI JSON metadata for package releases, dependencies, Python requirements, classifiers, license declarations, yanked files, upload dates, hashes, project links, and release age. Built for dependency review, release monitoring, and package inventory workflows.

- **URL**: https://apify.com/pink_comic/pypi-package-intelligence.md
- **Developed by:** [Ava Torres](https://apify.com/pink_comic) (community)
- **Categories:** Developer tools, AI, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 pypi package intelligence scraper api - releases & evidence items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## PyPI Package Intelligence Scraper API

Search canonical PyPI JSON metadata for package releases, dependencies, extras, Python requirements, classifiers, license declarations, project status, upload dates, yanked files, hashes, file types, sizes, links, and release age.

Empty input returns one current `requests` release for at most **$0.0021** (`$0.0001` start + `$0.002/item`). Package/version/history/file/dependency/output work is bounded and explicit `FOUND`, `NO_MATCH`, and `SOURCE_UNAVAILABLE` outcomes prevent silent ambiguity.

```json
{"packages":["requests"],"includeHistory":true,"maxReleases":5,"maxResults":5}
```

PyPI metadata is publisher supplied. It is not proof of safety, compatibility, support, provenance, vulnerability status, authenticity, installability, or a legal license conclusion. Inspect artifacts, source, dependency resolution, advisories, attestations/signatures where available, and license terms before consequential use.

### How to use

1. Open [PyPI Package Scraper API - Releases, Metadata & Dependencies](https://apify.com/pink_comic/pypi-package-intelligence) in Apify Console and click **Start** (or **Try for free**).
2. Fill in the input form - start with **Package Names**, **Maximum Releases Per Package**, **Maximum Files Per Release**. Every field is optional unless marked required, and the form is prefilled with a working example.
3. Set **Maximum results** to cap your cost, then run the Actor.
4. Download the results as JSON, CSV, Excel, XML or HTML, or pull them with the Apify API.

### Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `packages` | array | no | \["requests"] | One to 20 exact PyPI package names. |
| `version` | string | no |  | Exact release version. Requires exactly one package. |
| `includeHistory` | boolean | no | false | Return newest bounded releases instead of only the current release. |
| `maxReleases` | integer | no | 10 | History candidate bound per package. |
| `maxFiles` | integer | no | 20 | Bound returned wheels/sdists while retaining total and truncation evidence. |
| `maxDependencies` | integer | no | 100 | Bound requires-dist declarations while retaining truncation evidence. |
| `classifier` | string | no |  | Case-insensitive classifier substring, such as Programming Language :: Python :: 3. |
| `pythonRequirement` | string | no |  | Case-insensitive requires_python substring. |
| `licenseKeyword` | string | no |  | Case-insensitive publisher license text or License classifier substring. Not a legal conclusion. |
| `yankedStatus` | string | no | "all" | Filter by whether any release file is marked yanked. |
| `uploadedFrom` | string | no |  | YYYY-MM-DD, evaluated against valid release-file upload dates. |
| `uploadedTo` | string | no |  | YYYY-MM-DD, evaluated against valid release-file upload dates. |
| `dependencyKeyword` | string | no |  | Case-insensitive requires-dist substring. |
| `extraKeyword` | string | no |  | Case-insensitive provided-extra substring. |
| `projectStatus` | string | no |  | Development Status classifier substring, such as Production/Stable. |
| `maxResults` | integer | no | 1 | Total paid output cap across all packages. The default first run returns one item even though this allows larger custom lists. |

#### Example input

```json
{
  "packages": [
    "requests"
  ],
  "includeHistory": false,
  "maxReleases": 10,
  "maxFiles": 20,
  "maxDependencies": 100,
  "yankedStatus": "all",
  "maxResults": 1
}
```

### Output example

One record from a real run (long values shortened, contact details partly masked):

```json
{
  "evidenceStatus": "FOUND",
  "message": "",
  "packageName": "requests",
  "normalizedName": "requests",
  "version": "2.34.2",
  "isLatestVersion": true,
  "summary": "Python HTTP for Humans.",
  "descriptionContentType": "text/markdown",
  "author": "",
  "authorEmail": "Kenneth Reitz <me@kennethreitz.org>",
  "maintainer": "",
  "maintainerEmail": "Ian Stapleton Cordasco <graffatcolmingov@gmail.com>, Nate Prewitt <nate.prewitt@gmail.com>",
  "licenseText": "Apache-2.0",
  "licenseClassifiers": [
    "License :: OSI Approved :: Apache Software License"
  ],
  "classifiers": [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Web Environment",
    "Intended Audience :: Developers"
  ],
  "projectStatus": [
    "Development Status :: 5 - Production/Stable"
  ],
  "requiresPython": ">=3.10",
  "requiresDist": [
    "charset_normalizer<4,>=2",
    "idna<4,>=2.5",
    "urllib3<3,>=1.26"
  ],
  "dependenciesTruncated": false,
  "providedExtras": [
    "security",
    "socks",
    "use-chardet-on-py3"
  ],
  "keywords": [],
  "projectLinks": {
    "Documentation": "https://requests.readthedocs.io",
    "Source": "https://github.com/psf/requests"
  },
  "homepage": "",
  "packageUrl": "https://pypi.org/project/requests/",
  "releaseUrl": "https://pypi.org/project/requests/2.34.2/"
}
```

### Pricing

Pay per event: **$0.002 per pypi package intelligence scraper api - releases & evidence item** plus **$0.0001 per run start**. No subscription to this Actor is needed. Apify Store discounts apply, so the price per result is lower on Silver, Gold and higher Apify plans. Use **Maximum results** to cap the cost of each run.

### FAQ

#### How much does PyPI Package Scraper API - Releases, Metadata & Dependencies cost?

$0.002 per pypi package intelligence scraper api - releases & evidence item plus $0.0001 per run. For example, 1,000 results cost about $2.00. Higher Apify plans get a Store discount.

#### Do I need an API key or login?

This Actor has an optional or required key field in the input; see the input table above.

#### Can I run it on a schedule or from code?

Yes. Use Apify Schedules for recurring runs, or call it from the Apify API, the JavaScript or Python client, Make, Zapier, n8n, or any MCP-compatible AI agent.

#### Why did my run return no results?

Your filters are probably too narrow. Remove a filter or broaden the search, then run again. You only pay the result price for records that are actually saved.

#### Is the data accurate and up to date?

Each run fetches live data from the source described above, so results are as current as that source. Verify critical records with the original source before acting on them.

# Actor input Schema

## `packages` (type: `array`):

One to 20 exact PyPI package names.

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

Exact release version. Requires exactly one package.

## `includeHistory` (type: `boolean`):

Return newest bounded releases instead of only the current release.

## `maxReleases` (type: `integer`):

History candidate bound per package.

## `maxFiles` (type: `integer`):

Bound returned wheels/sdists while retaining total and truncation evidence.

## `maxDependencies` (type: `integer`):

Bound requires-dist declarations while retaining truncation evidence.

## `classifier` (type: `string`):

Case-insensitive classifier substring, such as Programming Language :: Python :: 3.

## `pythonRequirement` (type: `string`):

Case-insensitive requires_python substring.

## `licenseKeyword` (type: `string`):

Case-insensitive publisher license text or License classifier substring. Not a legal conclusion.

## `yankedStatus` (type: `string`):

Filter by whether any release file is marked yanked.

## `uploadedFrom` (type: `string`):

YYYY-MM-DD, evaluated against valid release-file upload dates.

## `uploadedTo` (type: `string`):

YYYY-MM-DD, evaluated against valid release-file upload dates.

## `dependencyKeyword` (type: `string`):

Case-insensitive requires-dist substring.

## `extraKeyword` (type: `string`):

Case-insensitive provided-extra substring.

## `projectStatus` (type: `string`):

Development Status classifier substring, such as Production/Stable.

## `maxResults` (type: `integer`):

Total paid output cap across all packages. The default first run returns one item even though this allows larger custom lists.

## Actor input object example

```json
{
  "packages": [
    "requests"
  ],
  "version": "",
  "includeHistory": false,
  "maxReleases": 10,
  "maxFiles": 20,
  "maxDependencies": 100,
  "classifier": "",
  "pythonRequirement": "",
  "licenseKeyword": "",
  "yankedStatus": "all",
  "uploadedFrom": "",
  "uploadedTo": "",
  "dependencyKeyword": "",
  "extraKeyword": "",
  "projectStatus": "",
  "maxResults": 1
}
```

# Actor output Schema

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

All records from this run in the default dataset, shown with the Overview table view.

# 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 = {
    "packages": [
        "requests"
    ],
    "maxResults": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("pink_comic/pypi-package-intelligence").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 = {
    "packages": ["requests"],
    "maxResults": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("pink_comic/pypi-package-intelligence").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 '{
  "packages": [
    "requests"
  ],
  "maxResults": 1
}' |
apify call pink_comic/pypi-package-intelligence --silent --output-dataset

```

## MCP server setup

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

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/IbDsPtW2DbpmM3Yxh/builds/l2YIq2qPYMLLbCAKf/openapi.json
