Public APIs
jsDelivr favicon

jsDelivr

Development

Package info and download stats on jsDelivr CDN.

jsDelivr's website screenshot

About jsDelivr

The jsDelivr API provides metadata for packages hosted on the jsDelivr CDN, covering both npm and GitHub sources. It returns package versions, files, npm entry points, and CDN URLs, and supports looking up CDN files by their hashes. Usage statistics are also available, though updated with a 48 hour delay.

The API is free to use and does not enforce rate limits, though the maintainers ask to be contacted for sustained usage above 100 requests per minute. It does not support packages larger than 50 MB for GitHub or 150 MB for npm, and requests to list files above that size return a 403 response. There is no package search endpoint; the documentation points to the official npm API and Algolia's npm search for that purpose.

This API is used by tools that need to resolve package versions and files programmatically, such as browser-based development environments, dependency resolvers, documentation lookups, badge generators, and package search enrichment services. Examples cited include CodeSandbox, TypeScript Playground, Shields.io, Microsoft Library Manager, Algolia npm-search, and Drupal Bootstrap.

Key features

  • Provides npm and GitHub package metadata including versions, files, and entry points
  • Returns CDN URLs for hosted files
  • Supplies jsDelivr usage and download statistics
  • Looks up CDN files by their hashes

Frequently asked questions

Is the jsDelivr API free to use?

Yes, the API is free to use and imposes no rate limits, though users planning 100+ RPM for extended periods should contact jsDelivr first.

Are there file size restrictions?

Neither the jsDelivr CDN nor this API supports packages larger than 50 MB for GitHub or 150 MB for npm.

Does the API support package search?

No, there is no search endpoint in this API; the official npm API or Algolia's npm search should be used instead.

How fresh are the usage statistics?

Usage statistics are available with a 48 hour delay.

What kinds of projects use this API?

Tools such as CodeSandbox, TypeScript Playground, Shields.io, Microsoft Library Manager, Algolia npm-search, and Drupal Bootstrap use this API.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product