{
  "openapi": "3.0.1",
  "info": {
    "title": "Prediction Markets Scraper — Kalshi, Polymarket, PredictIt",
    "description": "Odds from Kalshi, Polymarket, PredictIt and Manifold in one table: Yes/No prices, bid/ask, volume, liquidity, open interest, rules and close dates. Filter by keyword, category, status and volume; add order books, large Polymarket trades and cross-venue matches. No login.",
    "version": "0.1",
    "x-build-id": "rzu47gA1mrIei9Xmm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~prediction-markets-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-prediction-markets-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/yugenox~prediction-markets-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-prediction-markets-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/yugenox~prediction-markets-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-prediction-markets-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": {
          "venues": {
            "title": "Venues",
            "uniqueItems": true,
            "type": "array",
            "description": "Which prediction markets to read. Kalshi, Polymarket and PredictIt trade in US dollars; Manifold uses play money (mana). Max markets is shared fairly between the venues you pick.",
            "items": {
              "type": "string",
              "enum": [
                "kalshi",
                "polymarket",
                "predictit",
                "manifold"
              ],
              "enumTitles": [
                "Kalshi",
                "Polymarket",
                "PredictIt",
                "Manifold (play money)"
              ]
            },
            "default": [
              "kalshi",
              "polymarket",
              "predictit",
              "manifold"
            ]
          },
          "searchQuery": {
            "title": "Search",
            "type": "string",
            "description": "Optional keyword, e.g. \"election\", \"bitcoin\", \"fed rates\", \"super bowl\", \"pope\". Uses each venue's own search (PredictIt: every word must appear in the market or contract name). Leave empty to get each venue's markets in its own order (Polymarket and Manifold: most traded in the last 24 hours first)."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional: keep only markets in these categories — politics, elections, economics, finance, crypto, sports, tech, culture, climate, world, health — or any other word found in the venue's tags (\"nba\", \"bitcoin\", \"fed\", \"ai\"). Matched against Kalshi's category, Polymarket's and Manifold's tags, and PredictIt's market names (PredictIt has no categories).",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Open markets (trading now), closed / resolved ones (with their result where the venue publishes it), or both. PredictIt only lists open markets.",
            "default": "open"
          },
          "minVolume": {
            "title": "Minimum volume",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: keep only markets that traded at least this much in total (US dollars on Kalshi and Polymarket, mana on Manifold). PredictIt publishes no volume, so any minimum leaves its markets out. 0 = no minimum.",
            "default": 0
          },
          "maxItems": {
            "title": "Max markets",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of market rows for the whole run, shared fairly between the venues (a venue with fewer markets leaves its share to the others). 0 = everything.",
            "default": 100
          },
          "includeOrderbook": {
            "title": "Include order books",
            "type": "boolean",
            "description": "Add the top 10 bid and ask levels (price and size, Yes and No side) to every Kalshi and Polymarket market. One extra request per market, charged as \"Order book\" (see Pricing). PredictIt and Manifold publish no order book.",
            "default": false
          },
          "matchAcrossVenues": {
            "title": "Match across venues",
            "type": "boolean",
            "description": "For every market, list the most similar markets on the other venues collected in this run (question text similarity, with each one's price and the price gap). Useful for comparing odds and spotting arbitrage candidates — always check both markets' rules before trading. Rows are written once every venue has been read. No extra charge.",
            "default": false
          },
          "includeLargeTrades": {
            "title": "Include large Polymarket trades",
            "type": "boolean",
            "description": "Also save the latest large trades on Polymarket (side, outcome, price, shares, dollar value, time) as rows of type \"trade\". With a search or categories they are limited to the Polymarket markets found; otherwise they cover all of Polymarket. Who traded is never included.",
            "default": false
          },
          "largeTradeMinUsd": {
            "title": "Large trade minimum (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only trades worth at least this many dollars.",
            "default": 10000
          },
          "maxTrades": {
            "title": "Max large trades",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of trade rows, newest first. 0 = as many as the public trade feed goes back (about 3,000 large trades per set of markets, at most 10,000).",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Keep the default (Apify Proxy, datacenter) — it comes with every Apify plan, including the free one. If a venue keeps refusing datacenter IPs, the run retries on residential proxies when your account has them.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}