On this page
Catalogue guide
The semantic catalogue is the authority for metrics, grains, dimensions, and physical Mongo paths. Always validate metric availability against grain before querying.
Endpoints
| Path | Purpose |
|---|---|
GET /v1/catalog | Full catalogue |
GET /v1/catalog/metrics | Metrics with grains / provenance |
GET /v1/catalog/metrics/{id} | Single metric + physical sources |
GET /v1/catalog/dimensions | Dimensions |
GET /v1/catalog/entities | Entities |
GET /v1/catalog/coverage | Coverage notes |
Provenance values: sdp (source-provided) | derived_partial (derived player-match).
Examples
cURL
curl -s https://api.crunchclash.com/v1/catalog/metrics/expectedGoals \
-H "Authorization: Bearer YOUR_API_KEY"
JavaScript
const API_KEY = "YOUR_API_KEY";
const res = await fetch(
"https://api.crunchclash.com/v1/catalog/metrics/expectedGoals",
{ 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/expectedGoals",
headers={"Authorization": f"Bearer {API_KEY}"},
)
print(r.json()["data"])
Use catalogue metric ids in POST /v1/query and resource select parameters — never invent Mongo field paths.
Related: API Reference · Playground