StatMuse FC Statistics Access Skill
This skill fetches football (soccer) statistics from StatMuse's FC section at www.statmuse.com/fc. It parses HTML table data returned by natural language queries.
Features
- Natural Language Queries: Ask questions like "premier league top scorers 2023-24" or "most sofascore rating in la liga 2022-23"
- Player Statistics: Search for player stats by league, season, and stat type
- League Standings: Get current or historical league tables
- Head-to-Head: View match history between two teams
Available Functions
ask
Ask a natural language question to StatMuse FC.
Parameters:
query (required): Natural language question
format (optional): Output format - 'first_table' (default), 'full', or 'text'
Examples:
"premier league top scorers 2023-24" - Top goal scorers
"highest rated players la liga 2022-23" - Best player ratings
"real madrid vs barcelona 2023" - Match history
"manchester city 2023-24 stats" - Team statistics
search_player_stats
Search for player statistics with structured parameters.
Parameters:
player (optional): Player name
league (optional): League name (e.g., "premier league", "la liga")
season (optional): Season string (e.g., "2023-24")
stat (optional): Stat to search for ("goals", "assists", "rating")
club (optional): Club/team name
limit (optional): Max results (default 25)
get_standings
Get league standings/table.
Parameters:
league (required): League name
season (optional): Season string
head_to_head
Get head-to-head match history between two teams.
Parameters:
team1 (required): First team name
team2 (required): Second team name
season (optional): Season string
Response Format
All functions return structured data:
error: null if success, error code if failed
message: Error description if applicable
headers: Column headers for the data table
rows: Array of data rows (each row is an array of values)
row_count: Number of data rows
text: Plain text table representation
Notes
- Some queries may return "query not understood" if StatMuse doesn't recognize the format
- Queries typically return multiple related tables (e.g., standings from multiple leagues)
- Use
format: 'full' in the ask function to get all tables
- Stats include Sofascore ratings, goals, assists, appearances, minutes, and more
Supported Leagues
- Premier League
- La Liga (LaLiga)
- Bundesliga
- Serie A
- Ligue 1
- Champions League
- And more...
Example Queries
# Top scorers in Premier League
execute({'function': 'ask', 'query': 'premier league top scorers 2023-24'})
# Highest rated La Liga players
execute({'function': 'search_player_stats', 'league': 'la liga', 'season': '2022-23', 'stat': 'rating'})
# Premier League standings
execute({'function': 'get_standings', 'league': 'premier league', 'season': '2023-24'})
# Real Madrid vs Barcelona
execute({'function': 'head_to_head', 'team1': 'real madrid', 'team2': 'barcelona', 'season': '2023'})
1---2name: www-statmuse-com3description: StatMuse FC Statistics Access Skill4---5# StatMuse FC Statistics Access Skill67This skill fetches football (soccer) statistics from StatMuse's FC section at `www.statmuse.com/fc`. It parses HTML table data returned by natural language queries.89## Features1011- **Natural Language Queries**: Ask questions like "premier league top scorers 2023-24" or "most sofascore rating in la liga 2022-23"12- **Player Statistics**: Search for player stats by league, season, and stat type13- **League Standings**: Get current or historical league tables14- **Head-to-Head**: View match history between two teams1516## Available Functions1718### ask1920Ask a natural language question to StatMuse FC.2122**Parameters:**23- `query` (required): Natural language question24- `format` (optional): Output format - 'first_table' (default), 'full', or 'text'2526**Examples:**27- `"premier league top scorers 2023-24"` - Top goal scorers28- `"highest rated players la liga 2022-23"` - Best player ratings29- `"real madrid vs barcelona 2023"` - Match history30- `"manchester city 2023-24 stats"` - Team statistics3132### search_player_stats3334Search for player statistics with structured parameters.3536**Parameters:**37- `player` (optional): Player name38- `league` (optional): League name (e.g., "premier league", "la liga")39- `season` (optional): Season string (e.g., "2023-24")40- `stat` (optional): Stat to search for ("goals", "assists", "rating")41- `club` (optional): Club/team name42- `limit` (optional): Max results (default 25)4344### get_standings4546Get league standings/table.4748**Parameters:**49- `league` (required): League name50- `season` (optional): Season string5152### head_to_head5354Get head-to-head match history between two teams.5556**Parameters:**57- `team1` (required): First team name58- `team2` (required): Second team name59- `season` (optional): Season string6061## Response Format6263All functions return structured data:64- `error`: null if success, error code if failed65- `message`: Error description if applicable66- `headers`: Column headers for the data table67- `rows`: Array of data rows (each row is an array of values)68- `row_count`: Number of data rows69- `text`: Plain text table representation7071## Notes7273- Some queries may return "query not understood" if StatMuse doesn't recognize the format74- Queries typically return multiple related tables (e.g., standings from multiple leagues)75- Use `format: 'full'` in the ask function to get all tables76- Stats include Sofascore ratings, goals, assists, appearances, minutes, and more7778## Supported Leagues7980- Premier League81- La Liga (LaLiga)82- Bundesliga83- Serie A84- Ligue 185- Champions League86- And more...8788## Example Queries8990```python91# Top scorers in Premier League92execute({'function': 'ask', 'query': 'premier league top scorers 2023-24'})9394# Highest rated La Liga players95execute({'function': 'search_player_stats', 'league': 'la liga', 'season': '2022-23', 'stat': 'rating'})9697# Premier League standings98execute({'function': 'get_standings', 'league': 'premier league', 'season': '2023-24'})99100# Real Madrid vs Barcelona101execute({'function': 'head_to_head', 'team1': 'real madrid', 'team2': 'barcelona', 'season': '2023'})102```