{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Launches Scraper: Daily Leaderboard & Websites",
    "description": "Scrape Product Hunt launches: today's featured launches from the official feed, daily/weekly/monthly leaderboards, topics or launch URLs. Name, tagline, votes, rank, website, makers, topics, ratings. New startups and SaaS websites every day. From $1.20 per 1,000 launches.",
    "version": "1.0",
    "x-build-id": "JoTxBcFl3ix1UQKA1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/manageable_gully~product-hunt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-manageable_gully-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/manageable_gully~product-hunt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-manageable_gully-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/manageable_gully~product-hunt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-manageable_gully-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "feed",
              "leaderboard",
              "topic",
              "urls"
            ],
            "type": "string",
            "description": "feed = today's ~50 featured launches from Product Hunt's official Atom feed (fast, reliable, no vote counts); leaderboard = launches by date range with votes and ranks; topic = launches in topic feeds; urls = specific /posts/ or /products/ URLs. If a leaderboard page for today/yesterday is blocked, the Actor falls back to the official feed automatically.",
            "default": "feed"
          },
          "period": {
            "title": "Leaderboard period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Which leaderboard to read for each date in the range: daily (one page per day), weekly (ISO week) or monthly.",
            "default": "daily"
          },
          "featuredOnly": {
            "title": "Featured launches only",
            "type": "boolean",
            "description": "On: Product Hunt's featured leaderboard ranked by daily/weekly/monthly rank. Off: all launches of the period, ranked by votes (the leaderboard's 'All' tab).",
            "default": true
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day to scrape (YYYY-MM-DD) or relative like '7 days'. Defaults to yesterday in Pacific Time (Product Hunt's launch day)."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day to scrape (inclusive). Empty = same as start date. Max range 366 days."
          },
          "topics": {
            "title": "Topic slugs",
            "maxItems": 50,
            "type": "array",
            "description": "Product Hunt topic slugs from the topic URL, e.g. artificial-intelligence, developer-tools. In 'topic' mode: products listed on those topic pages (highest rated first, 15 per page). In 'leaderboard' mode: keep only launches tagged with one of these topics.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keyword filter",
            "maxItems": 50,
            "type": "array",
            "description": "Keep only launches whose name or tagline contains any of these words (case-insensitive). Filtering is local; PH search is not used.",
            "items": {
              "type": "string"
            }
          },
          "minVotes": {
            "title": "Minimum votes",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip launches with fewer upvotes than this.",
            "default": 0
          },
          "startUrls": {
            "title": "Launch / product URLs",
            "maxItems": 5000,
            "type": "array",
            "description": "Used in 'urls' mode. Accepts https://www.producthunt.com/posts/<slug> and /products/<slug> (optionally ?launch=<slug>).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeDetails": {
            "title": "Include details (website, makers, rating, categories, description)",
            "type": "boolean",
            "description": "Opens each launch's product page. Charged as an extra 'launch-details' event.",
            "default": true
          },
          "includeMakers": {
            "title": "Include public maker names/usernames/headlines",
            "type": "boolean",
            "description": "Public maker and hunter names, usernames and headlines as shown on the launch page. Never emails or social profiles. Turn off to keep personal data out of your dataset.",
            "default": true
          },
          "onlyNewSinceLastRun": {
            "title": "Only new launches since last run",
            "type": "boolean",
            "description": "Skips launches already returned by a previous run with the same 'dedupeKey'. Great for daily schedules.",
            "default": false
          },
          "dedupeKey": {
            "title": "Dedupe key",
            "pattern": "^[a-zA-Z0-9-]{1,40}$",
            "type": "string",
            "description": "Name of the persistent store for dedupe state. Use different keys for different schedules.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max launches",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on dataset rows (and therefore cost). 0 = no cap besides your run's max charge. Each leaderboard page shows the top ~17 launches of that day/week/month.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages are fetched in parallel. Requests are also paced to about 1 per second (slower if Product Hunt pushes back).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed in most cases (plain HTTP works). If Product Hunt starts blocking, the Actor switches to Apify residential proxy automatically (see below).",
            "default": {
              "useApifyProxy": false
            }
          },
          "allowResidentialFallback": {
            "title": "Allow residential proxy fallback when blocked",
            "type": "boolean",
            "description": "Off by default. If on and Product Hunt keeps blocking (6 blocked requests in a row), continue through Apify residential proxy (extra proxy cost, capped: details are paused if it gets expensive). Leaving it off keeps the run cheap; blocked leaderboards for today/yesterday fall back to the official feed.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}