Overview
jsDelivr's Data API provides programmatic access to package metadata and download statistics for npm, GitHub, and WordPress packages hosted on the jsDelivr CDN. It requires no authentication and is useful for building dashboards, tracking package popularity, or researching CDN usage trends. All responses are returned as JSON with no rate limits for reasonable usage.
Beginner Tip
No API key is needed. Just construct the URL with the package name and optional version to get stats or file listings. Use the /stats/packages endpoint to compare download volumes across different packages.
Measurement Record
What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.
- Request
- GET https://data.jsdelivr.com/v1/packages/npm/react
- Result
- HTTP 200 · application/json · 1,116,839 bytes · compressed
- Response time
- 37 ms (median of 3) · fastest 34 ms
- Transport
- TLSv1.3 · TLS_AES_128_GCM_SHA256 · certificate issued by Let's Encrypt
- Browser CORS
- Allowed — Access-Control-Allow-Origin: *
- Recorded
- 2026-08-10
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from jsDelivr",
"description": "Package info and download stats on jsDelivr CDN",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
type Package source type (npm, gh, or wp) name Name of the package versions List of available versions for the package on jsDelivr tags Named tags mapping to specific versions (e.g., latest) links URLs to related resources like the package homepage and repository Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://github.com/jsdelivr/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
How This API Fails
We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.
{
"status": 400,
"message": "Bad Request.",
"links": {
"documentation": "https://www.jsdelivr.com/docs/data.jsdelivr.com"
}
} Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →24 Pull Requests
⭐ Beginner's Pick24 Pull Requests is a community initiative that runs every December to encourage developers to contribute to open source projects.
Agify.io
⭐ Beginner's PickAgify.io is a free API that predicts the likely age of a person based solely on their first name, using a database of over 350 million historical records.
API Grátis
API Grátis is a Brazilian API aggregator that bundles multiple free utility services including CEP (postal code) lookup, CNPJ (company registry) data, vehicle plate information, and more — all under a single authentication token.
ApicAgent
⭐ Beginner's PickApicAgent parses User-Agent strings into structured device and browser information, returning details like browser name, version, OS, device type, and whether the client is a bot.
APIs.guru
⭐ Beginner's PickAPIs.guru maintains a crowd-sourced directory of OpenAPI (Swagger) specification files for hundreds of public web APIs, all normalized to OpenAPI 3.0 format.