{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper: Launches, Leaderboards & Makers",
    "description": "Product Hunt launches as JSON: name, tagline, live upvotes, daily rank, topics, website, hunter and makers. Current launches and topic feeds need no API key; add a free token for historical leaderboards and comments.",
    "version": "0.1",
    "x-build-id": "flpAI9DMG20flQVs0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cprussin~product-hunt-launches/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cprussin-product-hunt-launches",
        "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/cprussin~product-hunt-launches/runs": {
      "post": {
        "operationId": "runs-sync-cprussin-product-hunt-launches",
        "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/cprussin~product-hunt-launches/run-sync": {
      "post": {
        "operationId": "run-sync-cprussin-product-hunt-launches",
        "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": [
              "latest",
              "topics",
              "leaderboard",
              "posts"
            ],
            "type": "string",
            "description": "Latest launches: Product Hunt's current featured launches (no token needed). Topics: current launches in one or more topics (no token needed). Leaderboard: daily, weekly or monthly leaderboards for a date range (past dates need an API token). Posts: specific launch URLs (needs an API token).",
            "default": "latest"
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Topic slugs or URLs, e.g. artificial-intelligence, developer-tools, productivity or https://www.producthunt.com/topics/saas. Used in Topics mode.",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Leaderboard period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Leaderboard mode: one leaderboard per day, per week (Monday to Sunday) or per month, in Pacific Time like Product Hunt.",
            "default": "daily"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day (YYYY-MM-DD, \"today\", \"yesterday\" or relative like \"7 days\"). Default: yesterday. With a token this also filters Topics mode."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day, inclusive. Default: same as start date."
          },
          "postUrls": {
            "title": "Launch URLs",
            "type": "array",
            "description": "Posts mode: Product Hunt launch URLs (https://www.producthunt.com/posts/<slug> or /products/<product>/launches/<slug>), slugs or numeric IDs.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Optional. Only keep launches whose name, tagline, description or topics contain any of these comma-separated words (e.g. \"crm, sales, outreach\"). Filtered-out launches are not charged."
          },
          "maxItems": {
            "title": "Max launches",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many launches in total. Each launch is billed as one event.",
            "default": 20
          },
          "maxPerGroup": {
            "title": "Max launches per period / topic",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional. E.g. 10 = the top 10 of each day in a daily leaderboard range, or 10 per topic."
          },
          "featuredOnly": {
            "title": "Featured launches only",
            "type": "boolean",
            "description": "With a token: skip launches Product Hunt did not feature on the homepage. Leaderboards are always featured-only, like on the site.",
            "default": true
          },
          "apiToken": {
            "title": "Product Hunt API token (optional)",
            "type": "string",
            "description": "Optional free developer token from https://www.producthunt.com/v2/oauth/applications (create an app, then \"Create Token\"). Unlocks historical leaderboards, specific URLs, descriptions, topics, media, makers and comments. Without it the actor uses Product Hunt's public feed."
          },
          "includeMakers": {
            "title": "Include makers",
            "type": "boolean",
            "description": "With a token: add the makers of each launch. Product Hunt hides personal fields of most users from third-party apps; hidden fields are null.",
            "default": true
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "With a token: add the most upvoted comments to each launch. Each comment is billed as one (cheaper) comment event.",
            "default": false
          },
          "maxCommentsPerLaunch": {
            "title": "Max comments per launch",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Most upvoted comments first.",
            "default": 20
          },
          "resolveWebsites": {
            "title": "Resolve website URLs",
            "type": "boolean",
            "description": "Follow Product Hunt's redirect link to get each product's real website. Best effort: skipped automatically if Product Hunt blocks it.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Not needed: the feed and API are not rate-limited per IP for normal volumes.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}