{
  "openapi": "3.0.1",
  "info": {
    "title": "Whop Marketplace Scraper",
    "description": "Whop Marketplace Scraper extracts Whop products, stores and clipping campaigns: title, prices and plans, rating, reviews, members, category, company, owner, FAQ, links and change tracking.",
    "version": "1.0",
    "x-build-id": "gMQwzLOdne4x4tE9j"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~whop-marketplace-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-whop-marketplace-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/neuro-scraper~whop-marketplace-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-whop-marketplace-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/neuro-scraper~whop-marketplace-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-whop-marketplace-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": "What to scrape",
            "enum": [
              "products",
              "companies",
              "campaigns"
            ],
            "type": "string",
            "description": "products = Whop products (communities, courses, software, memberships); companies = the businesses behind them (search only); campaigns = Whop clipping campaigns.",
            "default": "products"
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search the Whop marketplace for, one per line (e.g. trading, ai automation, fitness). Each keyword is one search.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Whop URLs",
            "type": "array",
            "description": "Whop product links (whop.com/<store>/<product>/), store links (whop.com/<store>/ - every product of the store) or search links (whop.com/discover/search/?q=...).",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Marketplace categories",
            "type": "array",
            "description": "Browse whole marketplace categories by route (e.g. trading, business, fitness, sports-betting, ecommerce, social-media) when no keyword or URL is given.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "trending",
              "trending_3_hours",
              "newest_arrivals",
              "most_reviews_24_hours",
              "most_reviews_7_days",
              "most_money_made_24_hours",
              "most_affiliate_earnings_24_hours",
              "average_review_rating",
              "highest_bounties",
              "last_24_hours_total_seconds",
              "average_time_spent_24_hours",
              "global_affiliate_percentage"
            ],
            "type": "string",
            "description": "Order of the marketplace catalog (used when browsing categories or the whole catalog).",
            "default": "trending"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum rows in total.",
            "default": 100
          },
          "maxResultsPerTarget": {
            "title": "Max rows per keyword / category / URL",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Limit for each keyword, category or URL (the total is still capped by maxItems)."
          },
          "maxPagesPerTarget": {
            "title": "Max pages per keyword / category",
            "minimum": 0,
            "type": "integer",
            "description": "0 = follow the next-page cursor to the end (50 rows per page).",
            "default": 0
          },
          "includeDetails": {
            "title": "Include product details",
            "type": "boolean",
            "description": "Read every product in full: all plans and prices, FAQ, social links, gallery, subcategory, owner, like count and affiliate percentage (one small extra read per product).",
            "default": true
          },
          "detailLevel": {
            "title": "Detail level",
            "enum": [
              "full",
              "list"
            ],
            "type": "string",
            "description": "full = with product details (same as includeDetails); list = only the catalog data.",
            "default": "full"
          },
          "maxDetailRequests": {
            "title": "Max detail reads",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of product detail reads (0 = no cap).",
            "default": 0
          },
          "verifiedOnly": {
            "title": "Verified only",
            "type": "boolean",
            "description": "Keep only verified products / companies.",
            "default": false
          },
          "priceType": {
            "title": "Price type",
            "enum": [
              "any",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Keep only products with a free plan, a paid plan, or any.",
            "default": "any"
          },
          "minPriceUsd": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose price is at least this much (also sent to the catalog as its own minimum-price filter)."
          },
          "maxPriceUsd": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep products whose price is at most this much."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep products / companies rated at least this (0-5)."
          },
          "minActiveUsers": {
            "title": "Min active users",
            "minimum": 0,
            "type": "integer",
            "description": "Keep products with at least this many active users (members when active users are not shown)."
          },
          "keywordsAny": {
            "title": "Must contain any of",
            "type": "array",
            "description": "Keep rows whose title, headline, description, category or company contains at least one of these words.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out rows that contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "affiliateOnly": {
            "title": "Affiliate program only",
            "type": "boolean",
            "description": "Browse only products that pay affiliates (catalog filter).",
            "default": false
          },
          "trackChanges": {
            "title": "Only new or changed rows",
            "type": "boolean",
            "description": "Return only rows that are new or whose price, rating, reviews, members or title changed since the previous run (state kept between runs).",
            "default": false
          },
          "firstRunBehavior": {
            "title": "First run with change tracking",
            "enum": [
              "emit_all",
              "baseline_only"
            ],
            "type": "string",
            "description": "emit_all = return everything on the first run; baseline_only = only save the state on the first run.",
            "default": "emit_all"
          },
          "country": {
            "title": "Proxy country",
            "type": "string",
            "description": "Two-letter country code for the Apify Proxy exit (e.g. US, GB, DE) when the proxy is on; prices are still returned in the product currency and in USD."
          },
          "stateNamespace": {
            "title": "State name",
            "type": "string",
            "description": "Name of the saved state, so several monitors (e.g. one per niche) keep separate histories.",
            "default": "default"
          },
          "maxBuyerChargeUsd": {
            "title": "Max charge per run (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Stop after the number of rows this budget pays for."
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per request before giving up on it (1-10).",
            "default": 3
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel requests for detail reads (1-20).",
            "default": 8
          },
          "debug": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log one line per row written.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed in normal use (runs connect directly). Switch on Apify Proxy if your runs get blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}