{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Hunt Scraper",
    "description": "Export Product Hunt launches by daily, weekly, monthly, or yearly leaderboard, date, topic, category, and product URL, with optional makers, votes, comments, reviews, launch history, media, built-with data, and website metadata.",
    "version": "0.1",
    "x-build-id": "FGiwSVWT2WF1OGwZl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fetch_cat~product-hunt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fetch_cat-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/fetch_cat~product-hunt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fetch_cat-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/fetch_cat~product-hunt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fetch_cat-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",
        "properties": {
          "discoveryWindow": {
            "title": "Discovery window",
            "enum": [
              "latest",
              "daily",
              "weekly",
              "monthly",
              "yearly"
            ],
            "type": "string",
            "description": "Latest uses the public feed. Daily, weekly, monthly, and yearly use Product Hunt leaderboard archives.",
            "default": "latest"
          },
          "windowDate": {
            "title": "Window date",
            "type": "string",
            "description": "Anchor date in YYYY-MM-DD. Daily uses that day; other windows use its containing period. Defaults to today."
          },
          "maxItems": {
            "title": "Maximum launches",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard global maximum, applied before optional enrichment and billing.",
            "default": 20
          },
          "topics": {
            "title": "Topics",
            "type": "array",
            "description": "Keep launches matching any Product Hunt topic, such as Artificial Intelligence or Developer Tools.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep launches matching any public Product Hunt category name.",
            "items": {
              "type": "string"
            }
          },
          "launchDate": {
            "title": "Exact launch date (legacy compatible)",
            "type": "string",
            "description": "Optional exact YYYY-MM-DD filter. Existing integrations can continue using this field."
          },
          "startUrls": {
            "title": "Product Hunt product URLs",
            "type": "array",
            "description": "Optional producthunt.com/products/... URLs. URLs are validated before requests start.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeLaunchDetails": {
            "title": "Launch details",
            "type": "boolean",
            "description": "Add available votes, makers, topic/category metadata, gallery media, videos, and review summary.",
            "default": false
          },
          "includeComments": {
            "title": "Comments",
            "type": "boolean",
            "description": "Add public launch discussion comments. A failed comment page is recorded on that row and does not abort the run.",
            "default": false
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Add public Product Hunt reviews and ratings when available.",
            "default": false
          },
          "includeLaunchHistory": {
            "title": "Launch history",
            "type": "boolean",
            "description": "Add public launch dates, daily ranks, and points when available.",
            "default": false
          },
          "includeBuiltWith": {
            "title": "Built with",
            "type": "boolean",
            "description": "Add products and technologies publicly listed in Product Hunt's Built with section.",
            "default": false
          },
          "includeWebsiteEnrichment": {
            "title": "Website metadata",
            "type": "boolean",
            "description": "Visit the actual outbound website and add its final URL, title, and description. The Product Hunt page is never substituted as the website.",
            "default": false
          },
          "includeRedirectUrl": {
            "title": "Include outbound URL",
            "type": "boolean",
            "description": "Include Product Hunt's public outbound website URL when available.",
            "default": true
          },
          "cacheTtlHours": {
            "title": "Cache TTL in hours",
            "minimum": 0,
            "maximum": 168,
            "type": "integer",
            "description": "Reuse non-enriched base rows for this many hours. Set to 0 to disable cache.",
            "default": 12
          },
          "forceFresh": {
            "title": "Force fresh read",
            "type": "boolean",
            "description": "Ignore cached base rows.",
            "default": false
          },
          "runBudgetSeconds": {
            "title": "Run work budget in seconds",
            "minimum": 60,
            "maximum": 840,
            "type": "integer",
            "description": "Stop admitting new URLs and enrichments early enough to save a checkpoint and exit cleanly before the platform timeout. The 240-second default is safe for the Actor's 300-second run limit.",
            "default": 240
          },
          "proxyConfiguration": {
            "title": "Proxy (optional fallback)",
            "type": "object",
            "description": "Optional proxy for Product Hunt archive and detail requests. Leave disabled for the cheapest run; enable Apify Proxy if an IP is repeatedly rate limited.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}