{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper (Official API)",
    "description": "Product Hunt launches, rankings, votes and full comment threads via the official GraphQL API — no fragile HTML parsing. Bring your own free token and get a private rate-limit budget instead of queuing behind a shared one. Personal data pseudonymised by default.",
    "version": "0.1",
    "x-build-id": "ndCcdeNC0fpRG0FS4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wbeaman86~product-hunt-api-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wbeaman86-product-hunt-api-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/wbeaman86~product-hunt-api-scraper/runs": {
      "post": {
        "operationId": "runs-sync-wbeaman86-product-hunt-api-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/wbeaman86~product-hunt-api-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-wbeaman86-product-hunt-api-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",
        "properties": {
          "phToken": {
            "title": "Product Hunt developer token",
            "type": "string",
            "description": "Your own Product Hunt API developer token. Create one free at https://www.producthunt.com/v2/oauth/applications - create an application, open it, and click Create Token. The token does not expire and only needs the default public scope. Using your own token means you get Product Hunt's full rate-limit budget to yourself instead of sharing one with every other user of this Actor. LEAVE THIS EMPTY to get a few frozen sample records instead, free of charge, so you can see the output shape before signing up."
          },
          "order": {
            "title": "Sort order",
            "enum": [
              "RANKING",
              "NEWEST",
              "FEATURED_AT",
              "VOTES"
            ],
            "type": "string",
            "description": "How to order the posts returned by Product Hunt.",
            "default": "RANKING"
          },
          "postedAfter": {
            "title": "Posted after",
            "type": "string",
            "description": "ISO date, e.g. 2026-01-01. NOTE: Product Hunt defaults this to one month ago. Set it explicitly to reach older posts."
          },
          "postedBefore": {
            "title": "Posted before",
            "type": "string",
            "description": "ISO date, e.g. 2026-06-30."
          },
          "topic": {
            "title": "Topic slug",
            "type": "string",
            "description": "Only posts carrying this topic slug, e.g. 'artificial-intelligence' or 'developer-tools'."
          },
          "featuredOnly": {
            "title": "Featured posts only",
            "type": "boolean",
            "description": "Restrict to posts Product Hunt has featured.",
            "default": false
          },
          "maxPosts": {
            "title": "Maximum posts",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many posts. Set 0 for no limit (bounded by your rate-limit budget).",
            "default": 100
          },
          "postsPerPage": {
            "title": "Posts per request",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Page size. Product Hunt caps this at 20 — higher values are silently reduced. Each request costs a flat 100 rate-limit points regardless of size, so 20 is almost always right.",
            "default": 20
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Fetch comments alongside each post. Costs nothing extra in rate-limit terms — Product Hunt charges a flat 100 points per request regardless of size.",
            "default": false
          },
          "maxCommentsPerPost": {
            "title": "Max comments per post",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many comments to fetch per post. Only used when comments are included.",
            "default": 20
          },
          "includeMakers": {
            "title": "Include makers",
            "type": "boolean",
            "description": "Include the makers credited on each post. With personal data off (the default) they appear as pseudonymous hashes.",
            "default": true
          },
          "includeTopics": {
            "title": "Include topics",
            "type": "boolean",
            "description": "Include the topic slugs attached to each post, e.g. 'artificial-intelligence'.",
            "default": true
          },
          "includeMedia": {
            "title": "Include media",
            "type": "boolean",
            "description": "Include the post's media items (images and video thumbnails). Off by default as most users don't need them.",
            "default": false
          },
          "includeUserIdentity": {
            "title": "Include personal data of users",
            "type": "boolean",
            "description": "OFF by default. When off, people (hunters, makers, commenters) are returned as a stable pseudonymous hash with no name, username, profile image, Twitter handle or profile URL. Turn this on only if you have a lawful basis under UK/EU GDPR for processing their personal data.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}