Query

Show me all goals and assists by player 9 in the last 5 matches

Try these queries:

  • Show team stats for the last 5 matches including distance run, intensity, and possession
  • Show player stats for player 9 including shot accuracy, pass completion, and through ball success
  • Generate player report for player 7 with focus on improvement and key attributes
  • Show all sprints over 25 km/h by player 11
  • Get frame by frame positions for goal scored by player 9 at 23:15 in match m127
  • Show heatmap for player 7 in last match
query PlayerEvents { events( playerId: "9" eventType: [GOAL, ASSIST] limit: 5 ) { matchId timestamp type position details } }

Example Queries:

  • Query team statistics
  • Query player performance
  • Query player profile
  • Query match events
  • Query frame data
GET https://api.matchgraph.io/v1/events?playerId=9&eventType=GOAL,ASSIST&limit=5

Results

{
    "query_results": {
        "events": [
            {
                "match_id": "m123",
                "timestamp": "2024-03-15T15:23:12",
                "type": "goal",
                "player_id": 9,
                "position": [32, 45],
                "details": {
                    "assist_by": 11,
                    "shot_type": "right_foot",
                    "xG": 0.76
                }
            },
            {
                "match_id": "m125",
                "timestamp": "2024-03-18T14:15:30",
                "type": "assist",
                "player_id": 9,
                "position": [28, 40],
                "details": {
                    "scored_by": 7,
                    "pass_type": "through_ball",
                    "xA": 0.45
                }
            }
        ],
        "total_matches": 5,
        "stats": {
            "goals": 8,
            "assists": 6,
            "xG_total": 5.23,
            "xA_total": 3.87
        }
    }
}