{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket & Kalshi Odds Scraper: Prediction Markets",
    "description": "Live odds from Polymarket, Kalshi and Manifold in one flat table: Yes probability, bid/ask, 24 h move, volume, liquidity, close date and link per market. Search a topic or get the most traded markets, filter and sort, and monitor price moves between runs. No API keys.",
    "version": "1.0",
    "x-build-id": "4laqBBgFfYatKXhTG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hydrocore~prediction-markets-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hydrocore-prediction-markets-odds",
        "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/hydrocore~prediction-markets-odds/runs": {
      "post": {
        "operationId": "runs-sync-hydrocore-prediction-markets-odds",
        "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/hydrocore~prediction-markets-odds/run-sync": {
      "post": {
        "operationId": "run-sync-hydrocore-prediction-markets-odds",
        "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": {
          "search": {
            "title": "Search",
            "type": "string",
            "description": "Topic to look for, for example \"fed rate\", \"bitcoin\", \"election\" or \"recession\". Leave empty to get the most traded open markets on each venue."
          },
          "venues": {
            "title": "Venues",
            "type": "array",
            "description": "Which venues to read. Default: all three. Manifold uses play money (MANA), so its rows have isRealMoney = false.",
            "items": {
              "type": "string",
              "enum": [
                "polymarket",
                "kalshi",
                "manifold"
              ],
              "enumTitles": [
                "Polymarket",
                "Kalshi",
                "Manifold (play money)"
              ]
            },
            "default": [
              "polymarket",
              "kalshi",
              "manifold"
            ]
          },
          "minVolume24h": {
            "title": "Min 24 h volume",
            "minimum": 0,
            "type": "number",
            "description": "Keep markets with at least this much traded in the last 24 hours (USD on Polymarket, contracts on Kalshi, MANA on Manifold). 0 = no minimum. Other rows are free.",
            "default": 0
          },
          "closesWithinDays": {
            "title": "Closes within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep markets that close within this many days. 0 = any close date.",
            "default": 0
          },
          "minProbability": {
            "title": "Min Yes probability",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Keep markets whose Yes price is at least this (0 to 1). Default 0.",
            "default": 0
          },
          "maxProbability": {
            "title": "Max Yes probability",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Keep markets whose Yes price is at most this (0 to 1). Use 0.95 to skip near-certain markets. Default 1.",
            "default": 1
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "volume24h",
              "liquidity",
              "closingSoon",
              "biggestMove",
              "probability",
              "newest"
            ],
            "type": "string",
            "description": "Order of the rows, applied before Max results.",
            "default": "volume24h"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Most market rows to save (and charge) across all venues. Default 50.",
            "default": 50
          },
          "onlyMoved": {
            "title": "Only markets that moved (monitor)",
            "type": "boolean",
            "description": "Remember each market's Yes price between runs and save only markets that are new or moved by at least Min move. Unchanged markets are free. Schedule the run every hour or day.",
            "default": false
          },
          "minMovePoints": {
            "title": "Min move (percentage points)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "With monitor mode, a market counts as moved when its Yes price changed by at least this many points (5 = 5%). Default 5.",
            "default": 5
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the saved monitor state. Use a different name for each watch list so they do not mix. Example: daily-watch-1.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}