PyPI Packages Scraper: Python Repository Data avatar

PyPI Packages Scraper: Python Repository Data

Pricing

from $2.09 / 1,000 pypi package records

Go to Apify Store
PyPI Packages Scraper: Python Repository Data

PyPI Packages Scraper: Python Repository Data

Fetch PyPI package metadata (version, summary, license, Python requirement, release link, upload time) for the package names you list from the public PyPI JSON API as clean structured rows. Not affiliated with PyPI JSON API (Python Software Foundation).

Pricing

from $2.09 / 1,000 pypi package records

Rating

0.0

(0)

Developer

PlainKit bin

PlainKit bin

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

PyPI Python Repository Scraper: Python Package Metadata

Python developers, security and licence reviewers, dependency-tracking teams and analysts who need PyPI python repository data as clean tabular rows can list the package names they care about and get one structured JSON row per package. This PyPI python repository scraper returns python package metadata such as the latest version, the one-line summary, the licence, the required Python version, the upload time and the package links, without writing your own API client. Use it to audit a list of dependencies, to watch which version a package is on, or to feed a package inventory in a spreadsheet or database.

This Actor is an independent tool and is not affiliated with PyPI JSON API (Python Software Foundation).

Introduction

You give the Actor a list of PyPI project names, for example requests or flask. For each name it reads the public PyPI JSON API at pypi.org, copies the documented metadata fields into one row, and pushes that row to the dataset. A name that PyPI does not know produces no row and no charge.

One run returns at most max_items rows, with a hard upper bound of 100 rows per run. The Actor needs no account, no login and no API key.

What it does not do: the PyPI JSON API has no search endpoint, so the Actor looks up the exact package names you list. It does not output author names or author e-mail addresses, and it does not output the long project description text.

Tutorial

  1. Open the Actor and enter your package names in the package_names list.
  2. Set max_items to the number of rows you want, up to 100.
  3. Start the run and open the dataset when it finishes.
  4. Export the rows as JSON, CSV or Excel, or read them through the Apify API.

Output Row Fields

Each delivered package row contains 11 fields copied from the API response:

  • name: project name as PyPI spells it
  • version: latest release version
  • summary: one-line project summary
  • requires_python: Python version requirement of the latest release
  • license: short licence field, empty when PyPI holds a long licence text instead
  • license_expression: SPDX licence expression when the project sets one
  • keywords: keyword string set by the project
  • yanked: whether the latest release is yanked
  • upload_time: upload time of the first file of the latest release (ISO 8601)
  • package_url: project page on pypi.org
  • release_url: page of the latest release on pypi.org

Input and output examples

Example input

{
"package_names": ["requests", "flask", "six"],
"max_items": 3
}

Example output

{
"keywords": "",
"license": "Apache-2.0",
"license_expression": "",
"name": "requests",
"package_url": "https://pypi.org/project/requests/",
"release_url": "https://pypi.org/project/requests/2.34.2/",
"requires_python": ">=3.10",
"summary": "Python HTTP for Humans.",
"upload_time": "2026-05-14T19:25:26.443000Z",
"version": "2.34.2",
"yanked": false
}

Pricing

The price is $0.003 per delivered package row under the FREE tier on Apify Pay-Per-Event (event name: pypi-package).

  • Event name: pypi-package
  • Pricing model: Apify Pay-Per-Event
  • Tier prices:
    • FREE: $0.003 per event
    • BRONZE: $0.0027 per event
    • SILVER: $0.0024 per event
    • GOLD: $0.00209 per event
    • PLATINUM: $0.00209 per event
    • DIAMOND: $0.002 per event

Each package row is pushed first to the dataset and charged right after a successful push. A refused charge or reached spending limit halts work immediately; that row remains delivered and uncharged. Failed requests produce 0 charges and push no data. Restart safety: if a run is restarted or resumed by the platform, packages already delivered are recognized and never pushed or charged twice.

Input Parameters

FieldTypeDescriptionDefault
package_namesArray of stringsPyPI project names to look up, up to 100 names.["requests", "flask", "six"]
max_itemsInteger (1-100)Maximum number of package rows to output.10

Access limits and behaviour

Data is read from the public PyPI JSON API at https://pypi.org/pypi/<name>/json. The Actor follows no redirects and sends requests one after another with a short pause. If PyPI answers with HTTP 401, 403 or 429, or with a redirect, the run stops at once, retries nothing, and writes a single reason-code row (for example HTTP_429) that is not charged. Server errors are retried a bounded number of times.

The Actor reads one package per request and never loops over pages without a bound: the number of requests is capped by max_items. PyPI data reflects what the project owners uploaded and may differ from the files themselves. The PyPI terms of service ask API users to avoid abusive or excessively frequent requests, and this Actor spaces its requests for that reason. For compliance inquiries contact compliance@example.com.

Actor recommendations

Use this Actor together with your own dependency list or lock file: export the package names, run them in one batch and compare the versions and licences in the rows against what you have installed.

FAQ and support

Can I search PyPI by keyword? No. The PyPI JSON API has no search endpoint, so you list the exact project names.

Does a missing package cost anything? No. A name that PyPI does not know gives no row and no charge.

Are author names or e-mail addresses included? No. Those fields are never copied into the output.

Something looks wrong in a row. Open an issue on the Actor page with the package name and the run link.

Use as an MCP Tool (AI Agents)

AI agents and MCP clients (such as Claude Desktop or Cursor) can invoke plainkitbin/pypi-packages directly via @apify/actors-mcp-server over stdio:

$APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/pypi-packages

Hosted (Streamable HTTP): connect to https://mcp.apify.com?tools=plainkitbin/pypi-packages using OAuth or the header Authorization: Bearer <YOUR_APIFY_TOKEN>.

Example MCP client configuration (mcpServers):

{
"mcpServers": {
"pypi-packages": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--actors",
"plainkitbin/pypi-packages"
],
"env": {
"APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
}
}
}
}

Example JSON tool call matching .actor/input_schema.json:

{
"package_names": [
"requests",
"flask",
"six"
],
"max_items": 3
}

Catalog and registry: browse all Actors at PlainKitBin or discover the multi-Actor server com.plainkitbin/public-data-actors in the MCP Registry.