On this page
Getting started
CrunchClash API is a Premier League Data API that serves structured player, club, match, and season statistics at /v1. Create a developer account, receive 5,000 free credits once at signup, issue an API key, then call authenticated endpoints.
Base URL (production): https://api.crunchclash.com
Local development: use http://localhost:3000 only when running the API on your machine.
Keep API keys on the server. Do not embed secrets in public frontend bundles or browser-only apps. Prefer a backend proxy or the portal playground for interactive exploration.
1. Create a key
- Open
/auth/signupand create an account (verify your email). - Open
/portal/keysand create a key (unifiedcc_prefix). - Copy the secret immediately — it is shown once and cannot be retrieved again.
- Authentication
- Catalogue
- Query DSL
- Exports
- OpenAPI JSON:
/v1/openapi - Portal playground:
/portal/playground
2. Call a public endpoint
cURL
curl -s https://api.crunchclash.com/v1/health
JavaScript
const API_KEY = "YOUR_API_KEY";
const res = await fetch("https://api.crunchclash.com/v1/health");
console.log(await res.json());
Python
import requests
print(requests.get("https://api.crunchclash.com/v1/health").json())
3. Call an authenticated endpoint
cURL
curl -s https://api.crunchclash.com/v1/catalog/metrics \
-H "Authorization: Bearer YOUR_API_KEY"
JavaScript
const API_KEY = "YOUR_API_KEY";
const res = await fetch("https://api.crunchclash.com/v1/catalog/metrics", {
headers: { Authorization: `Bearer ${API_KEY}` },
});
console.log(await res.json());
Python
import requests
API_KEY = "YOUR_API_KEY"
r = requests.get(
"https://api.crunchclash.com/v1/catalog/metrics",
headers={"Authorization": f"Bearer {API_KEY}"},
)
print(r.json())
Docs live in portal/registry
Interactive endpoint docs and the playground are driven by the endpoint registry (lib/registry/endpoints.ts) plus the parameter registry (lib/registry/parameters.ts) for performance forms (multi-metric chips, matchweeks, live URL preview). Browse /docs and /reference, try calls in /portal/playground (portal key id via proxy, or optional pasted key). Machine contract remains /v1/openapi (generated from the same registry). Performance filter contracts: docs/PERF_COMPATIBILITY_MATRIX.md. Responses include human-readable entity names alongside IDs (docs/ENTITY_ENRICHMENT.md).
Next
Related: API Reference · Playground