Advanced Football Analytics API

How does CrunchClash support football data analysis?

Go beyond single-resource lookups with ranked metric tables, side-by-side subject comparisons, catalogue discovery, structured queries, derived metrics, and export jobs.

What you can build

Use these surfaces when you need leaderboards, multi-subject comparisons, or custom filter logic without downloading large datasets to process locally. All metric ids must come from the allowlisted catalogue; coverage varies by grain and season. Authentication uses an API key; each successful billable request costs one credit.

Supported capabilities

  • Statistical rankings (GET /v1/performance/rankings) with grain, entity, metrics, thresholds, and sort
  • Comparisons of 2–5 subjects on season grains (GET /v1/performance/comparisons)
  • Structured query engine (POST /v1/query) with filters, subjects, sort (up to 3 keys), and limit
  • Catalogue discovery (/v1/catalog/*) for metrics, dimensions, and coverage
  • Async exports (POST /v1/exports) embedding the same query DSL

Query engine preview

Toggle season vs match grain below. Matchweek and kickoff date filters only appear for match grains—matching the live DSL.

Season: 2026
Club: club_demo_01
Player: subjects: player_demo_01
Metrics: goals, assists, expectedGoals…
Min minutes: minutes ≥ 450 / 60
Min appearances: appearances ≥ 10
Sort: goals desc
Pagination: limit 25
POST /v1/query
{
  "entity": "player",
  "grain": "player-season",
  "season": "2026",
  "subjects": [
    "player_demo_01"
  ],
  "metrics": [
    "goals",
    "assists",
    "expectedGoals",
    "minutes",
    "appearances"
  ],
  "filters": [
    {
      "field": "club",
      "operator": "eq",
      "value": "club_demo_01"
    },
    {
      "field": "minutes",
      "operator": "gte",
      "value": 450
    },
    {
      "field": "appearances",
      "operator": "gte",
      "value": 10
    }
  ],
  "sort": [
    {
      "field": "goals",
      "direction": "desc"
    }
  ],
  "limit": 25
}
Sample response
{
  "data": [
    {
      "player_id": "player_demo_01",
      "club_id": "club_demo_01",
      "goals": 12,
      "assists": 5,
      "expectedGoals": 10.4,
      "minutes": 1620,
      "appearances": 18
    }
  ],
  "meta": {
    "count": 1,
    "limit": 25,
    "_example": true
  }
}

Interactive demo uses fixtures only. Matchweek and date-range filters apply on match grains (player-match / team-match). Live POST /v1/query remains the authoritative contract; interactive queries use limit (not cursor pagination).

Example query body

POST /v1/query
{
  "entity": "player",
  "grain": "player-season",
  "season": "2026",
  "subjects": [
    "player_demo_01"
  ],
  "metrics": [
    "goals",
    "assists",
    "expectedGoals",
    "minutes",
    "appearances"
  ],
  "filters": [
    {
      "field": "club",
      "operator": "eq",
      "value": "club_demo_01"
    },
    {
      "field": "minutes",
      "operator": "gte",
      "value": 450
    },
    {
      "field": "appearances",
      "operator": "gte",
      "value": 10
    }
  ],
  "sort": [
    {
      "field": "goals",
      "direction": "desc"
    }
  ],
  "limit": 25
}

Example rankings response

JSON
{
  "data": [
    {
      "rank": 1,
      "entity_id": "player_demo_01",
      "metric": "goals_per_90",
      "value": 0.67
    },
    {
      "rank": 2,
      "entity_id": "player_demo_02",
      "metric": "goals_per_90",
      "value": 0.61
    }
  ],
  "meta": {
    "take": 25,
    "count": 2,
    "has_more": false,
    "next_after": null
  }
}

Important constraints

  • Interactive queries paginate with limit (not cursor take / after).
  • Matchweek and kickoff_at filters apply on match grains, not default season aggregates.
  • Missing metrics are not zeros—check catalogue coverage for the grain and season you request.

Related: expected goals (xG), metrics catalogue, filtering and query.

Query Premier League statistics your way

Sign up for 5,000 free credits and try rankings, comparisons, and POST /v1/query in the playground.