PyPI API

PyPI Scraper API for Python Project Metadata, Releases, and Vulnerabilities

Scrappa's PyPI API returns public Python Package Index data as structured JSON. Read a project with metadata, requirements, classifiers, release files with digests, the full release history, known vulnerabilities, ownership and recent downloads.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
1
Endpoint
All
Releases listed
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.

Request preview
Request
curl -X GET "https://scrappa.co/api/pypi/project?project=requests" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "success": true,
  "data": {
    "name": "six",
    "version": "1.17.0",
    "summary": "Python 2 and 3 compatibility utilities",
    "license": "MIT",
    "requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7",
    "vulnerabilities": []
  }
}

What you can build

Structured data for real applications. Here are some ideas.

Dependency Review

Read requires_dist, required Python and classifiers before you adopt a package.

Vulnerability Checks

See known vulnerabilities and fixed-in versions for a release.

Release Monitoring

Track new releases, yanked files and upload dates.

Package Inventory

Build an index of projects with summaries, licenses and project URLs.

Available endpoints

Everything you need in one API.

Scrappa vs PyPI JSON API (direct)

See how Scrappa compares to PyPI JSON API (direct).

Release history as one row per release
Scrappa
PyPI JSON API (direct)
Every file of every release
Name normalisation (PEP 503) handled
Scrappa
PyPI JSON API (direct)
You normalise names
Recent downloads included when available
Scrappa
PyPI JSON API (direct)
Separate statistics service
Price per 1k requests
Scrappa
From $0.20
PyPI JSON API (direct)
Free, but you build the wrapper

Key features

Project metadata, requirements, classifiers and project URLs
Release files with digests and sizes
Release history with upload dates (latest call)
Vulnerabilities with aliases and fixed-in versions
Names matched the PyPI way; unknown projects answer 404
Recent downloads when available, never a reason to fail

Frequently asked questions

No. PyPI offers no JSON search, so this API reads projects by name.

They are best effort. When the statistics source is down, the field is left out and the request still succeeds.

Each successful request uses one Scrappa credit. Failed requests are never charged and the API never answers with HTTP 429. An upstream outage returns a retryable 503.

No. Scrappa is an independent service and is not affiliated with or endorsed by PyPI. It returns public PyPI data as JSON.

Start using the PyPI API

Sign up and get 500 free credits. No credit card required.