Open Source CDNLookup Files
Lookup tool allows you to programatically lookup Open Source files using their sha256 hash. It then returns JSON response containing CDN URL of the matched file. A sample lookup request and its response looks like:
GET https://pagecdn.io/lookup/0925e8ad7bd971391a8b1e98be8e87a6971919eb5b60c196485941c3c1df089a
{
"status": "200",
"message": "Ok",
"details": "Success",
"response": {
"file_url": "https:\/\/pagecdn.io\/lib\/jquery\/3.4.1\/jquery.min.js"
}
}
This lookup endpoint is fast and reliable as it is accelerated by CDN and is used in production by hundreds of websites. However, you are recommended to create a local copy of responses to avoid connection and latency costs.