Documentation

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

List repo files filtered by version

GEThttps://pagecdn.com/api/v2/private/version/filesCopy

Query String Parameters

apikeystringrequiredThe api key to identify originator of the request.
repostringrequiredThe repo of which you want to list version files, as site/wxyz.
versionstringrequiredVersion to filter files, as 3.4.1.

Successful Response

 {
    "status": "200",
    "message": "Ok",
    "details": "Success",
    "response": {
        "count": 5282,
        "files": [
            {
                "version": "3.4.0",
                "file_hash": "0d864c082f074c2f900ebe5035a21c7d1ed548fb5c212ca477ee9e4a6056e6aa",
                "file_url": "https://pagecdn.io/repo/wxyz/3.4.0/scripts.js"
            },
            {
                "version": "3.4.0",
                "file_hash": "0497a8d2a9bde7db8c0466fae73e347a3258192811ed1108e3e096d5f34ac0e8",
                "file_url": "https://pagecdn.io/repo/wxyz/3.4.0/scripts.min.js"
            },
            {
                "version": "3.4.0",
                "file_hash": "9a295ecf1e656a4ad9bb438ff5bd90585cb57edfd41142ba347d49ab3f215214",
                "file_url": "https://pagecdn.io/repo/wxyz/3.4.0/helper.js"
            },
            
            ...
        ]
    }
} 

Sample Requests

List all files in a repo filtered by a version

https://pagecdn.com/api/v2/private/version/files?apikey=160a426ff2894252cd7cebbdd6d6b7da8fcd319c65b70468f10b6690c45d02ef&repo=repo/wxyz&version=3.4.1