Documentation

This documentation and answers will help you get started and master the way you use PageCDN for better content delivery.

List public repos and versions

GEThttps://pagecdn.com/api/v2/public/reposCopy

With this endpoint, you can:

  • Fetch list of all repos on the Public CDN. This will include open-source libraries, public WordPress themes, public WordPress plugins, but excludes Easy Fonts. This will provide some additional details like human readable project name, and list of versions.
  • Fetch details of a specific repo.
By default, this endpoint returns versions list and other details of all 14000+ repos. If you use the endpoint without any filtering, you may soon run out of memory in your script. You are recommended to filter details by a specific repo to avoid any trouble.

PageCDN maintains just production releases, and skips all releases that have trunk, rc, beta, alpha, dev, pre, canary or similar keywords that indicate a non-production release. Releases containing invalid characters are also skipped.

Query String Parameters

apikeystringrequiredThe api key to identify originator of the request.
repostringoptionalSpecify the repo to list all its versions and other details, as lib/jquery.

Successful Response

 {
    "status": "200",
    "message": "Ok",
    "details": "Success",
    "response": {
        "count": 14109,
        "repos": [
            {
                "repo": "lib/normalize",
                "repo_name": "Normalize.css",
                "versions": [
                    "3.0.0",
                    "3.0.1",
                    "3.0.2",
                    "3.0.3",
                    "4.0.0",
                    "4.1.0",
                    "4.1.1",
                    "4.2.0",
                    "5.0.0",
                    "6.0.0",
                    "7.0.0",
                    "8.0.0",
                    "8.0.1",
                    "v1.0.0",
                    "v1.0.1",
                    "v1.0.2",
                    "v1.1.0",
                    "v1.1.1",
                    "v1.1.2",
                    "v1.1.3",
                    "v2.0.0",
                    "v2.0.1",
                    "v2.1.0",
                    "v2.1.1",
                    "v2.1.2",
                    "v2.1.3"
                ]
            },
            {
                "repo": "lib/impress",
                "repo_name": "Impress.js",
                "versions": [
                    "0.1",
                    "0.2",
                    "0.3",
                    "0.4",
                    "0.4.1",
                    "0.5",
                    "0.5.1",
                    "0.5.2",
                    "0.5.3",
                    "0.6.0",
                    "1.0.0"
                ]
            },
            
            ...
        ]
    }
} 

Sample Requests

List all repos

https://pagecdn.com/api/v2/public/repos?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef 

Lookup details of a specific repo

https://pagecdn.com/api/v2/public/repos?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef&repo=lib/jquery