PageCDN API

Development / API Key Intermediate HTTPS CORS
Varies by plan (check documentation)

Overview

PageCDN exposes a public API to query its CDN library catalog — including JavaScript packages, CSS frameworks, and web fonts — so developers can look up available versions and generate optimized CDN URLs programmatically. It is particularly useful for build tools or dashboards that need to resolve the latest stable version of a library without scraping npm or GitHub. An API key is required but is freely available on registration.

Beginner Tip

Sign up at pagecdn.com to get a free API key, then include it as the api_key query parameter in every request. Start by calling the library-search endpoint to confirm your key works before building anything more complex. The response includes pre-built CDN URLs you can drop directly into HTML script or link tags.

Available Data

PageCDN data via REST API

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from PageCDN",
    "description": "Public API for javascript, css and font libraries on PageCDN",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

name Official package name as indexed on PageCDN
version Latest stable version number available on the CDN
url Fully formed CDN URL ready to use in a script or link tag
type Asset type — "js", "css", or "font"
size File size in bytes of the minified asset served from the CDN

Implementation Example

Request
const url = "https://pagecdn.com/docs/public-api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
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

401 Unauthorized Missing or invalid api_key parameter in the request
Register at pagecdn.com, copy your API key from the dashboard, and append ?api_key=YOUR_KEY to every request
Empty results array Library name typo or querying a package that is not indexed on PageCDN
Try a shorter, exact package name (e.g., "jquery" not "jQuery.min") and check the PageCDN library list for supported packages
Rate limit exceeded (429) Too many requests in a short period on the free tier
Add a short delay between bulk requests or upgrade to a paid plan for higher rate limits

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS YES
Category Development
Difficulty Intermediate
Verified: 2026-04-04

Related Tags

Similar APIs

View All →