{
  "openapi": "3.0.1",
  "info": {
    "title": "Polymarket Scraper | Odds, Events & Profiles",
    "description": "Scrape Polymarket events, markets, odds, volume, tags, sports and comments. Rows include org emails (hello@ / press@) and commenter X handles. No phones or street addresses. Unofficial — not affiliated with Polymarket.",
    "version": "0.1",
    "x-build-id": "y0eTDoNGdsaz5h3Jb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~polymarket-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~polymarket-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~polymarket-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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": {
          "mode": {
            "title": "Collection mode",
            "enum": [
              "events",
              "event",
              "markets",
              "search",
              "tags",
              "series",
              "sports",
              "teams",
              "comments",
              "categories",
              "clob_markets"
            ],
            "type": "string",
            "description": "events, event, markets, search, tags, series, sports, teams, comments, categories, or clob_markets.",
            "default": "events"
          },
          "locale": {
            "title": "Locale",
            "enum": [
              "en",
              "zh",
              "es",
              "de",
              "fr",
              "pt",
              "ru",
              "ko",
              "ja"
            ],
            "type": "string",
            "description": "Gamma locale for titles/URLs. Verified: en, zh, es, de, fr, pt, ru, ko, ja. Not a multi-country TLD switch.",
            "default": "en"
          },
          "tagSlug": {
            "title": "Tag / category slug",
            "type": "string",
            "description": "Category tag for events (politics, crypto, sports, geopolitics, …)."
          },
          "tagSlugs": {
            "title": "Multiple tag slugs",
            "maxItems": 20,
            "type": "array",
            "description": "Collect events for each tag sequentially.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "default": []
          },
          "seriesSlug": {
            "title": "Series slug",
            "type": "string",
            "description": "Series filter for event lists (uses offset pagination), e.g. nfl."
          },
          "sport": {
            "title": "Sport code",
            "type": "string",
            "description": "Sports taxonomy code; for events also used as tagSlug when tagSlug empty."
          },
          "league": {
            "title": "Teams league",
            "type": "string",
            "description": "Filter for teams mode (nba, nfl, …)."
          },
          "eventSlug": {
            "title": "Event slug",
            "type": "string",
            "description": "Single event slug for event mode."
          },
          "eventSlugs": {
            "title": "Event slugs (batch)",
            "maxItems": 50,
            "type": "array",
            "description": "Batch of event slugs for event mode.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 300
            },
            "default": []
          },
          "eventId": {
            "title": "Event ID",
            "type": "string",
            "description": "Single Gamma event id."
          },
          "eventIds": {
            "title": "Event IDs (batch)",
            "maxItems": 50,
            "type": "array",
            "description": "Batch of Gamma event ids.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "default": []
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "Required for search mode."
          },
          "order": {
            "title": "Sort order field",
            "enum": [
              "volume24hr",
              "volume",
              "liquidity",
              "competitive",
              "startDate",
              "endDate"
            ],
            "type": "string",
            "description": "order input field.",
            "default": "volume24hr"
          },
          "ascending": {
            "title": "Ascending sort",
            "type": "boolean",
            "description": "Sort ascending when true.",
            "default": false
          },
          "closed": {
            "title": "Closed filter",
            "type": "boolean",
            "description": "Closed markets filter for Gamma keyset lists.",
            "default": false
          },
          "active": {
            "title": "Active filter",
            "type": "boolean",
            "description": "When set, filter active/inactive events."
          },
          "featured": {
            "title": "Featured filter",
            "type": "boolean",
            "description": "When set, filter featured events."
          },
          "paginationMode": {
            "title": "Events pagination",
            "enum": [
              "keyset",
              "offset"
            ],
            "type": "string",
            "description": "keyset (next_cursor) or offset (/events/pagination with totals).",
            "default": "keyset"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "1–5000. Free plan capped at 200/run.",
            "default": 1
          },
          "includeMarkets": {
            "title": "Include markets on events",
            "type": "boolean",
            "description": "includeMarkets input field.",
            "default": true
          },
          "flattenMarkets": {
            "title": "Flatten markets to rows",
            "type": "boolean",
            "description": "Emit one dataset row per market instead of nested markets[].",
            "default": false
          },
          "expandEvents": {
            "title": "Expand sports/series to events",
            "type": "boolean",
            "description": "expandEvents input field.",
            "default": false
          },
          "enrichPriceHistory": {
            "title": "Enrich CLOB price history",
            "type": "boolean",
            "description": "Attach prices-history for up to 10 rows (slower).",
            "default": false
          },
          "enrichDetails": {
            "title": "Enrich commenter profiles (X handle)",
            "type": "boolean",
            "description": "For comments mode, fetch /api/profile/userData (xUsername). Default on. Does not change event list fields except lead keys.",
            "default": true
          },
          "priceHistoryDays": {
            "title": "Price history days",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "priceHistoryDays input field.",
            "default": 7
          },
          "getPositions": {
            "title": "Comments: get positions",
            "type": "boolean",
            "description": "getPositions input field.",
            "default": false
          },
          "holdersOnly": {
            "title": "Comments: holders only",
            "type": "boolean",
            "description": "holdersOnly input field.",
            "default": false
          },
          "featuredTagsOnly": {
            "title": "Featured/nav tags only",
            "type": "boolean",
            "description": "featuredTagsOnly input field.",
            "default": false
          },
          "parentEntityType": {
            "title": "Comments parent type",
            "type": "string",
            "description": "Comments parent type: Event, Series, or PerpsAsset.",
            "default": "Event"
          },
          "parentEntityId": {
            "title": "Comments parent id",
            "type": "string",
            "description": "Parent entity id for comments mode."
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional allowlisted HTTPS Cloud Run origin."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}