{
  "openapi": "3.0.1",
  "info": {
    "title": "SportyTrader Scraper - Predictions, Odds & Live Scores",
    "description": "Scrape SportyTrader odds comparison, betting tips, live scores, lineups, match stats and bookmaker reviews. 13 bookmakers, 15 football markets, 18 sports. No login, no API key, no proxy.",
    "version": "0.1",
    "x-build-id": "WOFatddexjkYZVnDg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parseforge~sportytrader-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parseforge-sportytrader-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~sportytrader-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parseforge-sportytrader-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~sportytrader-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parseforge-sportytrader-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": {
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "First day to scan, as YYYY-MM-DD. Leave empty for today. Results reach back about 12 months; fixtures run several months ahead."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Last day to scan, as YYYY-MM-DD. Leave empty to scan only the day in Date from."
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Which sports to scan for each day in the range. Football has the deepest coverage; the smaller sports only publish fixtures in season.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "rugby",
                "baseball",
                "handball",
                "volleyball",
                "ice-hockey",
                "american-football",
                "futsal",
                "cricket",
                "mma",
                "boxing",
                "cycling",
                "golf",
                "darts",
                "snooker",
                "badminton"
              ],
              "enumTitles": [
                "Football",
                "Tennis",
                "Basketball",
                "Rugby",
                "Baseball",
                "Handball",
                "Volleyball",
                "Ice hockey",
                "American football",
                "Futsal",
                "Cricket",
                "MMA",
                "Boxing",
                "Cycling",
                "Golf",
                "Darts",
                "Snooker",
                "Badminton"
              ]
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Any sportytrader.com URL: an odds page, a live score page, a prediction, a bookmaker review, or a news article. Each is read directly, without a date scan.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "competitionUrls": {
            "title": "Competition URLs",
            "type": "array",
            "description": "Competition odds or live pages, for example https://www.sportytrader.com/en/odds/football/england/premier-league-49/. Every fixture listed on the page is collected.",
            "items": {
              "type": "string"
            }
          },
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "matches",
              "oddsLines",
              "tips",
              "bookmakers",
              "news",
              "competitions"
            ],
            "type": "string",
            "description": "The shape of each dataset row. 'matches' returns one row per fixture, 'oddsLines' one row per bookmaker price, and the rest one row per page type.",
            "default": "matches"
          },
          "competitionNameContains": {
            "title": "Competition name contains",
            "type": "array",
            "description": "Keep only matches whose competition name contains any of these, case-insensitive. Example: Premier League, Serie A.",
            "items": {
              "type": "string"
            }
          },
          "countryNameContains": {
            "title": "Country contains",
            "type": "array",
            "description": "Keep only matches whose competition country contains any of these. Example: England, Europe, Spain.",
            "items": {
              "type": "string"
            }
          },
          "teamNameContains": {
            "title": "Team name contains",
            "type": "array",
            "description": "Keep only matches where either side's name contains any of these.",
            "items": {
              "type": "string"
            }
          },
          "matchStatuses": {
            "title": "Match status",
            "type": "array",
            "description": "Keep only matches in these states. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "finished",
                "postponed",
                "unknown"
              ],
              "enumTitles": [
                "Scheduled",
                "In play",
                "Finished",
                "Postponed",
                "Unknown"
              ]
            }
          },
          "kickoffTimeFrom": {
            "title": "Kick-off from",
            "type": "string",
            "description": "Keep only matches kicking off at or after this time of day, as HH:MM in the site's own clock."
          },
          "kickoffTimeTo": {
            "title": "Kick-off to",
            "type": "string",
            "description": "Keep only matches kicking off at or before this time of day, as HH:MM."
          },
          "minHomeOdds": {
            "title": "Minimum home odds",
            "type": "number",
            "description": "Keep only matches whose best home price is at least this value. Reads the odds page, so it turns on the odds fetch."
          },
          "maxHomeOdds": {
            "title": "Maximum home odds",
            "type": "number",
            "description": "Keep only matches whose best home price is at most this value."
          },
          "minAwayOdds": {
            "title": "Minimum away odds",
            "type": "number",
            "description": "Keep only matches whose best away price is at least this value."
          },
          "maxAwayOdds": {
            "title": "Maximum away odds",
            "type": "number",
            "description": "Keep only matches whose best away price is at most this value."
          },
          "minDrawOdds": {
            "title": "Minimum draw odds",
            "type": "number",
            "description": "Keep only matches whose best draw price is at least this value. Markets without a draw ignore it."
          },
          "maxDrawOdds": {
            "title": "Maximum draw odds",
            "type": "number",
            "description": "Keep only matches whose best draw price is at most this value."
          },
          "maxOverround": {
            "title": "Maximum overround",
            "type": "number",
            "description": "Keep only matches whose main market, priced at the best available odds across every bookmaker, holds at most this margin. 100 means a perfectly efficient market; below 100 is an arbitrage."
          },
          "minBookmakerCount": {
            "title": "Minimum bookmakers quoting",
            "type": "integer",
            "description": "Keep only matches whose main market is priced by at least this many bookmakers."
          },
          "onlyWithOdds": {
            "title": "Only matches that have odds",
            "type": "boolean",
            "description": "Drop fixtures with no priced market. Not every fixture on the calendar gets an odds page.",
            "default": false
          },
          "onlyWithPrediction": {
            "title": "Only matches that have a prediction",
            "type": "boolean",
            "description": "Drop fixtures with no SportyTrader tip. Requires the prediction block below.",
            "default": false
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Keep prices from these bookmakers only. Example: bet365, 1xbet, Betsson. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Keep these markets only, matched against the market key or its label. Example: 1x2.fin_match, btts, under_over.",
            "items": {
              "type": "string"
            }
          },
          "includeOdds": {
            "title": "Bookmaker odds",
            "type": "boolean",
            "description": "Attach every market and every bookmaker price to the match row, with the best price, the market move, and the overround. Football fixtures carry up to 15 markets.",
            "default": false
          },
          "includePrediction": {
            "title": "Prediction",
            "type": "boolean",
            "description": "Attach SportyTrader's tip: the pick, the model probability per outcome, and the best price for each. Only a slice of fixtures gets a tip.",
            "default": false
          },
          "includeLineups": {
            "title": "Lineups",
            "type": "boolean",
            "description": "Attach the starting eleven with the formation, plus substitutes and absentees by position.",
            "default": false
          },
          "includeMatchEvents": {
            "title": "Match events",
            "type": "boolean",
            "description": "Attach the timeline: goals with the running score, own goals, yellow and red cards, and substitutions with both players.",
            "default": false
          },
          "includeMatchStats": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Attach possession, shots, shots on target, corners, fouls, cards, offsides, saves and clearances for both sides.",
            "default": false
          },
          "includeTeamForm": {
            "title": "Team form",
            "type": "boolean",
            "description": "Attach each side's last six results overall, at home and away, with the win rate, goal averages, BTTS and over/under rates, and the fixtures behind them.",
            "default": false
          },
          "includeH2H": {
            "title": "Head to head",
            "type": "boolean",
            "description": "Attach the head-to-head win share and the previous meetings between the two sides.",
            "default": false
          },
          "includeArticleText": {
            "title": "Full analysis text",
            "type": "boolean",
            "description": "Attach the written preview behind a prediction, or the body of a news article.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many dataset rows. Free-plan runs return up to 10 rows as a preview.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Concurrent requests",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "How many pages to read at once. Six is the measured sweet spot; raising it does not speed the run up and costs memory.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "SportyTrader's Cloudflare edge refuses Apify's own container IPs, so runs go through the Apify datacenter proxy by default. Residential is not needed and is not recommended.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}