Repo Files

get
List files of a public repo

https://pagecdn.com/api/v2/public/files
This endpoint allows you to fetch list of all files of a repo (a library, theme, etc) on Public CDN. You can optionally filter files by version.
Request
Response
Query Parameters
apikey
required
string
The api key to identify originator of the request.
repo
required
string
Specify the repo of which you want to list files, i.e. lib/jquery
version
optional
string
You can optionally limit the files list to a specific version. Like 3.4.0 or v3.4.0. See version names from official repo of that library.
200: OK
Successfully found 7 file for repo lib/jquery and version 3.4.0.
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": {
"count": 7,
"files": [
{
"version": "3.4.0",
"file_hash": "6093d906fa1c80c99d08c89735c87aa13955bfccf2e3688f2bbeac34497c4383",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/core.js",
"file_size": 9165
},
{
"version": "3.4.0",
"file_hash": "0d864c082f074c2f900ebe5035a21c7d1ed548fb5c212ca477ee9e4a6056e6aa",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.js",
"file_size": 279860
},
{
"version": "3.4.0",
"file_hash": "0497a8d2a9bde7db8c0466fae73e347a3258192811ed1108e3e096d5f34ac0e8",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.min.js",
"file_size": 88151
},
{
"version": "3.4.0",
"file_hash": "c675644b85074aa21b5633a8c305e8818454f1440cf766957ed03be5dd808512",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.min.map",
"file_size": 136403
},
{
"version": "3.4.0",
"file_hash": "9a295ecf1e656a4ad9bb438ff5bd90585cb57edfd41142ba347d49ab3f215214",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.slim.js",
"file_size": 226518
},
{
"version": "3.4.0",
"file_hash": "65a5e76241c6a8886a4db27a301e25f45aecfebed4e23971ee2afc3c9601a9b2",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.slim.min.js",
"file_size": 71043
},
{
"version": "3.4.0",
"file_hash": "6b8587d211685b8cde0a827e75fff6319f01d75feb87324ddc43b0d7b9255fb1",
"file_url": "https://pagecdn.io/lib/jquery/3.4.0/jquery.slim.min.map",
"file_size": 108763
}
]
}
}

Sample Requests

List all files of a repo:

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

List files of a repo filtered by a version:

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