{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket Scraper & News Behind Odds Moves",
    "description": "Polymarket scraper for the biggest odds moves: probability now and before, when the move happened, the news stories around it with a one-line AI reason and move history between runs. $0.01 per move.",
    "version": "0.0",
    "x-build-id": "siTLYbs2q0nDPB0ek"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadywren~prediction-market-move-explainer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadywren-prediction-market-move-explainer",
        "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/steadywren~prediction-market-move-explainer/runs": {
      "post": {
        "operationId": "runs-sync-steadywren-prediction-market-move-explainer",
        "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/steadywren~prediction-market-move-explainer/run-sync": {
      "post": {
        "operationId": "run-sync-steadywren-prediction-market-move-explainer",
        "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": {
          "moveWindow": {
            "title": "Move window",
            "enum": [
              "24h",
              "7d"
            ],
            "type": "string",
            "description": "Compare today's probability with the probability 24 hours or 7 days ago (Polymarket's own 1-day / 1-week price change).",
            "default": "24h"
          },
          "minMovePct": {
            "title": "Minimum move (percentage points)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Only markets whose probability changed by at least this many percentage points, up or down (e.g. 5 = from 40% to 45% or from 40% to 35%).",
            "default": 5
          },
          "minVolume24hUsd": {
            "title": "Minimum 24-hour volume (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip thinly traded markets: only markets with at least this much trading volume in the last 24 hours. 0 = every market.",
            "default": 10000
          },
          "skipResolvingWithinHours": {
            "title": "Skip markets closing within (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Skip markets that close within this many hours (live games and same-day markets swing for reasons the news does not cover). 0 = keep them.",
            "default": 24
          },
          "query": {
            "title": "Search words",
            "type": "string",
            "description": "Only markets whose question or event title contains every one of these words (case-insensitive), e.g. \"fed rates\". Empty = every market. The Actor reads the most traded open markets (up to 1,200), so a rarely traded market may not be included."
          },
          "tags": {
            "title": "Categories",
            "type": "array",
            "description": "Only markets in one of these categories. Categories come from Polymarket's fee category (politics, economics, crypto, sports ...); markets without one have no category and are skipped when you filter by category. Empty = every category.",
            "items": {
              "type": "string"
            }
          },
          "excludeTags": {
            "title": "Skip categories",
            "type": "array",
            "description": "Skip markets in these categories (Polymarket's fee category, as in Categories; markets without one are never skipped by this). Sports (games, matches, esports) are skipped by default; remove \"sports\" to include them.",
            "default": [
              "sports"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxMoves": {
            "title": "Max moves",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The biggest moves first, at most this many per run. You pay per move, so this also caps the cost.",
            "default": 10
          },
          "explainMoves": {
            "title": "News around each move",
            "type": "boolean",
            "description": "Search Google News for stories published around the steepest hour of each move and add up to 5 of them, plus a one-sentence AI reason that only restates the stories it cites (null when the stories do not explain the move). Off = odds moves only.",
            "default": true
          },
          "includeMarkets": {
            "title": "Also output every scanned market",
            "type": "boolean",
            "description": "Also save every market the run read (question, probability now, 24 hours and 7 days ago, volume, liquidity, close time, rules) to the separate \"markets\" dataset, charged per market row.",
            "default": false
          },
          "trackHistory": {
            "title": "Track moves between runs",
            "type": "boolean",
            "description": "Remember each market's probability between runs (in your account's key-value store \"prediction-move-history\") and add isNew, previousChangePct, reversed and streakRuns to every move.",
            "default": true
          },
          "newsEdition": {
            "title": "Google News edition",
            "type": "string",
            "description": "Country and language of the Google News search, as COUNTRY:language (US:en, GB:en, IN:en ...).",
            "default": "US:en"
          },
          "maxAiCostUsd": {
            "title": "Max AI cost per run (USD)",
            "minimum": 0.05,
            "maximum": 2,
            "type": "number",
            "description": "Cap on the AI cost of the news queries and reasons in one run (paid by the Actor, not charged to you). When it is reached, the remaining moves get news stories without an AI reason.",
            "default": 0.5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}