{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper — Launches, Leaderboards & Topics",
    "description": "Product Hunt scraper for new-product launches: daily/weekly/monthly leaderboards, topic feeds & full product profiles. Score, rank, comments, reviews, followers, website, social links, makers, topics & screenshots — clean JSON/CSV. Fast overview or full detail. No account or API key needed.",
    "version": "1.0",
    "x-build-id": "PVEfSZ8VQXWy1DGWo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~product-hunt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-product-hunt-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/sian.agency~product-hunt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-product-hunt-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/sian.agency~product-hunt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-product-hunt-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": {
          "scrapeMode": {
            "title": "⚡ Scrape mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚡ **OVERVIEW** — fast & cheap. Pulls ranked product launches straight from a leaderboard or topic feed (title, tagline, launch score, rank, comments, topics, thumbnail).\n\n🔍 **DETAIL** — full product profile per launch (reviews rating & count, followers, website, Twitter/LinkedIn/GitHub, makers, launch number, screenshots). Priced higher per result.\n\n**TIP:** Start with Overview — switch to Detail only when you need the extra fields.",
            "default": "overview"
          },
          "searchMode": {
            "title": "🧭 Search by",
            "enum": [
              "byLeaderboard",
              "byTopic",
              "byUrl",
              "byProduct"
            ],
            "type": "string",
            "description": "🧭 How to tell the scraper what to fetch:\n\n- **By leaderboard** — a ranked daily / weekly / monthly board (set the window + date below).\n- **By topic** — one or more topic slugs (e.g. \"artificial-intelligence\").\n- **By URL** — paste leaderboard or topic URLs from producthunt.com.\n- **By product** — Detail mode only: product slugs or URLs to fetch full profiles.",
            "default": "byLeaderboard"
          },
          "window": {
            "title": "📅 Leaderboard window",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "📅 Which ranked board to pull when **Search by = By leaderboard**.\n\n- **Daily** — one day's ranked launches (combine with **Days back** to walk a range).\n- **Weekly** / **Monthly** — the aggregated top launches for that period.",
            "default": "daily"
          },
          "date": {
            "title": "📆 Date (YYYY-M-D)",
            "type": "string",
            "description": "📆 Optional anchor date for the leaderboard, e.g. \"2026-6-23\". Leave empty for today. Month/day need no zero-padding."
          },
          "days": {
            "title": "🔁 Days back (daily only)",
            "minimum": 1,
            "type": "integer",
            "description": "🔁 Walk this many consecutive days back from the date above (Daily window only). Each day is a fixed ranked board of ~24 launches — a clean way to crawl a date range.",
            "default": 1
          },
          "topics": {
            "title": "🏷️ Topics",
            "type": "array",
            "description": "🏷️ Topic slugs to scrape when **Search by = By topic**, e.g. \"artificial-intelligence\", \"developer-tools\".\n\n**TIP:** The slug is the last path segment of a topic URL: producthunt.com/topics/**artificial-intelligence**.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many slugs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "🔗 Leaderboard / topic URLs",
            "type": "array",
            "description": "🔗 producthunt.com leaderboard or topic URLs to scrape. Used when **Search by = By URL**.\n\n**TIP:** Open any leaderboard or topic page on Product Hunt and copy the URL from the address bar.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many URLs, one per line.",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "🆔 Product slugs or URLs",
            "type": "array",
            "description": "🆔 **Detail mode only.** Product slugs (e.g. \"lovable\") or full product URLs (e.g. https://www.producthunt.com/products/lovable) to fetch full profiles.\n\n**BULK EDIT:** Click \"Bulk edit\" to paste many, one per line.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 Maximum records to extract this run.\n\n- **FREE tier:** capped at 25 records per run.\n- **PAID tier:** unlimited — set as high as you need.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}