{
  "openapi": "3.0.1",
  "info": {
    "title": "Prediction Markets Scraper — Kalshi, Polymarket & Manifold",
    "description": "Prediction market odds from Kalshi, Polymarket and Manifold in one table: implied probability, bid/ask, 24h change, volume, liquidity, open interest, close date, result and rules per contract. Search words, topics or direct links; no login or key. From US$1.40 per 1,000 contracts.",
    "version": "0.1",
    "x-build-id": "DlLmRy7ILv2HEyAPy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fabrikit~prediction-markets-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fabrikit-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/fabrikit~prediction-markets-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fabrikit-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/fabrikit~prediction-markets-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fabrikit-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": {
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Prediction markets to search. Kalshi (CFTC-regulated, US dollars) and Polymarket (USDC) are real-money exchanges; Manifold uses play money (mana) and has many user-created questions.",
            "items": {
              "type": "string",
              "enum": [
                "kalshi",
                "polymarket",
                "manifold"
              ],
              "enumTitles": [
                "Kalshi",
                "Polymarket",
                "Manifold (play money)"
              ]
            },
            "default": [
              "kalshi",
              "polymarket"
            ]
          },
          "searchTerms": {
            "title": "Search words",
            "type": "array",
            "description": "Optional. Words to look for in market questions, e.g. `fed decision`, `bitcoin`, `senate`, `highest temperature`. Each one runs the platform's own search; maxItems is shared between them. Leave empty to list the top markets (by the sort below).",
            "items": {
              "type": "string"
            }
          },
          "topic": {
            "title": "Topic",
            "enum": [
              "politics",
              "elections",
              "economics",
              "finance",
              "crypto",
              "weather",
              "sports",
              "technology",
              "science",
              "ai",
              "entertainment",
              "companies",
              "commodities",
              "health",
              "geopolitics"
            ],
            "type": "string",
            "description": "Optional. Narrows the results to one topic, mapped to each platform's own category (Kalshi category, Polymarket tag, Manifold topic). A platform without that topic is skipped and noted in the log."
          },
          "status": {
            "title": "Market status",
            "enum": [
              "open",
              "resolved",
              "all"
            ],
            "type": "string",
            "description": "`open` = still trading; `resolved` = settled, with the winning side in `result`; `all` = no filter. Applies to searches, topics and Kalshi series links; links to a single event or market always return all of its contracts.",
            "default": "open"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "trending",
              "volume24h",
              "liquidity",
              "newest",
              "closingSoon"
            ],
            "type": "string",
            "description": "Order in which each platform returns events. `trending` uses Kalshi's trending order, Polymarket's 24-hour volume and Manifold's relevance score. Search words on Polymarket are always ranked by its own relevance.",
            "default": "trending"
          },
          "marketUrls": {
            "title": "Market links or Kalshi tickers",
            "type": "array",
            "description": "Optional. Exact markets to fetch: kalshi.com/markets/... links, Kalshi tickers (series `KXHIGHNY`, event `KXFEDDECISION-26OCT` or market `KXFEDDECISION-26OCT-H0`), polymarket.com/event/... links and manifold.markets/... links. When only links are given, no search is run.",
            "items": {
              "type": "string"
            }
          },
          "maxMarketsPerEvent": {
            "title": "Max contracts per event",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Many events hold dozens of contracts (price strikes, player props, candidates). Set e.g. 5 to keep only the 5 most traded contracts of each event and see more events. 0 = all contracts.",
            "default": 0
          },
          "maxItems": {
            "title": "Max contracts",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of rows (contracts) to save in total. It is shared out between the platforms you picked; room a platform does not use goes to the next one.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: the three APIs are public. If a platform ever blocks the run, the Actor switches header profiles and then Apify datacenter proxy on its own; choose a proxy here only to force one.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}