# Tennis Abstract player match history API

Get Tennis Abstract player match history with season, surface and result filters via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, player, and retrieve structured data including source match-history identifier, chart id, selected player’s match statistics, and separate opponent match statistics to match histories, and statistical links.

Documentation: https://openany.si/tennis-abstract/tennis-abstract-player-match-history-api/9c9cca50-1dd8-431b-bc88-532bb7803ae3/
API ID: 9c9cca50-1dd8-431b-bc88-532bb7803ae3
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/tennisabstract/v1/matches
Page update time: 2026-12-03T02:47:56.986Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:55.245Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Tennis Abstract Player Matches API

Pass player and optional tour, year, surface, level, result, opponent or tournament. career=true expands WTA coverage before the last two seasons. limit defaults to 100, maximum 500.

## What You Can Build

- **Match histories**: Filter source match records by season and surface.
- **Statistical links**: Connect available chart\_id values to Charted Match Stats.

## Returned Data

| Field | Meaning |
| --- | --- |
| `matches[].match_id` | Source match-history identifier |
| `matches[].chart_id` | Separate Match Charting Project identifier when present |
| `matches[].stats` | Selected player’s match statistics |
| `matches[].opponent_stats` | Separate opponent match statistics |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Tennis Abstract player match history API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "player": {
          "type": "string",
          "description": "Player name, slug or tennisabstract.com player link."
        },
        "tour": {
          "type": "string",
          "description": "atp (default) or wta.",
          "enum": [
            "atp",
            "wta"
          ]
        },
        "year": {
          "type": "string",
          "description": "Season (YYYY)."
        },
        "surface": {
          "type": "string",
          "description": "Court surface.",
          "enum": [
            "hard",
            "clay",
            "grass",
            "carpet"
          ]
        },
        "level": {
          "type": "string",
          "description": "Tournament level.",
          "enum": [
            "grand-slam",
            "masters",
            "tour",
            "tour-finals",
            "davis-cup",
            "olympics",
            "challenger",
            "itf",
            "premier",
            "exhibition",
            "junior"
          ]
        },
        "result": {
          "type": "string",
          "description": "Only wins, losses or scheduled matches.",
          "enum": [
            "win",
            "loss",
            "upcoming"
          ]
        },
        "opponent": {
          "type": "string",
          "description": "Opponent name (part of it)."
        },
        "tournament": {
          "type": "string",
          "description": "Tournament name (part of it)."
        },
        "career": {
          "type": "string",
          "description": "WTA: include seasons before the last two.",
          "enum": [
            "true",
            "false"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Matches per page (default 100, max 500)."
        },
        "offset": {
          "type": "integer",
          "description": "Matches to skip."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      },
      "required": [
        "player"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "level": {
          "type": "null"
        },
        "opponent": {
          "type": "null"
        },
        "result": {
          "type": "null"
        },
        "surface": {
          "type": "null"
        },
        "tournament": {
          "type": "null"
        },
        "year": {
          "type": "null"
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "includes_full_career": {
      "type": "boolean"
    },
    "matches": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "best_of": {
            "type": "integer"
          },
          "chart_id": {
            "type": "string"
          },
          "charted_match": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "entry": {
            "type": "null"
          },
          "level": {
            "type": "string"
          },
          "level_name": {
            "type": "string"
          },
          "match_id": {
            "type": "string"
          },
          "minutes": {
            "type": "integer"
          },
          "opponent": {
            "type": "object",
            "properties": {
              "age": {
                "type": "null"
              },
              "backhand": {
                "type": "string"
              },
              "birth_date": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "entry": {
                "type": "string"
              },
              "height_cm": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "plays": {
                "type": "string"
              },
              "rank": {
                "type": "integer"
              },
              "seed": {
                "type": "null"
              },
              "slug": {
                "type": "string"
              }
            }
          },
          "opponent_stats": {
            "type": "object",
            "properties": {
              "aces": {
                "type": "integer"
              },
              "break_points_faced": {
                "type": "integer"
              },
              "break_points_saved": {
                "type": "integer"
              },
              "double_faults": {
                "type": "integer"
              },
              "first_serve_points_won": {
                "type": "integer"
              },
              "first_serves_in": {
                "type": "integer"
              },
              "second_serve_points_won": {
                "type": "integer"
              },
              "serve_points": {
                "type": "integer"
              },
              "service_games": {
                "type": "integer"
              }
            }
          },
          "rank": {
            "type": "integer"
          },
          "result": {
            "type": "string"
          },
          "round": {
            "type": "string"
          },
          "score": {
            "type": "string"
          },
          "seed": {
            "type": "string"
          },
          "stats": {
            "type": "object",
            "properties": {
              "aces": {
                "type": "integer"
              },
              "break_points_faced": {
                "type": "integer"
              },
              "break_points_saved": {
                "type": "integer"
              },
              "double_faults": {
                "type": "integer"
              },
              "first_serve_points_won": {
                "type": "integer"
              },
              "first_serves_in": {
                "type": "integer"
              },
              "second_serve_points_won": {
                "type": "integer"
              },
              "serve_points": {
                "type": "integer"
              },
              "service_games": {
                "type": "integer"
              }
            }
          },
          "surface": {
            "type": "string"
          },
          "tournament": {
            "type": "string"
          }
        }
      }
    },
    "next_offset": {
      "type": "integer"
    },
    "player": {
      "type": "object",
      "properties": {
        "active": {
          "type": "boolean"
        },
        "atp_id": {
          "type": "string"
        },
        "backhand": {
          "type": "string"
        },
        "birth_date": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "current_rank": {
          "type": "integer"
        },
        "doubles_rank": {
          "type": "null"
        },
        "elo_rank": {
          "type": "integer"
        },
        "elo_rating": {
          "type": "integer"
        },
        "height_cm": {
          "type": "integer"
        },
        "itf_id": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "peak_rank": {
          "type": "integer"
        },
        "peak_rank_first": {
          "type": "string"
        },
        "peak_rank_last": {
          "type": "string"
        },
        "photo": {
          "type": "string"
        },
        "plays": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "tour": {
          "type": "string"
        },
        "twitter": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "wikipedia": {
          "type": "string"
        },
        "wta_id": {
          "type": "null"
        }
      }
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/tennisabstract/v1/matches?limit=1&output=json&player=Novak+Djokovic&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "applied_filters": {
    "level": null,
    "opponent": null,
    "result": null,
    "surface": null,
    "tournament": null,
    "year": null
  },
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:22.493Z",
  "includes_full_career": true,
  "matches": [
    {
      "best_of": 3,
      "chart_id": "20261104-M-Paris_Masters-R32-Rinky_Hijikata-Novak_Djokovic",
      "charted_match": "https://www.tennisabstract.com/charting/20261104-M-Paris_Masters-R32-Rinky_Hijikata-Novak_Djokovic.html",
      "date": "2026-11-02",
      "entry": null,
      "level": "M",
      "level_name": "masters",
      "match_id": "2026-0352-356",
      "minutes": 134,
      "opponent": {
        "age": null,
        "backhand": "two-handed",
        "birth_date": "2001-02-23",
        "country": "AUS",
        "entry": "Q",
        "height_cm": 178,
        "name": "Rinky Hijikata",
        "plays": "right",
        "rank": 83,
        "seed": null,
        "slug": "RinkyHijikata"
      },
      "opponent_stats": {
        "aces": 4,
        "break_points_faced": 11,
        "break_points_saved": 9,
        "double_faults": 1,
        "first_serve_points_won": 38,
        "first_serves_in": 53,
        "second_serve_points_won": 18,
        "serve_points": 89,
        "service_games": 13
      },
      "rank": 11,
      "result": "loss",
      "round": "R32",
      "score": "2-6 6-3 6-3",
      "seed": "10",
      "stats": {
        "aces": 7,
        "break_points_faced": 7,
        "break_points_saved": 4,
        "double_faults": 5,
        "first_serve_points_won": 48,
        "first_serves_in": 64,
        "second_serve_points_won": 10,
        "serve_points": 93,
        "service_games": 13
      },
      "surface": "Hard",
      "tournament": "Paris Masters"
    }
  ],
  "next_offset": 1,
  "player": {
    "active": true,
    "atp_id": "D643",
    "backhand": "two-handed",
    "birth_date": "1987-05-22",
    "country": "SRB",
    "current_rank": 12,
    "doubles_rank": null,
    "elo_rank": 4,
    "elo_rating": 2047,
    "height_cm": 188,
    "itf_id": "100004087",
    "last_name": "Djokovic",
    "name": "Novak Djokovic",
    "peak_rank": 1,
    "peak_rank_first": "2011-07-04",
    "peak_rank_last": "2024-05-27",
    "photo": "https://www.tennisabstract.com/photos/novak_djokovic-sirobi.jpg",
    "plays": "right",
    "slug": "NovakDjokovic",
    "tour": "atp",
    "twitter": "DjokerNole",
    "url": "https://www.tennisabstract.com/cgi-bin/player.cgi?p=NovakDjokovic",
    "wikipedia": "https://en.wikipedia.org/wiki/Novak_Djokovic",
    "wta_id": null
  },
  "total": 1526
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### How do I include older WTA seasons?
Use career=true for WTA coverage before the last two seasons; preserve includes_full_career from the response.

### How does pagination work?
Use next_offset as offset. limit defaults to 100 and is at most 500.

### Can result be used for scheduled matches?
Yes. The documented values are win, loss and upcoming.

### Can match_id open charting statistics directly?
Use chart_id or charted_match when available; the ordinary match_id is a different identifier.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/tennis-abstract/tennis-abstract-player-match-history-api/9c9cca50-1dd8-431b-bc88-532bb7803ae3/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
