jsDelivr

API

Free API for jsDelivr CDN package info & download stats

Visit Website

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)

script.js JS

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

Unpkg API Search Google
Skypack API Search Google

People Also Ask about jsDelivr

jsDelivr vs Unpkg APIjsDelivr vs Skypack API jsDelivr 2025 review

Tool Info

Pricing Free
Category Development
Platform Public API

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

More Development Tools