PyPI Scraper: how to get Python Package Details and Stats as JSON/CSV (API, Python, no code)
Snapshot PyPI package metadata using the public pypi.org/pypi//json endpoint. This guide shows the output fields, a working input, and
Python, JavaScript and cURL code for the Actor v0iddo/pypi-package-tracker on Apify.
What data you get
One row per result. Every row can be downloaded as JSON, CSV, Excel or HTML, or read through the API.
| Field | Label | Type | Example |
|---|---|---|---|
snapshotAt | Snapshot At | date | 2026-10-26T04:31:42+00:00 |
name | Name | text | requests |
latestVersion | Latest Version | text | 2.34.2 |
summary | Summary | text | Python HTTP for Humans. |
author | Author | text | |
license | License | text | Apache-2.0 |
homepage | Homepage | text | |
projectUrls | Project Urls | object | {"Documentation": "https://requests.readthedocs.io", "Source": "htt... |
requiresPython | Requires Python | text | >=3.10 |
classifiers | Classifiers | list | ["Development Status :: 5 - Production/Stable", "Environment :: Web... |
keywords | Keywords | text | |
releaseCount | Release Count | number | 163 |
Input example
This is the input that is pre-filled on the Actor page. Change the values for your own run.
{
"packages": [
"requests",
"numpy",
"pandas"
]
}
| Input field | Type | What it does |
|---|---|---|
packages | array | PyPI package names |
Output sample
Real rows from a run of the Actor. Fields that name people are left out of the sample.
[
{
"snapshotAt": "2026-10-26T04:31:42+00:00",
"name": "requests",
"latestVersion": "2.34.2",
"summary": "Python HTTP for Humans.",
"license": "Apache-2.0",
"projectUrls": {
"Documentation": "https://requests.readthedocs.io",
"Source": "https://github.com/psf/requests"
},
"requiresPython": ">=3.10",
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers"
],
"releaseCount": 163
},
{
"snapshotAt": "2026-10-26T04:31:42+00:00",
"name": "numpy",
"latestVersion": "2.5.4",
"summary": "Fundamental package for array computing in Python",
"homepage": "https://numpy.org",
"projectUrls": {
"documentation": "https://numpy.org/doc/",
"download": "https://pypi.org/project/numpy/#files",
"homepage": "https://numpy.org",
"release notes": "https://numpy.org/doc/stable/release",
"source": "https://github.com/numpy/numpy",
"tracker": "https://github.com/numpy/numpy/issues"
},
"requiresPython": ">=3.12",
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research"
],
"releaseCount": 152
}
]
Code: Python, JavaScript and cURL
Get your API token in Apify Console under Settings, then Integrations. The Actor id is v0iddo/pypi-package-tracker.
Python (apify-client)
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run_input = {'packages': ['requests', 'numpy', 'pandas']}
run = client.actor("v0iddo/pypi-package-tracker").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
JavaScript (apify-client)
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const input = {
"packages": [
"requests",
"numpy",
"pandas"
]
};
const run = await client.actor('v0iddo/pypi-package-tracker').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
cURL
curl -X POST "https://api.apify.com/v2/acts/v0iddo~pypi-package-tracker/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"packages": ["requests", "numpy", "pandas"]}'
Price
$0.20 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.14 per 1,000. See the pricing tab for your plan. A new Apify account gets $5 of platform credit every month.
FAQ
What data does the PyPI Scraper return?
Each result is one row in an Apify dataset. Fields include snapshotAt, name, latestVersion, summary, author, license, homepage, projectUrls, and more. The table above shows every field with an example value.
How do I use the PyPI Scraper from Python?
Install the apify-client package, create a client with your Apify API token, call the Actor v0iddo/pypi-package-tracker with an input like the one above, and read the rows from the run's dataset. The Python snippet above does exactly that.
Can I use it without writing code?
Yes. Open the Actor page on Apify, fill in the input form (an example is already filled in), press Start, and download the results as JSON, CSV, Excel or HTML. You can also schedule runs there.
How much does it cost?
$0.20 per 1,000 results. You pay per result row. There is no separate charge per run. Higher Apify plans pay less per result, down to $0.14 per 1,000. A new Apify account gets $5 of platform credit every month.
How do I limit the number of results?
Set a maximum cost for a run in the run options on Apify, and the run stops when it is reached.
Can I send the results to Google Sheets, Make, Zapier or n8n?
Yes. Apify datasets connect to Google Sheets, Slack, Make, Zapier and n8n, and a webhook can call your own service when a run finishes. You can also export the dataset as JSON, CSV or Excel.
Related guides
- GitHub Trending Scraper: Pull the GitHub Trending repository list: daily, weekly, or monthly, filtered by programming language and s...
- Chrome Web Store Scraper: Snapshot Chrome Web Store extension metadata via the public listing page.
- Crossref Scraper: For each query, pull recent works from Crossref's public REST API with a server-side date filter.