{
  "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 available votes, comments, review totals, known-launch history, media, and public outbound links.",
    "version": "0.1",
    "x-build-id": "qCFR5h9Wdicv3fX5E"
  },
  "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": "Legacy label filter. Matches available public topic labels, not a separate category taxonomy. When topics are also provided, both filter lists must match the record.",
            "items": {
              "type": "string"
            }
          },
          "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"
                }
              }
            }
          },
          "launchDate": {
            "title": "Exact launch date (legacy compatible)",
            "type": "string",
            "description": "Optional exact YYYY-MM-DD filter within the selected discovery records. For an older day, also choose daily and set windowDate. This field alone does not retrieve older launches from the latest feed."
          },
          "includeLaunchDetails": {
            "title": "Launch details",
            "type": "boolean",
            "description": "Add available votes, rankings, public topic labels, gallery media, videos, and review summary. Maker profiles and separate category records are not currently populated.",
            "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": "Individual reviews (withdrawn; leave off)",
            "type": "boolean",
            "description": "Compatibility flag only. Omit or set false. Explicit requests are rejected before Actor charges. Available review counts and ratings remain in launch details.",
            "default": false
          },
          "includeLaunchHistory": {
            "title": "Launch history",
            "type": "boolean",
            "description": "Add the known launch date, rank and votes from the public record. This is not a complete relaunch history.",
            "default": false
          },
          "includeBuiltWith": {
            "title": "Built with (withdrawn; leave off)",
            "type": "boolean",
            "description": "Compatibility flag only. Omit or set false. Explicit requests are rejected before Actor charges; technologies are no longer extracted.",
            "default": false
          },
          "includeWebsiteEnrichment": {
            "title": "Website metadata (withdrawn; leave off)",
            "type": "boolean",
            "description": "Compatibility flag only. Omit or set false. Explicit requests are rejected before Actor charges. Outbound redirect URLs remain available without destination resolution.",
            "default": false
          },
          "includeRedirectUrl": {
            "title": "Include outbound URL",
            "type": "boolean",
            "description": "Include the public outbound URL when available. It may be a Product Hunt redirect; the destination is not resolved.",
            "default": true
          },
          "cacheTtlHours": {
            "title": "Cache TTL (legacy compatibility)",
            "minimum": 0,
            "maximum": 168,
            "type": "integer",
            "description": "Accepted for saved-input compatibility only; ignored. All runs fetch fresh public data without cross-run result caching.",
            "default": 12
          },
          "forceFresh": {
            "title": "Force fresh read",
            "type": "boolean",
            "description": "Accepted for saved-input compatibility only; ignored. Every run already fetches fresh public data.",
            "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
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}