{
  "openapi": "3.0.1",
  "info": {
    "title": "LiveScore Scraper",
    "description": "Live scores, results, fixtures and league tables from livescore.com for football, basketball, tennis, ice hockey and cricket. Any day of the past year, the live feed right now, or a whole season of a competition in one run. Flat JSON rows with scores by period, status, round and TV channels.",
    "version": "0.1",
    "x-build-id": "wmpJ0CDNXgxg5kE1z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pumpkinapi~livescore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pumpkinapi-livescore-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/pumpkinapi~livescore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-pumpkinapi-livescore-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/pumpkinapi~livescore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-pumpkinapi-livescore-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": {
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Which sports to read. One feed request per sport and day. Ignored when competition pages are set below.",
            "items": {
              "type": "string",
              "enum": [
                "soccer",
                "basketball",
                "tennis",
                "hockey",
                "cricket"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Basketball",
                "Tennis",
                "Ice hockey",
                "Cricket"
              ]
            },
            "default": [
              "soccer"
            ]
          },
          "dateFrom": {
            "title": "First day",
            "type": "string",
            "description": "First day to read, in the UTC offset below. Empty means today. Pick a date, or a length such as <code>-7 days</code> to count from today. LiveScore keeps about one year of past days."
          },
          "dateTo": {
            "title": "Last day",
            "type": "string",
            "description": "Last day to read. Empty means the same day as the first day. A length such as <code>7 days</code> gives a window that moves with a scheduled run. At most 366 days per run."
          },
          "status": {
            "title": "Match status",
            "enum": [
              "all",
              "upcoming",
              "live",
              "finished"
            ],
            "type": "string",
            "description": "Keep only matches in this state. <b>Live now</b> without a day reads the small live feed, which is the cheapest way to poll scores on a schedule.",
            "default": "all"
          },
          "competitions": {
            "title": "Competition pages",
            "type": "array",
            "description": "Whole season of a competition: every fixture and result from one feed request. Paste competition addresses from livescore.com, such as <code>https://www.livescore.com/en/football/england/premier-league/</code> or <code>https://www.livescore.com/en/basketball/nba/regular-season/</code>. A short form <code>football/england/premier-league</code> works too. When this is set, the sports above are ignored, and the days above only filter the season.",
            "items": {
              "type": "string"
            }
          },
          "includeStandings": {
            "title": "Add league tables",
            "type": "boolean",
            "description": "With competition pages, also save the league table as <code>standing</code> rows: overall, conference and division tables. Charged as a separate, cheaper event.",
            "default": false
          },
          "competitionFilter": {
            "title": "Only these competitions",
            "type": "array",
            "description": "Keep only matches of these competitions. Write the name as LiveScore shows it: <code>Premier League</code>, <code>LaLiga</code>, <code>NBA</code>, <code>Champions League</code>. A name alone keeps that competition in every country, so <code>Premier League</code> also keeps Ghana and Kenya. Put the country in front to keep one: <code>England Premier League</code>. A country alone, such as <code>Spain</code>, keeps all its competitions. Case does not matter. Filtered matches are not charged.",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Only these teams or players",
            "type": "array",
            "description": "Keep only matches of these teams or players, by a part of the name such as <code>Arsenal</code> or <code>Alcaraz</code>, or by the short code such as <code>ARS</code>. Case does not matter.",
            "items": {
              "type": "string"
            }
          },
          "utcOffset": {
            "title": "UTC offset in hours",
            "minimum": -12,
            "maximum": 14,
            "type": "integer",
            "description": "Your time zone as whole hours from UTC, from -12 to 14. It decides which matches belong to a day and the offset of <code>startTime</code>. For example <code>-5</code> for New York in winter, <code>0</code> for London and <code>1</code> for Paris or Berlin in winter.",
            "default": 0
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000000,
            "type": "integer",
            "description": "The run stops after saving this many rows, so this also caps your cost. Matches and standing rows count together.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}