{
  "openapi": "3.0.1",
  "info": {
    "title": "Sports Results & Live Scores: Tennis, Football, NFL, NBA",
    "description": "Tennis, football and US sports fixtures, live scores and results with set-by-set and period scores, plus league tables and ATP/WTA rankings. Premier League, Champions League, NFL, NBA, MLB, NHL, F1 and cricket. Filter by date, team, player and status. No API key.",
    "version": "1.0",
    "x-build-id": "G7liczIghpgBpkjYz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/onibaku~sports-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-onibaku-sports-results",
        "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/onibaku~sports-results/runs": {
      "post": {
        "operationId": "runs-sync-onibaku-sports-results",
        "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/onibaku~sports-results/run-sync": {
      "post": {
        "operationId": "run-sync-onibaku-sports-results",
        "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": {
          "mode": {
            "title": "What to get",
            "enum": [
              "matches",
              "standings"
            ],
            "type": "string",
            "description": "Matches: fixtures, live scores and results for the dates below (one row per match). Standings: the current league table, or the ATP/WTA singles rankings for tennis (one row per position, dates are ignored).",
            "default": "matches"
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Which sports and leagues to cover. Cricket covers every series ESPN is showing now (international tours, IPL, county and domestic cricket). Need another league? Add its ESPN code under Other leagues.",
            "items": {
              "type": "string",
              "enum": [
                "tennis/atp",
                "tennis/wta",
                "soccer/eng.1",
                "soccer/eng.2",
                "soccer/eng.fa",
                "soccer/eng.league_cup",
                "soccer/eng.w.1",
                "soccer/sco.1",
                "soccer/esp.1",
                "soccer/ger.1",
                "soccer/ita.1",
                "soccer/fra.1",
                "soccer/ned.1",
                "soccer/por.1",
                "soccer/uefa.champions",
                "soccer/uefa.europa",
                "soccer/uefa.europa.conf",
                "soccer/usa.1",
                "soccer/mex.1",
                "soccer/bra.1",
                "soccer/arg.1",
                "soccer/fifa.world",
                "football/nfl",
                "football/college-football",
                "basketball/nba",
                "basketball/wnba",
                "basketball/mens-college-basketball",
                "baseball/mlb",
                "hockey/nhl",
                "racing/f1",
                "racing/irl",
                "racing/nascar-premier",
                "mma/ufc",
                "australian-football/afl",
                "cricket/all"
              ],
              "enumTitles": [
                "ATP (men’s tennis)",
                "WTA (women’s tennis)",
                "Premier League",
                "EFL Championship",
                "FA Cup",
                "Carabao Cup",
                "Women’s Super League",
                "Scottish Premiership",
                "LaLiga",
                "Bundesliga",
                "Serie A",
                "Ligue 1",
                "Eredivisie",
                "Primeira Liga",
                "UEFA Champions League",
                "UEFA Europa League",
                "UEFA Conference League",
                "MLS",
                "Liga MX",
                "Brasileirão Série A",
                "Argentine Primera División",
                "FIFA World Cup",
                "NFL",
                "NCAA football",
                "NBA",
                "WNBA",
                "NCAA men’s basketball",
                "MLB",
                "NHL",
                "Formula 1",
                "IndyCar",
                "NASCAR Cup Series",
                "UFC",
                "AFL",
                "Cricket (every series ESPN is covering now)"
              ]
            },
            "default": [
              "tennis/atp",
              "tennis/wta"
            ]
          },
          "customLeagues": {
            "title": "Other leagues (ESPN codes)",
            "type": "array",
            "description": "Any other ESPN league as sport/league, e.g. soccer/ger.2 (2. Bundesliga), soccer/tur.1, soccer/jpn.1, rugby/164205 (Rugby World Cup), cricket/8048 (IPL), golf/pga. The code is the part after /sports/ in ESPN API URLs.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day of matches: YYYY-MM-DD, today, yesterday, tomorrow, or a day offset such as -3 or +7. Defaults to today.",
            "default": "today"
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day of matches, in the same forms. Leave empty for just the From date. At most 31 days per run."
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "Which time zone the dates mean, as an IANA name such as Europe/London or America/New_York. A match belongs to the day it starts in this zone. Start times in the output are always UTC.",
            "default": "UTC"
          },
          "statuses": {
            "title": "Match status",
            "type": "array",
            "description": "Which matches to return. Leave empty for all of them.",
            "items": {
              "type": "string",
              "enum": [
                "upcoming",
                "live",
                "finished",
                "postponed",
                "cancelled"
              ],
              "enumTitles": [
                "Upcoming (scheduled)",
                "Live (in play)",
                "Finished (including retirements and walkovers)",
                "Postponed, delayed or suspended",
                "Cancelled or abandoned"
              ]
            }
          },
          "teamsOrPlayers": {
            "title": "Teams or players (any of)",
            "type": "array",
            "description": "Only matches involving one of these, matched against team and player names, case- and accent-insensitive, e.g. Arsenal, Sinner, Swiatek, Lakers. Short codes such as LAL or ARS match team abbreviations.",
            "items": {
              "type": "string"
            }
          },
          "tournaments": {
            "title": "Tournaments (any of)",
            "type": "array",
            "description": "Only matches whose tournament, league or round contains one of these, e.g. Wimbledon, Paris, Basel, Final.",
            "items": {
              "type": "string"
            }
          },
          "tennisDraws": {
            "title": "Tennis draws",
            "type": "array",
            "description": "Which tennis draws to return. Leave empty for all (singles and doubles, qualifying included).",
            "items": {
              "type": "string",
              "enum": [
                "mens-singles",
                "womens-singles",
                "mens-doubles",
                "womens-doubles",
                "mixed-doubles"
              ],
              "enumTitles": [
                "Men's singles",
                "Women's singles",
                "Men's doubles",
                "Women's doubles",
                "Mixed doubles"
              ]
            }
          },
          "includeTeamStats": {
            "title": "Team box score",
            "type": "boolean",
            "description": "For football, NFL, NBA, MLB and NHL games that have started, add the team box score (possession, shots, corners, yards, rebounds and so on). One extra request per match, so runs are slower.",
            "default": false
          },
          "season": {
            "title": "Season (standings only)",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Year of the season for league tables, e.g. 2025 for the 2025-26 Premier League. Leave empty for the current season. Tennis rankings are always the latest."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}