# PyPI Python Packages & Release Intelligence Scraper (`litezero/pypi-packages-scraper`) Actor

Extract comprehensive PyPI Python package metadata, latest releases, author details, project links, classifiers, dependencies, and wheel files.

- **URL**: https://apify.com/litezero/pypi-packages-scraper.md
- **Developed by:** [LiteZero](https://apify.com/litezero) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 item scrapeds

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 Python Packages & Release Intelligence Scraper

Extract rich structured metadata, latest release history, author information, licenses, dependencies, classifiers, and project URLs directly from the **official Python Package Index (PyPI)** in bulk.

***

### 🥊 Why This Actor Beats the Competition

| Feature | 🐍 This PyPI Scraper | 🐢 Traditional HTML Scrapers | 🐌 Manual Inspection |
|---|---|---|---|
| **Speed** | **150+ packages / min** (Direct JSON) | 5–10 pages / min (Puppeteer) | Slow manual lookup |
| **Pricing** | **$1.00 / 1,000 packages** (PPR) | High hourly compute bills | High labor cost |
| **Data Depth** | Releases, dependencies, wheels, links | Often misses raw dependencies | Incomplete notes |
| **Platform Usage**| **FREE** (Zero compute charges) | Heavy RAM & CPU billable | N/A |
| **Reliability** | **100%** (Official JSON registry) | Fragile DOM selectors break | Human error prone |

***

### 🛠️ Step-by-Step: How to Use

#### Method 1: Apify Console (No-Code UI)

1. Click **Try for free** on Apify Console.
2. Enter target package names in the **Python Package Names** field (e.g. `requests`, `fastapi`, `pydantic`, `langchain`).
3. Set **Max Releases** (default: 10).
4. Click **Start** to run the actor and export to JSON, CSV, or Excel.

#### Method 2: Python SDK

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {
    "packages": ["fastapi", "uvicorn", "pydantic"],
    "maxReleases": 5
}
run = client.actor("litezero/pypi-packages-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["version"], item["license"])
```

#### Method 3: Node.js SDK

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('litezero/pypi-packages-scraper').call({
    packages: ['fastapi', 'uvicorn', 'pydantic'],
    maxReleases: 5,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `packages` | Array of strings | `["requests", "fastapi", "pydantic"]` | Python package names to inspect. |
| `maxReleases` | Integer | `10` | Number of past releases to include. |

***

### 📤 Output Data Dictionary & Sample

```json
{
  "name": "fastapi",
  "version": "0.115.0",
  "summary": "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
  "author": "Sebastián Ramírez",
  "authorEmail": "tiangolo@gmail.com",
  "license": "MIT",
  "homePage": "https://fastapi.tiangolo.com/",
  "requiresPython": ">=3.8",
  "dependencies": [
    "starlette>=0.40.0,<0.42.0",
    "pydantic>=1.7.4,!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0",
    "typing-extensions>=4.8.0"
  ],
  "classifiers": [
    "Development Status :: 4 - Beta",
    "Framework :: FastAPI",
    "Intended Audience :: Developers",
    "License :: OSI Approved :: MIT License"
  ],
  "totalReleases": 84,
  "pypiUrl": "https://pypi.org/project/fastapi/",
  "scrapedAt": "2026-10-04T05:30:00.000Z"
}
```

***

### 💡 Top Use Cases

1. **Software Dependency Auditing:** Rapidly audit third-party open source licenses and outdated dependencies in your codebase.
2. **AI & ML Ecosystem Tracking:** Track trending libraries in PyTorch, LangChain, Transformers, and LLM tooling.
3. **Cybersecurity Vulnerability Scanning:** Build threat intelligence monitors checking for unexpected dependency changes or package typosquatting.

# Actor input Schema

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

List of Python package names to extract metadata and release data for (e.g. requests, fastapi, pydantic, langchain).

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

Maximum number of past release versions to include in the version history.

## Actor input object example

```json
{
  "packages": [
    "requests",
    "fastapi",
    "pydantic"
  ],
  "maxReleases": 10
}
```

# Actor output Schema

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("litezero/pypi-packages-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("litezero/pypi-packages-scraper").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 '{}' |
apify call litezero/pypi-packages-scraper --silent --output-dataset

```

## MCP server setup

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

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/81iO4A4f9rvaQCtpu/builds/4pp11uKLW3lGOgTUz/openapi.json
