{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket Markets Scraper · Prices, volume · $1/1K",
    "description": "Get Polymarket prediction markets and events for trading research, election tracking and news analysis. Outcome prices, volume, liquidity, bid/ask and price moves, filtered by keyword, category, status. Returns JSON. $1/1K results.",
    "version": "0.1",
    "x-build-id": "owDXGhlhjwwT6IMvs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mlg14~polymarket-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mlg14-polymarket-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/mlg14~polymarket-scraper/runs": {
      "post": {
        "operationId": "runs-sync-mlg14-polymarket-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/mlg14~polymarket-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-mlg14-polymarket-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": {
          "searchQueries": {
            "title": "Search phrases",
            "type": "array",
            "description": "Keyword phrases to search Polymarket events, one search per phrase, results merged. Example: [\"bitcoin\", \"election\"]. Use to find markets about a named topic; leave empty to scan by category or the whole feed.",
            "default": [
              "bitcoin"
            ],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Category slugs",
            "type": "array",
            "description": "Polymarket topic tag slugs; several are combined. Examples: politics, crypto, sports, technology, entertainment, elections, basketball. Use to scan one topic such as [\"crypto\"]; leave empty for all topics.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tagIds": {
            "title": "Tag IDs",
            "type": "array",
            "description": "Numeric Polymarket tag IDs, combined with category slugs. Example: [\"21\", \"100196\"]. Use when you know the exact tag ID of a narrow topic; leave empty to rely on categories only.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "itemType": {
            "title": "Record type",
            "enum": [
              "markets",
              "events"
            ],
            "type": "string",
            "description": "Output one row per market or per event group. Allowed values: markets (one tradable question with outcome prices), events (a group of related markets). Example: markets. Use markets for prices; use events to discover groups.",
            "default": "markets"
          },
          "status": {
            "title": "Status",
            "enum": [
              "active",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Which records to return. Allowed values: active (open for trading), closed (resolved or ended), all. Example: active. Use active for current prices and closed for historical research on resolved markets.",
            "default": "active"
          },
          "minVolume24h": {
            "title": "Minimum 24 hour volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only records with at least this USD volume traded in the previous 24 hours. Example: 10000 for liquid, busy markets. Set 0 for no volume filter.",
            "default": 0
          },
          "minTotalVolume": {
            "title": "Minimum total volume",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only records with at least this USD lifetime traded volume. Example: 100000 for established markets. Set 0 for no filter; use it to skip thin, new markets.",
            "default": 0
          },
          "minLiquidity": {
            "title": "Minimum liquidity",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only records with at least this USD liquidity (for events, the sum of its markets). Example: 5000 for deep order books. Set 0 for no liquidity filter.",
            "default": 0
          },
          "minPriceChangePct": {
            "title": "Minimum price move",
            "minimum": 0,
            "type": "integer",
            "description": "For market rows, keep only markets whose absolute one-week or one-month price move is at least this many percentage points. Example: 10 for big movers. Set 0 for no filter; ignored for events.",
            "default": 0
          },
          "minutesUntilEnd": {
            "title": "Minimum minutes until end",
            "minimum": 0,
            "type": "integer",
            "description": "Exclude records ending sooner than this many minutes from now. Example: 1440 to skip markets ending within a day. Set 0 to disable the filter and include markets about to end.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "volume24hr",
              "liquidity",
              "endDate",
              "startDate",
              "volumeNum"
            ],
            "type": "string",
            "description": "Order of the collected results. Allowed values: volume24hr, liquidity, endDate, startDate, volumeNum (lifetime volume). Example: volume24hr. Use volume24hr for the most traded markets right now.",
            "default": "volume24hr"
          },
          "maxItemsPerSource": {
            "title": "Records scanned per source",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum records scanned per category or search phrase before filters; each API page holds up to 100. Example: 500. Increase when filters are strict; use a small value like 100 for quick runs.",
            "default": 500
          },
          "maxItemsTotal": {
            "title": "Maximum results",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on result rows saved and billed. Example: 50 for a quick check. Use a small number such as 20 to 50 for agent calls to keep runs under 3 minutes; raise it for bulk exports.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings for requests to the public Polymarket data endpoints. Example: {\"useApifyProxy\": true}. Leave the default unless you need a specific proxy route.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}