Package Registry API - npm, PyPI, crates, gems
One API for npm, PyPI, crates.io & RubyGems: package details, versions, dependencies, download stats, search, comparison and security advisories.
Get a free API key on RapidAPI Try it in the playgroundPackage Registry API
Stop writing four different integrations. Query npm, PyPI, crates.io and RubyGems with the same endpoints and the same JSON shape.
📦 Packages
- Details: latest version, description, license, homepage, repository, keywords, maintainers, install command
- Versions with dates, dist-tags, yanked / deprecated flags
- Dependencies of any version by kind (runtime, peer, optional, dev, extras)
📈 Popularity
Download statistics with daily series, and compare up to 5 packages to see which one the community actually uses.
🔎 Search
Keyword search on npm, crates.io and RubyGems.
🛡️ Security
Known vulnerabilities (CVE / GHSA) for a package or an exact version, with severity and fixed versions — powered by the OSV database.
Use cases: dependency dashboards · supply-chain and license audits · README badges · developer tools & IDE plugins · technology-trend analysis · CI checks
Keywords: npm api, pypi api, crates.io api, rubygems api, package info, npm downloads, pypi stats, dependency api, vulnerability check, cve lookup, osv, software supply chain
Endpoints (7)
| Endpoint | What it returns |
|---|---|
GET/package | Package details Latest version, description, license, homepage, repository, keywords, maintainers, recent downloads, dependency count and install command — in the same shape for every registry. |
GET/versions | Versions Published versions, newest first, with dates and yanked / deprecated / prerelease flags (plus npm dist-tags). |
GET/dependencies | Dependencies Dependencies of the latest (or a specific) version, each with its version requirement and kind (runtime, peer, optional, dev, extra). |
GET/downloads | Download statistics Download counts with a daily series where the registry provides one (npm: last-day/week/month/year; PyPI: day/week/month + 60-day series; crates: total + 90-day series; RubyGems: totals). |
GET/compare | Compare packages Compare 2-5 packages of one registry side by side: version, license, downloads, dependents, dependency count and last update. |
GET/search | Search packages Keyword search in npm, crates.io or RubyGems with description, downloads and links. |
GET/vulnerabilities | Known vulnerabilities Security advisories (GHSA / CVE) affecting a package — or only those affecting an exact version — with severity, CVSS vector, fixed versions and references. |
Quick start
Subscribe on RapidAPI (free plan available), copy your key, and call GET /package:
curl --request GET \
--url 'https://package-registry-api-npm-pypi-crates-gems.p.rapidapi.com/package?name=express®istry=npm' \
--header 'x-rapidapi-host: package-registry-api-npm-pypi-crates-gems.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'import requests
url = "https://package-registry-api-npm-pypi-crates-gems.p.rapidapi.com/package?name=express®istry=npm"
headers = {
"x-rapidapi-host": "package-registry-api-npm-pypi-crates-gems.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
}
resp = requests.get(url, headers=headers)
print(resp.json())const res = await fetch("https://package-registry-api-npm-pypi-crates-gems.p.rapidapi.com/package?name=express®istry=npm", {
method: "GET",
headers: {
"x-rapidapi-host": "package-registry-api-npm-pypi-crates-gems.p.rapidapi.com",
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY"
}
});
console.log(await res.json());
Example response
{
"registry": "npm",
"name": "express",
"version": "5.3.0",
"description": "Fast, unopinionated, minimalist web framework",
"license": "MIT",
"homepage": "https://expressjs.com/",
"repository": "https://github.com/expressjs/express",
"keywords": [
"express",
"framework"
],
"author": "TJ Holowaychuk",
"maintainers": [
"wesleytodd",
"jonchurch"
],
"published_at": "2026-10-09T12:56:54.505Z",
"updated_at": "2026-11-20T10:50:03.543Z",
"downloads_last_month": 863323116,
"dependents": 109026,
"dependencies_count": 28,
"engines": {
"node": ">= 18"
},
"types": false,
"unpacked_size_bytes": 76638,
"deprecated": null,
"install": "npm install express",
"url": "https://www.npmjs.com/package/express"
}
Start free. Every plan includes all endpoints; upgrade only when you need more requests. Runs on Cloudflare's global network for low latency worldwide.
Subscribe on RapidAPIRelated APIs
Domain & IP Lookup API
WHOIS/RDAP, domain availability, DNS records, SSL certificates, subdomain finder, IP geolocation with ASN & abuse contacts, ASN lookup.
ToolsFake Data Generator API - Mock & Test Data
Generate realistic fake data for testing: persons, addresses, companies, products, cards & IBANs, internet data, lorem ipsum, custom schemas, CSV.
ToolsPassword Security API - Breach & Strength
Check if a password was leaked in data breaches (900M+ pwned passwords), score its strength, generate secure passwords & passphrases, hash text.
ToolsQR Code & Barcode Generator API
Generate QR codes (URL, Wi-Fi, vCard, email, SMS, event…) and 30 barcode types (Code128, EAN-13, UPC, DataMatrix, PDF417…) as PNG or SVG.
ToolsURL Shortener & Link Analytics API
Short links with custom aliases, expiry & click limits, full click analytics (countries, referrers, devices), bulk shortening, link expander and malware screeni
ToolsWorld Time & Timezone API
Current time in any timezone or city, timezone conversion, DST transitions, time difference, meeting planner and business-day calculator.