There is a simple yet effective API for Caching Score, simple add in /api
prior to the /scan
in the URL.
e.g.
curl -s 'https://www.cachingscore.com/api/scan?q=www.cachingscore.com' \
| jq -r '.result.score'
Which yields:
{
"points": 281,
"totalPoints": 451,
"percent": 62.3059866962306,
"grade": "C"
}
Of course, there are much more properties to see in the JSON response, everything you see in the UI of Caching Score is available in the API.
There is a rate limits in place for API scans, just like through the UI.