{
  "openapi": "3.0.1",
  "info": {
    "title": "Action Network Scraper — Betting Splits, Odds & Line Movement",
    "description": "Action Network scraper for public betting splits (tickets % and money % per side), sportsbook odds with best price, opening-to-current line movement, player props and expert picks. NFL, NBA, MLB, NHL, college, soccer, UFC, tennis. No login. One row per market side, export JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "7Fa1Rpv2h7SxyQ8Hw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~action-network-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-action-network-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/logiover~action-network-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-action-network-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/logiover~action-network-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-action-network-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": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Which leagues to read. Leave EMPTY for every league (NFL, NCAA football, NBA, NCAA basketball, WNBA, MLB, NHL, all soccer, UFC, boxing, ATP/WTA tennis, PGA golf ...); a league with no games in your dates simply returns nothing. Use Action Network's slugs: nfl, ncaaf, ufl, nba, ncaab, ncaaw, wnba, mlb, nhl, soccer (every soccer league at once), epl, laliga, bundesliga, seriea, ligue1, mls, champions, europa, worldcup, ufc, boxing, atp, wta, pga. Common names such as premier-league or champions-league are understood. 'soccer' already contains the individual soccer leagues.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "How many days before today (US Eastern) to include. 0 = start today. Finished games carry their closing line, final score and a graded result.",
            "default": 0
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 400,
            "type": "integer",
            "description": "How many days after today to include. Lines for games further out exist but splits usually appear only in the last day or two before the game.",
            "default": 2
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Exact start day (YYYY-MM-DD, US Eastern game day). Overrides Days back / Days ahead. Prices and splits are served from the 2023-24 seasons onward; earlier days return results without prices."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Exact end day (YYYY-MM-DD). Leave empty to read only the From date."
          },
          "weeks": {
            "title": "Weeks (NFL, NCAA football, UFL)",
            "type": "string",
            "description": "These leagues are scheduled by week, not by day. Leave empty to read the weeks that touch your dates, or name weeks like 1-4,8. Combine with Season and Season type for past seasons."
          },
          "season": {
            "title": "Season (with weeks)",
            "minimum": 2015,
            "maximum": 2035,
            "type": "integer",
            "description": "Season year for the weeks above, for example 2025. Empty = the current season."
          },
          "seasonType": {
            "title": "Season type (with weeks)",
            "enum": [
              "reg",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Regular season, postseason or preseason.",
            "default": "reg"
          },
          "periods": {
            "title": "Game segments",
            "type": "array",
            "description": "Full game is 'event'. Add segments to read their lines too: firsthalf, secondhalf, firstquarter ... fourthquarter (football, basketball), firstperiod ... thirdperiod (hockey), firstinning, firstfiveinnings (baseball). 1h, 2h, 1q, 1p and f5 work as shortcuts. Not every game prices every segment.",
            "default": [
              "event"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeMarkets": {
            "title": "Game markets (splits, odds, movement)",
            "type": "boolean",
            "description": "The core rows: moneyline, spread, total and team totals with betting splits, opening line, movement and best price. Switch off to read only props or picks.",
            "default": true
          },
          "marketTypes": {
            "title": "Only these markets",
            "type": "array",
            "description": "Keep only these market types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spread",
                "total",
                "team_total"
              ],
              "enumTitles": [
                "Moneyline",
                "Spread",
                "Total",
                "Team total"
              ]
            }
          },
          "gameStatus": {
            "title": "Only games that are",
            "type": "array",
            "description": "scheduled = not started, live = in progress, final = finished. Empty = all. Useful to keep only upcoming games.",
            "items": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "final"
              ],
              "enumTitles": [
                "Upcoming",
                "Live",
                "Finished"
              ]
            }
          },
          "teams": {
            "title": "Only these teams or players",
            "type": "array",
            "description": "Keep only games where one side matches (name or abbreviation, case-insensitive, partial match): lakers, KC, djokovic ...",
            "items": {
              "type": "string"
            }
          },
          "onlyWithSplits": {
            "title": "Only rows with betting splits",
            "type": "boolean",
            "description": "Drop market sides for which Action Network publishes no tickets % / money % (team totals, far-out games, props).",
            "default": false
          },
          "books": {
            "title": "Sportsbooks",
            "type": "array",
            "description": "Which sportsbooks to price against. Names (draftkings, fanduel, betmgm, bet365, caesars, betrivers, unibet, novig, polymarket, prizepicks) or Action Network book ids (463 exist; the list is at /web/v1/books). The consensus and opening lines are always included, so splits and movement never go missing. Empty = the seven major books.",
            "items": {
              "type": "string"
            }
          },
          "includeBookPrices": {
            "title": "One row per sportsbook price",
            "type": "boolean",
            "description": "Add recordType 'bookPrice' rows: every sportsbook's price on every market side as its own row, ready for line-shopping tables. Multiplies the row count by roughly the number of books.",
            "default": false
          },
          "includeLineHistory": {
            "title": "Line history of the consensus price",
            "type": "boolean",
            "description": "Add the timestamped consensus price series (opener to latest tick) to each market row as lineHistory. One extra request per market.",
            "default": false
          },
          "includeProps": {
            "title": "Player props",
            "type": "boolean",
            "description": "Add recordType 'prop' rows: player props (points, rebounds, passing yards, strikeouts, anytime scorers ...) with consensus line, opening line, best price and every book's price. NBA, WNBA, NCAAB, NFL, NCAAF, MLB, NHL.",
            "default": false
          },
          "propTypes": {
            "title": "Prop types",
            "type": "array",
            "description": "Which props. Empty = the main player props of each league. 'all' adds every market the league's props page lists, including the 'N or more' ladders. Or name them: points, rebounds, assists, 3fgm, passing_yards, strikeouts, hr, 27_points ...",
            "items": {
              "type": "string"
            }
          },
          "includePicks": {
            "title": "Expert picks",
            "type": "boolean",
            "description": "Add recordType 'pick' rows: public expert picks with the handicapper's win-loss record, units and ROI over the recent window.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Stop after this many rows in total (all record types). 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy (rescue route)",
            "type": "object",
            "description": "The scraper reads Action Network directly and falls back to a small US residential rescue only if the direct route is refused. Set your own proxy here to use it for that rescue instead.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}