{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper $0.8 💰 | Leaderboards | Clean JSON",
    "description": "Scrape Product Hunt leaderboards & launches into clean typed JSON. Get daily, weekly, monthly & yearly ranks, upvotes, categories & topics. $0.8/run.",
    "version": "0.1",
    "x-build-id": "fuqWeohXqe6IB5dsR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~producthunt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-producthunt-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/ahmed_jasarevic~producthunt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-producthunt-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/ahmed_jasarevic~producthunt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-producthunt-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",
        "required": [
          "target"
        ],
        "properties": {
          "target": {
            "title": "Target",
            "enum": [
              "daily",
              "weekly",
              "monthly",
              "yearly",
              "category",
              "topic"
            ],
            "type": "string",
            "description": "Choose what to scrape. Daily/weekly/monthly/yearly scrape leaderboard pages. Category/topic scrape pages for a specific slug.",
            "default": "daily"
          },
          "startDate": {
            "title": "Start date (daily)",
            "type": "string",
            "description": "First daily leaderboard date in YYYY-MM-DD. Leave empty for today (California time).",
            "default": ""
          },
          "endDate": {
            "title": "End date (daily)",
            "type": "string",
            "description": "Last date in an inclusive daily range. Leave empty for startDate only.",
            "default": ""
          },
          "startWeek": {
            "title": "Start week (weekly)",
            "type": "string",
            "description": "First weekly leaderboard in YYYY-WW format (e.g. 2026-01).",
            "default": ""
          },
          "endWeek": {
            "title": "End week (weekly)",
            "type": "string",
            "description": "Last weekly leaderboard in YYYY-WW. Leave empty for startWeek only.",
            "default": ""
          },
          "startMonth": {
            "title": "Start month (monthly)",
            "type": "string",
            "description": "First monthly leaderboard in YYYY-MM format (e.g. 2026-01).",
            "default": ""
          },
          "endMonth": {
            "title": "End month (monthly)",
            "type": "string",
            "description": "Last monthly leaderboard in YYYY-MM. Leave empty for startMonth only.",
            "default": ""
          },
          "startYear": {
            "title": "Start year (yearly)",
            "minimum": 0,
            "type": "integer",
            "description": "First yearly leaderboard year (e.g. 2026).",
            "default": 0
          },
          "endYear": {
            "title": "End year (yearly)",
            "minimum": 0,
            "type": "integer",
            "description": "Last yearly leaderboard year. Leave 0 for startYear only.",
            "default": 0
          },
          "categorySlugs": {
            "title": "Category slugs",
            "type": "array",
            "description": "Product Hunt category slugs (e.g. ai-code-editors, developer-tools). Used with 'category' target.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "topicSlugs": {
            "title": "Topic slugs",
            "type": "array",
            "description": "Product Hunt topic slugs (e.g. developer-tools, open-source). Used with 'topic' target.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxNbItemsToScrape": {
            "title": "Maximum items",
            "minimum": 0,
            "type": "integer",
            "description": "Positive limit for launches saved. Leave 0 to scrape all available until the source is exhausted.",
            "default": 0
          },
          "shouldIncludePromotedListings": {
            "title": "Include promoted listings",
            "type": "boolean",
            "description": "Include listings that Product Hunt marks as promoted.",
            "default": false
          },
          "shouldScrapeOnlyFeaturedLaunches": {
            "title": "Featured launches only",
            "type": "boolean",
            "description": "Keep only launches in Product Hunt's featured feed (the default leaderboard view, equivalent to leaving off the /all URL suffix). Disabled (default) scrapes EVERY launch of the day from the /all view.",
            "default": false
          },
          "shouldScrapeComments": {
            "title": "Scrape comments",
            "type": "boolean",
            "description": "Collect available comments for each launch. Makes the run slower.",
            "default": false
          },
          "shouldScrapeReviews": {
            "title": "Scrape reviews",
            "type": "boolean",
            "description": "Collect available reviews for each launch. Makes the run slower.",
            "default": false
          },
          "shouldScrapeBuiltWith": {
            "title": "Scrape Built With",
            "type": "boolean",
            "description": "Collect Product Hunt's Built With data when available. Makes the run slower.",
            "default": false
          },
          "shouldScrapeLaunches": {
            "title": "Scrape launch history",
            "type": "boolean",
            "description": "Collect the product's visible Product Hunt launch history. Makes the run slower.",
            "default": false
          },
          "shouldScrapeWebsite": {
            "title": "Scrape website",
            "type": "boolean",
            "description": "Visit each product website for title, description, visible text, and public emails. Makes the run slower.",
            "default": false
          },
          "debugDumpHtml": {
            "title": "Debug: dump raw HTML",
            "type": "boolean",
            "description": "Diagnostic: save the raw leaderboard page HTML to the key-value store as debug-<date>.html (and debug-<date>-browser.html from the browser path). Intended for development/debugging only.",
            "default": false
          },
          "browserForDaily": {
            "title": "Use browser for full daily list",
            "type": "boolean",
            "description": "Use a headless Chromium (patched with the free, open-source rebrowser-patches to defeat Turnstile's automation detection) through the residential proxy to solve Cloudflare's challenge and obtain a cf_clearance cookie, then replay the internal GraphQL query (featured:false on the /all view) for the COMPLETE ranked daily list — every launch of the day. No paid solver needed. Falls back to the SSR/embedded + Atom-feed rows if Turnstile still blocks. Requires a residential proxy.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is REQUIRED for the full daily list: the browser path routes Chromium through it to solve Cloudflare's Turnstile and obtain a cf_clearance cookie. The Unblocker group does NOT work for the GraphQL POST (it strips cookies), so use RESIDENTIAL. For non-daily targets a proxy is optional.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}