Skip to content
Data
Skill

/tennis-data

ATP and WTA tennis data via ESPN public endpoints — tournament scores, season calendars, player rankings, player profiles, and news. Zero config, no API keys. Use when: user asks about tennis scores, match results, tournament draws, ATP/WTA rankings, tennis player info, tennis

From plugin
sports-skills
27331 skills

Claude Code

$ npx -y skills add machina-sports/sports-skills --skill tennis-data --agent claude-code

SKILL.md

tennis-data.SKILL.md
name: tennis-data
description: |
  ATP and WTA tennis data via ESPN public endpoints — tournament scores, season calendars, player rankings, player profiles, and news. Zero config, no API keys.

  Use when: user asks about tennis scores, match results, tournament draws, ATP/WTA rankings, tennis player info, tennis news, a WTA tournament's entry list, or a WTA player's match history.
  Don't use when: user asks about other sports — use football-data (soccer), nfl-data (NFL), nba-data (NBA), wnba-data (WNBA), nhl-data (NHL), mlb-data (MLB), golf-data (golf), cricket-data (cricket), cfb-data (college football), cbb-data (college basketball), or fastf1 (F1). For betting odds use polymarket or kalshi. For news use sports-news. Don't use for live point-by-point data — scores update after each set/match.
license: MIT
metadata:
  author: machina-sports
  version: "0.1.0"

Tennis Data (ATP + WTA)

Before writing queries, consult `references/api-reference.md` for endpoints, ID conventions, and data shapes.

Quick Start

Prefer the CLI — it avoids Python import path issues:

sports-skills tennis get_scoreboard --tour=atp
sports-skills tennis get_rankings --tour=wta
sports-skills tennis get_calendar --tour=atp --year=2026
sports-skills tennis get_wta_entry_list --tournament_id=901 --year=2025
sports-skills tennis get_wta_player_results --player_id=320760 --year=2025 --limit=10

CRITICAL: Before Any Query

CRITICAL: Before calling any data endpoint, verify:

  • `tour` (`atp` or `wta`) is passed where the command requires it — see below.
  • Year is derived from the system prompt's `currentDate` — never hardcoded.

The `tour` Parameter

  • **ATP**: Men's professional tennis tour
  • **WTA**: Women's professional tennis tour

Per command:

  • `get_scoreboard`: `tour` is optional. Omit it to get ATP and WTA in one call; `date` is optional either way. If one tour fails, the result keeps the other tour's tournaments and adds `partial: true` plus a `warnings` entry naming the failed tour; it errors only when both fail.
  • `get_rankings`, `get_calendar`, `get_news`: `tour` is required. If the user doesn't specify, ask which tour; if they want both, call once per tour.
  • `get_player_info`: takes only `player_id` (ESPN athlete ID) — no `tour`.
  • `get_wta_entry_list`, `get_wta_player_results`: take native WTA ids — no `tour`.

Commands

| Command | Description | |---|---| | `get_scoreboard` | Live/recent tournament scores for one tour, or both when `tour` is omitted | | `get_rankings` | ATP or WTA player rankings | | `get_calendar` | Full season tournament calendar | | `get_player_info` | Individual tennis player profile | | `get_news` | Tennis news articles | | `get_wta_entry_list` | WTA entry list (singles players and doubles teams) for one tournament edition — WTA API | | `get_wta_player_results` | A WTA player's most recent match results (bounded window), newest first — WTA API |

See `references/api-reference.md` for full parameter lists and return shapes.

WTA API Commands Use Native WTA IDs

`get_wta_entry_list` and `get_wta_player_results` read the public WTA API (api.wtatennis.com), not ESPN:

  • `tournament_id` and `player_id` are the WTA's own numeric ids, positive decimals with no leading zeros (e.g. tournament `901`, player `320760`). ESPN ids from `get_rankings` / `get_player_info` / `get_scoreboard` do not work here, and there is no id mapping between the two.
  • `get_wta_player_results` returns a **bounded window of the most recent results** (at most `limit`, optionally within one `year`), not a career history. There is no total count: `has_more` only says further matches exist, and `history_complete` is always `false`. Never present `count` as a career or season total.
  • Results are dated by **tournament start date** (`tournament_start_date`), not the day each match was played. Never present it as a match date.
  • Matches within one tournament keep the provider's order, which is not guaranteed to be playing order. Don't claim exact within-tournament chronology.
  • `winner_code` is the provider's raw side code; no win/loss is derived from it. Don't state who won from it.
  • Both commands are WTA-published snapshots (`source.fetched_at`, cached up to 10 minutes). Don't call them complete or live. Under `SPORTS_SKILLS_REPLAY=replay`/`fill`, `source.fetched_at` is `null` and `source.served_at` is only local serving time — not data freshness.

Workflows

Live Tournament Check

1. `get_scoreboard --tour=<atp|wta>` 2. Present current matches by round. 3. For player info, use `get_player_info --player_id=<id>`.

Rankings Lookup

1. `get_rankings --tour=<atp|wta> --limit=20` 2. Present rankings with points and trend.

Season Calendar

1. `get_calendar --tour=<atp|wta> --year=<year>` 2. Filter for specific tournament.

WTA Entry List

1. `get_wta_entry_list --tournament_id=<wta_id> --year=<year>` 2. Present each event (`format`: singles/doubles) with seeds and entry types. It is an entry list, not a draw.

WTA Player Form

1. `get_wta_player_results --player_id=<wta_id> --year=<year> --limit=20` 2. Group by tournament; say these are the most recent `count` matches, and when `has_more` is true that earlier matches exist but were not fetched.

Examples

Example 1: Live matches User says: "What ATP matches are happening right now?" Actions: 1. Call `get_scoreboard(tour="atp")` Result: Current tournament matches organized by round with scores and status

Example 2: Women's rankings User says: "Show me the WTA rankings" Actions: 1. Call `get_rankings(tour="wta", limit=20)` Result: Top 20 WTA players with rank, name, points, and trend

Example 3: Upcoming Grand Slam date User says: "When is the French Open this year?" Actions: 1. Derive year from `currentDate` 2. Call `get_calendar(tour="atp", year=<derived_year>)` 3. Search results for "Roland Garros" (the French Open's official name) Result: French Open dates, location (Paris), and surface (clay)

Commands that DO

Read more
@machina-sports
Ships withsports-skills

Open-source agent skills for live sports data and prediction markets. Built for the Agent Skills spec. Works with sportsclaw, OpenClaw, Claude Code, Cursor, Copilot, Gemini CLI, Hermes Agent, and every major AI agent. Zero API keys. Zero signup.

Stars on GitHub

Momentum

stars in total
273
Star history of machina-sports/sports-skills on GitHub, a chart by star-history.com

Other skills on sports-skills.

betting

betting

Betting analysis — odds conversion, de-vigging, edge detection, Kelly criterion, arbitrage detection, parlay analysis, and line…

cbb-data

cbb-data

College Basketball (CBB) data via ESPN public endpoints and the NCAA's official endpoints — scores, standings, rosters,…

cfb-data

cfb-data

College Football (CFB) data via ESPN public endpoints and the NCAA's official endpoints — scores, standings, rosters, schedules,…

cricket-data

cricket-data

Cricket data via ESPN public endpoints and Cricsheet open data — live-ish series scoreboards, standings, match summaries and news…

espn-api

espn-api

Raw reference for ESPN's undocumented public JSON endpoints, for a league or operation that no dedicated sports-skills skill…

esports

esports

Esports data — Dota 2 (OpenDota) and League of Legends esports (Leaguepedia). Pro matches, tournaments, teams, and structured LoL…

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem013d69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog2w41k
@posthog@posthogInstall Skill

Questions about tennis-data.

Which coding agents can use tennis-data?
tennis-data installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.