{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper API — Launches, Rankings & Comments",
    "description": "Product Hunt launches with daily/weekly/monthly leaderboard ranks, product details, makers and full comment threads (one row per launch) via the OFFICIAL Product Hunt API v2 with your own free token. No scraping. Demo without token. Not affiliated with Product Hunt.",
    "version": "0.2",
    "x-build-id": "dJ3TWqt1pJjJ2U63D"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/badr_xba~product-hunt-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-badr_xba-product-hunt-intelligence",
        "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/badr_xba~product-hunt-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-badr_xba-product-hunt-intelligence",
        "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/badr_xba~product-hunt-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-badr_xba-product-hunt-intelligence",
        "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": {
          "productHuntToken": {
            "title": "Product Hunt API token (your own)",
            "type": "string",
            "description": "Your own Product Hunt developer token (free, ~2 minutes: Product Hunt account → API dashboard https://www.producthunt.com/v2/oauth/applications → add an application → Create Token). Stored encrypted by Apify, never written to the log, dataset or records. Leave empty for the fictional demo."
          },
          "source": {
            "title": "Data source",
            "enum": [
              "auto",
              "demo",
              "api"
            ],
            "type": "string",
            "description": "auto = official API when a token is given, otherwise the fictional demo. demo = always the fictional demo (no API call). api = official API only (a missing token gives a clear error, nothing charged).",
            "default": "auto"
          },
          "modules": {
            "title": "What to collect",
            "type": "array",
            "description": "One row per launch. launches = launches in a date range (Pacific time) and/or topics; leaderboard = top launches of a day / week / month (rank added to the launch row); productDetails = media, links, reviews count & rating, makers (added to the launch row, no extra charge); makers = one extra row per public maker & hunter profile; comments = the whole comment thread (comments + replies) inside the launch row, charged once per launch.",
            "items": {
              "type": "string",
              "enum": [
                "launches",
                "leaderboard",
                "productDetails",
                "makers",
                "comments"
              ],
              "enumTitles": [
                "Launches",
                "Leaderboard (day / week / month)",
                "Product details",
                "Makers & hunters",
                "Comments"
              ]
            },
            "default": [
              "launches",
              "leaderboard",
              "productDetails"
            ]
          },
          "dateFrom": {
            "title": "Launches from (Pacific time)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "First launch day, YYYY-MM-DD, in Product Hunt's time zone (America/Los_Angeles). Empty = yesterday."
          },
          "dateTo": {
            "title": "Launches to (Pacific time)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Last launch day, YYYY-MM-DD (included). Empty = same as \"Launches from\". At most 366 days per run."
          },
          "topics": {
            "title": "Topics (slugs)",
            "type": "array",
            "description": "Optional Product Hunt topic slugs, e.g. artificial-intelligence, developer-tools. One API listing per topic (launches and leaderboard).",
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product Hunt post URLs or slugs",
            "type": "array",
            "description": "Optional: specific launches, e.g. https://www.producthunt.com/posts/<slug> or just the slug. Parsed locally and read through the API (post by slug), never scraped.",
            "items": {
              "type": "string"
            }
          },
          "order": {
            "title": "Launch order",
            "enum": [
              "VOTES",
              "RANKING",
              "NEWEST",
              "FEATURED_AT"
            ],
            "type": "string",
            "description": "Order applied by the API to the launches listing (PostsOrder): VOTES, RANKING, NEWEST or FEATURED_AT.",
            "default": "VOTES"
          },
          "featured": {
            "title": "Featured filter",
            "enum": [
              "any",
              "featured",
              "notFeatured"
            ],
            "type": "string",
            "description": "Launches listing only: all posts, only featured posts, or only not-featured posts (API argument \"featured\"). The leaderboard always uses featured posts.",
            "default": "any"
          },
          "keyword": {
            "title": "Keyword filter (local)",
            "type": "string",
            "description": "Optional word kept only if it appears in the name, tagline or description. The official API has no keyword search for launches, so this filter is applied to the launches read (it does not search all of Product Hunt)."
          },
          "minVotes": {
            "title": "Minimum votes",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Launches listing only: skip launches with fewer votes (0 = no filter).",
            "default": 0
          },
          "maxLaunches": {
            "title": "Max launches",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum launches read per topic (or in total without topics) in the date range. Lower = cheaper and faster.",
            "default": 50
          },
          "leaderboardPeriod": {
            "title": "Leaderboard period",
            "enum": [
              "daily",
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "daily = one Pacific day; weekly = ISO week (Monday–Sunday) containing the date; monthly = calendar month containing the date.",
            "default": "daily"
          },
          "leaderboardDate": {
            "title": "Leaderboard date (Pacific time)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "A day inside the wanted period, YYYY-MM-DD. Empty = yesterday (Pacific time)."
          },
          "leaderboardOrder": {
            "title": "Leaderboard order",
            "enum": [
              "RANKING",
              "VOTES"
            ],
            "type": "string",
            "description": "RANKING or VOTES (API order). The \"rank\" column is the position in this API ordering; the API's own dailyRank / weeklyRank / monthlyRank fields are also returned as officialRank.",
            "default": "RANKING"
          },
          "leaderboardSize": {
            "title": "Leaderboard size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many top launches per leaderboard (per topic when topics are given).",
            "default": 20
          },
          "maxCommentsPerLaunch": {
            "title": "Max comments per launch",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Top-level comments read per launch (cursor pagination), all delivered inside the launch row. Replies are added on top (see below). The comment thread is charged once per launch whatever this number. 0 = none.",
            "default": 100
          },
          "includeReplies": {
            "title": "Include replies",
            "type": "boolean",
            "description": "Also return the replies of each comment (Comment.replies in the API).",
            "default": true
          },
          "maxRepliesPerComment": {
            "title": "Max replies per comment",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Replies read per comment (first page of replies returned by the API, up to 20). More replies = fewer comments per API request (Product Hunt's query-complexity limit), so a slower run.",
            "default": 5
          },
          "commentsOrder": {
            "title": "Comments order",
            "enum": [
              "NEWEST",
              "VOTES_COUNT"
            ],
            "type": "string",
            "description": "NEWEST or VOTES_COUNT (API CommentsOrder).",
            "default": "NEWEST"
          },
          "maxApiRequests": {
            "title": "Max API requests",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Safety cap on GraphQL requests per run (protects your Product Hunt rate limit: 6,250 complexity points per 15 minutes per application).",
            "default": 200
          },
          "maxRateLimitWaitSeconds": {
            "title": "Max wait for a rate-limit reset (seconds)",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "If your API quota (6,250 points per 15 minutes, about 100 points per request) is used up, wait at most this long for the reset announced by Product Hunt (X-Rate-Limit-Reset), else stop cleanly and keep the rows already delivered. Run again after the reset (up to 15 minutes) to continue.",
            "default": 0
          },
          "failRunOnError": {
            "title": "Mark the run FAILED on errors",
            "type": "boolean",
            "description": "Off (recommended): token, input or API problems end the run SUCCEEDED with a clear message and RUN_SUMMARY status CUSTOMER_ERROR. On: the run is marked FAILED instead.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}