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

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

PageCDN data via REST API

Example Response

Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.

JSON Response · Illustrative
{
  "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

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://pagecdn.com/api/public/libraries?name=jquery&api_key=YOUR_API_KEY";
// 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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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
Listing details not endpoint-verified

Related Tags

Similar APIs

View All →