jsDelivr
APIFree API for jsDelivr CDN package info & download stats
Overview
The jsDelivr Data API offers RESTful endpoints to access package metadata (versions, file lists, author details) and download statistics (daily, monthly, total) for packages hosted on the jsDelivr CDN. Responses are JSON-formatted. Key endpoints include /v1/packages/npm/{package} for NPM package info, /v1/stats/packages/npm/{package} for download stats, and /v1/stats/gh/{user}/{repo} for GitHub packages. Use cases: Developers can integrate it to display download counts in dashboards, track package popularity trends, or automate dependency update checks.
Example Integration (JavaScript)
fetch('https://github.com/jsdelivr/data.jsdelivr.com')
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err)); Key Features
- RESTful endpoints
- JSON response format
- No API key required
- Supports NPM/GitHub packages
- Detailed download statistics
Frequently Asked Questions
? Is the jsDelivr API free to use?
Yes, the jsDelivr Data API is completely free for public use without any subscription fees.
? Does it require an API Key?
No, authentication is not needed to access the jsDelivr Data API endpoints.
? What is the response format?
All responses from the jsDelivr Data API are in JSON format, which is easy to parse for developers.
Top Alternatives
People Also Ask about jsDelivr
Tool Info
Pros
- ⊕ Easy integration (no authentication)
- ⊕ Open source codebase
- ⊕ Comprehensive package metadata
- ⊕ Fast CDN-backed responses
Cons
- ⊖ Rate-limited requests
- ⊖ No official service level agreement (SLA)
- ⊖ Limited to jsDelivr-hosted packages