{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper - Daily Leaderboard & Makers",
    "description": "Scrape Product Hunt launches from the daily, weekly or monthly leaderboard for any date range, by topic, keyword or URL. Get rank, upvotes, comments, website URL, makers, topics, images, pricing and reviews. No API token, no browser.",
    "version": "1.0",
    "x-build-id": "acgvptXQwLUNT3Bte"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sharkinho~product-hunt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sharkinho-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/sharkinho~product-hunt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sharkinho-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/sharkinho~product-hunt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sharkinho-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": [
              "daily",
              "weekly",
              "monthly",
              "topic",
              "search",
              "urls"
            ],
            "type": "string",
            "description": "daily / weekly / monthly: the Product Hunt leaderboard for every day, week or month in the date range. topic: launches in one or more topics. search: launches matching keywords. urls: specific products or launches.",
            "default": "daily"
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First day (YYYY-MM-DD, or \"yesterday\", \"today\", \"7 days ago\"). Product Hunt days run on US Pacific time. Default: yesterday. Used by the leaderboard modes; optional for topic and search (filters by launch date).",
            "default": "yesterday"
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last day of the range (inclusive). Leave empty for a single day. Max range: 400 days. For weekly / monthly mode every week or month touching the range is included."
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Topic slugs or URLs, e.g. artificial-intelligence, developer-tools, https://www.producthunt.com/topics/saas. Required for mode \"topic\". In leaderboard modes it filters the leaderboard to these topics.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords for mode \"search\", e.g. crm, ai agent, invoicing.",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product or launch URLs",
            "type": "array",
            "description": "For mode \"urls\": https://www.producthunt.com/products/<name> (returns every launch of the product) or https://www.producthunt.com/posts/<name> (that launch only).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max launches",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many launches in total (0 = no limit). You are charged per launch, so this caps your cost.",
            "default": 100
          },
          "maxItemsPerPeriod": {
            "title": "Max launches per day / week / month (top N)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep the top N launches of each leaderboard period (or each topic / keyword / product). 0 = all. Example: 10 with a 30-day range gives the top 10 of every day.",
            "default": 0
          },
          "featuredOnly": {
            "title": "Featured launches only",
            "type": "boolean",
            "description": "On (default): only launches featured on the Product Hunt homepage, which is what the public leaderboard shows. Off: also include the unfeatured launches of the day (often 10-20x more, mostly low-signal).",
            "default": true
          },
          "resolveWebsiteRedirects": {
            "title": "Resolve website redirects",
            "type": "boolean",
            "description": "Follow short links and affiliate redirects of each website URL and save the final address in websiteFinalUrl (and its domain in websiteDomain). Adds about 1 second per 10 launches. No extra charge.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Add the top-level comments of each launch (author name and public profile, text, upvotes, replies count). Charged separately per comment.",
            "default": false
          },
          "maxCommentsPerLaunch": {
            "title": "Max comments per launch",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Upper limit of comments saved per launch when comments are on.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (default) is enough: the actor calls Product Hunt's own data endpoint, which refuses some cloud server IPs. Residential proxy is not needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}