{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper (official API): launches, leaderboard",
    "description": "Returns Product Hunt posts as structured rows: daily launches and leaderboards, topic feeds, votes, rank, makers, hunter, media, resolved website and comments, plus a new-launches monitor mode. Official Product Hunt API, so no anti-bot failures. Pay per result.",
    "version": "0.1",
    "x-build-id": "l299KPYa5angbINDb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/brenton8907~product-hunt-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-brenton8907-product-hunt-data",
        "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/brenton8907~product-hunt-data/runs": {
      "post": {
        "operationId": "runs-sync-brenton8907-product-hunt-data",
        "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/brenton8907~product-hunt-data/run-sync": {
      "post": {
        "operationId": "run-sync-brenton8907-product-hunt-data",
        "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": "Mode",
            "enum": [
              "launches",
              "posts",
              "topics"
            ],
            "type": "string",
            "description": "Launches: posts in a date window (leaderboard). Posts: specific posts by URL/slug or by product website. Topics: list topics.",
            "default": "launches"
          },
          "days": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 366,
            "type": "integer",
            "description": "Launches mode: how many days up to today (or up to 'Date to'). Ignored when 'Date from' is set. 1 = today's launches.",
            "default": 1
          },
          "dateFrom": {
            "title": "Date from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Launches mode: first day (UTC), YYYY-MM-DD. Overrides 'Days back'."
          },
          "dateTo": {
            "title": "Date to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Launches mode: last day (UTC), YYYY-MM-DD. Defaults to today."
          },
          "order": {
            "title": "Order",
            "enum": [
              "ranking",
              "votes",
              "newest",
              "featured_at"
            ],
            "type": "string",
            "description": "Order of posts before 'Max posts' is applied.",
            "default": "ranking"
          },
          "featuredOnly": {
            "title": "Featured only",
            "type": "boolean",
            "description": "Only posts featured on the homepage (the leaderboard). Turn off to include every submitted post.",
            "default": true
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Topic slugs, e.g. artificial-intelligence, developer-tools, productivity, saas. Find slugs with mode 'Topics'.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Case-insensitive keywords matched against name, tagline, description and topic names.",
            "items": {
              "type": "string"
            }
          },
          "minVotes": {
            "title": "Min votes",
            "minimum": 0,
            "type": "integer",
            "description": "Drop posts below this vote count.",
            "default": 0
          },
          "postUrls": {
            "title": "Post URLs or slugs",
            "type": "array",
            "description": "Posts mode: producthunt.com/posts/<slug> URLs or bare slugs.",
            "items": {
              "type": "string"
            }
          },
          "websiteUrls": {
            "title": "Product website URLs",
            "type": "array",
            "description": "Posts mode: find Product Hunt posts by the product's website URL (exact match as submitted).",
            "items": {
              "type": "string"
            }
          },
          "topicQuery": {
            "title": "Topic search",
            "type": "string",
            "description": "Topics mode: filter topics by name."
          },
          "maxItems": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Cap on dataset rows, applied after filtering and sorting.",
            "default": 100
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Attach top comments per post (extra API calls). Billed as enriched record.",
            "default": false
          },
          "commentsLimit": {
            "title": "Comments per post",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "How many comments (by votes) to attach when 'Include comments' is on.",
            "default": 20
          },
          "resolveWebsites": {
            "title": "Resolve product websites",
            "type": "boolean",
            "description": "Follow Product Hunt's redirect link to the real product URL (tracking parameters stripped).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy for website resolution",
            "type": "object",
            "description": "Used only to follow producthunt.com/r/... redirects to the real product website (the site blocks datacenter IPs). The API calls never use a proxy. A resolution is a few KB, so residential usage is negligible.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "changesOnly": {
            "title": "Changes only (monitor mode)",
            "type": "boolean",
            "description": "Remember posts between runs and output only new launches, posts whose votes moved at least 'Min vote change', or whose daily rank changed. Schedule the actor for a clean 'what's new' feed.",
            "default": false
          },
          "minVoteDelta": {
            "title": "Min vote change",
            "minimum": 0,
            "type": "integer",
            "description": "Monitor mode: minimum vote change to report a post already seen.",
            "default": 10
          },
          "monitorStoreName": {
            "title": "Monitor store name",
            "type": "string",
            "description": "Named key-value store that holds the last-seen snapshot. Use different names for different watchlists.",
            "default": "product-hunt-monitor"
          },
          "accessToken": {
            "title": "Your Product Hunt API token (optional)",
            "type": "string",
            "description": "Optional. A developer token or client-level token from api.producthunt.com/v2/oauth/applications. Using your own token gives you your own rate-limit quota (6,250 complexity points per 15 minutes)."
          },
          "maxWaitSecs": {
            "title": "Max wait on rate limit (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "If Product Hunt's rate limit is hit, wait up to this long for the window to reset before failing.",
            "default": 900
          },
          "includeRaw": {
            "title": "Include raw API objects",
            "type": "boolean",
            "description": "Attach the untouched upstream post object under 'raw'.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}