CDNJS API
Overview
The CDNJS API provides metadata about JavaScript and CSS libraries hosted on cdnjs.com, one of the largest open source CDN networks. You can search for libraries, retrieve version lists, and get CDN URLs for any file in a library—no authentication required. It is ideal for tools that help developers discover and link to front-end dependencies via a fast global CDN.
Beginner Tip
No API key or sign-up is needed. Try fetching info about a specific library using its exact npm package name, e.g., /libraries/jquery. Use the fields query parameter to limit which fields are returned and speed up responses.
Available Data
Example Response
{
"title": "The Great Gatsby",
"authors": [
"F. Scott Fitzgerald"
],
"publishedDate": "1925-04-10",
"pageCount": 218,
"categories": [
"Fiction"
],
"imageLinks": {
"thumbnail": "https://books.google.com/..."
},
"averageRating": 4
} Field Reference
name The package name as registered on CDNJS, e.g., jquery. version The latest stable version number available on the CDN. description Short description of what the library does. homepage URL of the library's official website or repository. filename The main file name for the library, e.g., jquery.min.js. latest Full CDN URL to the latest minified version of the library. Implementation Example
const url = "https://api.cdnjs.com/libraries/jquery";
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.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 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.