{
  "openapi": "3.0.1",
  "info": {
    "title": "Prediction Markets: Kalshi, Polymarket & PredictIt Odds",
    "description": "Kalshi, Polymarket, Manifold and PredictIt markets in one table: probability, bid/ask, 24h change, volume, liquidity, open interest, close date, result, daily price history. Search, categories, move alerts.",
    "version": "0.1",
    "x-build-id": "ardUsndl4my4FZ4Ld"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tacps126~prediction-markets/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tacps126-prediction-markets",
        "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/tacps126~prediction-markets/runs": {
      "post": {
        "operationId": "runs-sync-tacps126-prediction-markets",
        "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/tacps126~prediction-markets/run-sync": {
      "post": {
        "operationId": "run-sync-tacps126-prediction-markets",
        "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": "Which prediction markets to read. Kalshi and Polymarket trade real money; Manifold uses play money (MANA); PredictIt covers US politics.",
            "items": {
              "type": "string",
              "enum": [
                "kalshi",
                "polymarket",
                "manifold",
                "predictit"
              ],
              "enumTitles": [
                "Kalshi",
                "Polymarket",
                "Manifold (play money)",
                "PredictIt"
              ]
            },
            "default": [
              "kalshi",
              "polymarket"
            ]
          },
          "search": {
            "title": "Search",
            "type": "string",
            "description": "Keywords, e.g. `fed rate`, `bitcoin`, `election`, `Super Bowl`. Leave empty for the busiest markets."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Only markets in these categories (any match). Ignored when Search is set on Polymarket.",
            "items": {
              "type": "string",
              "enum": [
                "politics",
                "elections",
                "economics",
                "finance",
                "crypto",
                "sports",
                "tech-science",
                "ai",
                "climate-weather",
                "culture",
                "world",
                "companies",
                "health",
                "mentions"
              ],
              "enumTitles": [
                "Politics",
                "Elections",
                "Economics (Fed, inflation, jobs)",
                "Finance and markets (indices, commodities)",
                "Crypto",
                "Sports",
                "Tech and science",
                "AI",
                "Climate and weather",
                "Culture and entertainment",
                "World and geopolitics",
                "Companies",
                "Health",
                "Mentions (what will X say)"
              ]
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Specific markets: links (kalshi.com, polymarket.com, manifold.markets, predictit.org), Kalshi tickers (market, event or series, e.g. `KXFEDDECISION`), Polymarket slugs or condition ids.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Status",
            "enum": [
              "open",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Open markets (default), closed and settled markets with their result, or both.",
            "default": "open"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "volume24h",
              "volume",
              "liquidity",
              "closingSoon",
              "newest",
              "move24h"
            ],
            "type": "string",
            "description": "Order of results. Volume and liquidity take the top of each platform in turn, since units differ.",
            "default": "volume24h"
          },
          "minVolume": {
            "title": "Minimum total volume",
            "type": "number",
            "description": "In dollars on Polymarket, contracts on Kalshi (each pays $1), MANA on Manifold. PredictIt shows no volume, so it is left out when this is set."
          },
          "minVolume24h": {
            "title": "Minimum 24-hour volume",
            "type": "number",
            "description": "Same units as total volume."
          },
          "minLiquidity": {
            "title": "Minimum liquidity",
            "type": "number",
            "description": "Order-book or pool liquidity (Polymarket, Manifold)."
          },
          "closesWithinDays": {
            "title": "Closes within (days)",
            "minimum": 1,
            "type": "integer",
            "description": "Only markets that close within this many days."
          },
          "historyDays": {
            "title": "Price history (days)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Add a daily price history (`priceHistory`) for Kalshi and Polymarket markets. 0 = none.",
            "default": 0
          },
          "maxItems": {
            "title": "Max markets",
            "minimum": 1,
            "type": "integer",
            "description": "Most markets to return (each outcome of a multi-outcome event counts as one).",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new",
            "type": "boolean",
            "description": "Schedule the Actor and each run returns only markets earlier runs did not deliver.",
            "default": false
          },
          "alertMovePoints": {
            "title": "Alert when price moves (points)",
            "minimum": 1,
            "maximum": 100,
            "type": "number",
            "description": "Return only markets whose probability moved at least this many percentage points since they were last delivered, with `previousProbability` and `movePoints`. The first run returns every market as the baseline. Pair with a schedule and the Slack or webhook delivery below."
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for the monitoring history, so several monitors can run side by side."
          },
          "tenantId": {
            "title": "Tenant ID",
            "type": "string",
            "description": "Optional label used to keep separate histories for different clients or teams."
          },
          "debug": {
            "title": "Debug",
            "type": "boolean",
            "description": "Save extra diagnostics with the run (for support requests).",
            "default": false
          },
          "delivery": {
            "title": "Send results to Slack, Discord, a webhook or Google Sheets",
            "type": "object",
            "description": "Webhook: {\"webhookUrl\": \"https://…\", \"format\": \"json\" | \"slack\" | \"discord\", \"onlyWhenResults\": true, \"includeItems\": 10}. Google Sheets: {\"spreadsheetId\": \"<id from the sheet URL>\", \"sheetName\": \"Sheet1\"} plus the service account key below; share the sheet with the service account's e-mail first. Leave empty to only save results in the dataset."
          },
          "googleServiceAccountJson": {
            "title": "Google service account key (for Sheets)",
            "type": "string",
            "description": "Only for Google Sheets delivery: paste the service account's JSON key. Stored encrypted; the account sees only sheets you share with it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}