{
  "openapi": "3.0.1",
  "info": {
    "title": "Livesport Scores, Fixtures & Results",
    "description": "Scores, fixtures, live matches, standings and match details across 20+ sports from Livesport: football, tennis, basketball, hockey, baseball and more. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "chcoQl2SMY9lbD0MA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapermaster~livesport-scores-fixtures-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapermaster-livesport-scores-fixtures-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/scrapermaster~livesport-scores-fixtures-results/runs": {
      "post": {
        "operationId": "runs-sync-scrapermaster-livesport-scores-fixtures-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/scrapermaster~livesport-scores-fixtures-results/run-sync": {
      "post": {
        "operationId": "run-sync-scrapermaster-livesport-scores-fixtures-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "fixtures",
              "live",
              "match-detail",
              "standings",
              "team-fixtures"
            ],
            "type": "string",
            "description": "fixtures: matches for a date range. live: matches in play right now. match-detail: lineups, statistics, incidents and head-to-head for specific matches. standings: league table of a tournament. team-fixtures: results and/or upcoming matches of one team.",
            "default": "fixtures"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "soccer",
              "tennis",
              "basketball",
              "hockey",
              "american-football",
              "baseball",
              "handball",
              "rugby-union",
              "floorball",
              "bandy",
              "futsal",
              "volleyball",
              "cricket",
              "darts",
              "boxing",
              "aussie-rules",
              "badminton",
              "water-polo",
              "field-hockey",
              "table-tennis",
              "mma"
            ],
            "type": "string",
            "description": "Used by the fixtures and live modes (and by team-fixtures when you give a bare team id instead of a team URL).",
            "default": "soccer"
          },
          "date": {
            "title": "Date",
            "type": "string",
            "description": "Single day for the fixtures mode: YYYY-MM-DD, today, tomorrow, yesterday, or an offset such as +2 or -3. Livesport serves 7 days back and 7 days ahead of today. Ignored when Date from is set.",
            "default": "today"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Start of a date range (same formats as Date). Leave empty to use the single Date field."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "End of the date range, inclusive. At most 15 days in total (Livesport only serves -7 to +7 days around today)."
          },
          "status": {
            "title": "Match status filter",
            "enum": [
              "all",
              "live",
              "scheduled",
              "finished"
            ],
            "type": "string",
            "description": "Keep all matches, or only live, scheduled or finished ones (fixtures mode).",
            "default": "all"
          },
          "countryFilter": {
            "title": "Country / category contains",
            "type": "string",
            "description": "Optional text filter on the country or category, for example germany or ATP. Case-insensitive."
          },
          "tournamentFilter": {
            "title": "Tournament contains",
            "type": "string",
            "description": "Optional text filter on the tournament name, for example bundesliga or champions league. Case-insensitive."
          },
          "matchIds": {
            "title": "Matches (match-detail mode)",
            "type": "array",
            "description": "Match ids (8 characters, the mid value in a match URL) or full match URLs that contain ?mid=...",
            "items": {
              "type": "string"
            }
          },
          "includeLineups": {
            "title": "Include lineups",
            "type": "boolean",
            "description": "Match-detail mode: add the lineups section (not every match has one).",
            "default": true
          },
          "includeStatistics": {
            "title": "Include statistics",
            "type": "boolean",
            "description": "Match-detail mode: add the match statistics section.",
            "default": true
          },
          "includeIncidents": {
            "title": "Include incidents",
            "type": "boolean",
            "description": "Match-detail mode: add goals, cards, substitutions and the match info (referee, venue, attendance).",
            "default": true
          },
          "includeH2H": {
            "title": "Include head-to-head",
            "type": "boolean",
            "description": "Match-detail mode: add head-to-head and recent-form match lists.",
            "default": true
          },
          "h2hMatchesPerSection": {
            "title": "Head-to-head matches per list",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many matches to keep in each head-to-head list of the match-detail mode.",
            "default": 10
          },
          "tournamentUrl": {
            "title": "Tournament (standings mode)",
            "type": "string",
            "description": "A Livesport tournament URL such as https://www.livesport.com/en/soccer/germany/bundesliga/ , a standings URL, or a pair like KY7LrA6d/jg0MwVuC (tournament id / stage id)."
          },
          "standingsType": {
            "title": "Table type",
            "enum": [
              "overall",
              "home",
              "away"
            ],
            "type": "string",
            "description": "Overall, home-only or away-only table.",
            "default": "overall"
          },
          "teamUrl": {
            "title": "Team (team-fixtures mode)",
            "type": "string",
            "description": "A Livesport team URL such as https://www.livesport.com/en/team/dortmund/nP1i5US1/ or just the 8-character team id (then choose the Sport too)."
          },
          "teamScope": {
            "title": "Team matches",
            "enum": [
              "both",
              "fixtures",
              "results"
            ],
            "type": "string",
            "description": "Upcoming matches, past results, or both.",
            "default": "both"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of result rows produced (each match, match-detail or standings row counts as one item).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Requests normally work without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}