{
  "openapi": "3.0.1",
  "info": {
    "title": "Tennis Abstract Scraper: Match History, Scores & Surface",
    "description": "Tennis Abstract scraper. Enter a player slug such as NovakDjokovic and get the results listed on that player's page, one row per match: date, tournament, surface, round, rank, opponent, score and link. No login or API key. Export to CSV, JSON, Excel or XML.",
    "version": "0.1",
    "x-build-id": "aUBVsDUjHaugxKEp2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~tennis-abstract-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-tennis-abstract-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/parseforge~tennis-abstract-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-tennis-abstract-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/parseforge~tennis-abstract-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-tennis-abstract-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many records to collect per run."
          },
          "player": {
            "title": "Player slug",
            "type": "string",
            "description": "Tennis Abstract player slug (no spaces). Examples: NovakDjokovic, CarlosAlcaraz, IgaSwiatek, JannikSinner. Ignored when Players below is filled in.",
            "default": "NovakDjokovic"
          },
          "players": {
            "title": "Players (several in one run)",
            "type": "array",
            "description": "Several player slugs in one run, for example NovakDjokovic, CarlosAlcaraz. When this list is filled in, the single Player field above is ignored. Maximum records is the total across all players.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerPlayer": {
            "title": "Maximum records per player",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional cap per player when you collect several players. Maximum records still limits the whole run."
          },
          "history": {
            "title": "History",
            "enum": [
              "recent",
              "career"
            ],
            "type": "string",
            "description": "recent returns the recent results table of the player page (about the last 20 to 25 matches), as before. career returns the full match history of the player, newest first, with per-match serve and point counts, opponent hand, height and birth date, and level.",
            "default": "recent"
          },
          "includeProfile": {
            "title": "Add a profile row per player",
            "type": "boolean",
            "description": "Adds one extra row per player (recordType playerProfile): biography, current rank and Elo, season and surface summaries with serve and return statistics, year-end rankings and Elo, head-to-heads and notable events. It is billed as one result and does not count toward Maximum records.",
            "default": false
          },
          "surface": {
            "title": "Surface",
            "enum": [
              "",
              "Hard",
              "Clay",
              "Grass",
              "Carpet"
            ],
            "type": "string",
            "description": "Keep only matches on this surface.",
            "default": ""
          },
          "year": {
            "title": "Year",
            "minimum": 1968,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep only matches of this year, for example 2025. Combine with History career to reach beyond the recent table."
          },
          "fromDate": {
            "title": "From date",
            "type": "string",
            "description": "Keep only matches on or after this date (YYYY-MM-DD). The date is the start of the tournament week, as listed by the site."
          },
          "toDate": {
            "title": "To date",
            "type": "string",
            "description": "Keep only matches on or before this date (YYYY-MM-DD)."
          },
          "tournament": {
            "title": "Tournament contains",
            "type": "string",
            "description": "Keep only matches whose tournament name contains this text (not case sensitive), for example wimbledon or masters."
          },
          "rounds": {
            "title": "Rounds",
            "type": "array",
            "description": "Keep only these rounds, for example F, SF, QF, R16, R32, R64, R128, RR.",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "title": "Result",
            "enum": [
              "",
              "won",
              "lost"
            ],
            "type": "string",
            "description": "Keep only matches the player won or lost.",
            "default": ""
          },
          "opponent": {
            "title": "Opponent contains",
            "type": "string",
            "description": "Keep only matches against opponents whose name or slug contains this text, for example Nadal."
          },
          "level": {
            "title": "Tournament level",
            "enum": [
              "",
              "G",
              "M",
              "A",
              "F",
              "D",
              "O",
              "C",
              "S"
            ],
            "type": "string",
            "description": "Keep only one level of tournament. Needs the full match history, so choosing a level uses History career.",
            "default": ""
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}