{
  "openapi": "3.0.1",
  "info": {
    "title": "HardwareZone Forum Scraper — Threads, Posts & Boards (SG)",
    "description": "Scrape HardwareZone Forums (Singapore): threads of any board or category with exact reply counts, every post of chosen threads with quotes, reactions, images and links, the full board tree, and site-wide recent posts. Only-new mode for scheduled runs.",
    "version": "0.1",
    "x-build-id": "tXAGJJa0JlpLiSjwJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teodor_banea~hardwarezone-forum-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teodor_banea-hardwarezone-forum-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/teodor_banea~hardwarezone-forum-scraper/runs": {
      "post": {
        "operationId": "runs-sync-teodor_banea-hardwarezone-forum-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/teodor_banea~hardwarezone-forum-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-teodor_banea-hardwarezone-forum-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "threads",
              "posts",
              "boards",
              "recentActivity"
            ],
            "type": "string",
            "description": "Choose \"Threads of boards\" for the thread list of boards or categories, \"Posts of threads\" for every post of the threads you list, \"Board tree\" for all boards with their thread and message counts, or \"Recent posts (site-wide)\" for the newest posts of the most recently active threads.",
            "default": "threads"
          },
          "boardUrls": {
            "title": "Boards or categories (Threads mode)",
            "type": "array",
            "description": "Enter board URLs (https://forums.hardwarezone.com.sg/forums/eat-drink-man-woman.16/), category URLs (…/categories/lifestyle.15/ — all its boards and sub-forums) or board ids such as 16. A board's sub-forums are separate boards: add them, or use the category URL.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort threads by (Threads mode)",
            "enum": [
              "newest",
              "latestActivity"
            ],
            "type": "string",
            "description": "\"Newest threads\" lists threads by start date, newest first — a complete, stable listing that stops cleanly at \"Started after\". \"Latest activity\" lists threads by their last reply, as the board shows them by default.",
            "default": "newest"
          },
          "startedAfter": {
            "title": "Started after (Threads mode)",
            "type": "string",
            "description": "Keep threads started on or after this date (Singapore time), or within a recent period such as \"7 days\". The board stops being read at that date (with \"Latest activity\": once threads have no post since the date). A date in the future is rejected."
          },
          "maxThreadsPerBoard": {
            "title": "Maximum threads per board (Threads mode)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Enter how many threads to take from each board. 0 = all (limited by Maximum results).",
            "default": 0
          },
          "includeFirstPost": {
            "title": "Include first post (Threads mode)",
            "type": "boolean",
            "description": "Open each thread to add the opening post's text and id, the exact reply count (the board list rounds counts from 1,000: \"3K\") and the category. Adds one page load per thread.",
            "default": false
          },
          "includeStickies": {
            "title": "Include sticky threads (Threads mode)",
            "type": "boolean",
            "description": "Also deliver the threads pinned at the top of each board (often years old). They count toward the limits. Off: pinned threads are skipped.",
            "default": false
          },
          "threadUrls": {
            "title": "Threads (Posts mode)",
            "type": "array",
            "description": "Enter thread URLs (https://forums.hardwarezone.com.sg/threads/<title>.7227366/ — any page), short thread URLs (…/threads/7227366/), post URLs (…/posts/160049774/ — the whole thread of that post) or thread ids.",
            "items": {
              "type": "string"
            }
          },
          "newestFirst": {
            "title": "Newest posts first (Posts mode)",
            "type": "boolean",
            "description": "Read each thread from its last page backwards (newest posts first). Off: from the first post. With \"Posted after\" threads are always read newest first.",
            "default": true
          },
          "maxPostsPerThread": {
            "title": "Maximum posts per thread (Posts and Recent modes)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Enter how many posts to take from each thread (the newest ones when reading newest first). 0 = all (limited by Maximum results).",
            "default": 0
          },
          "postedAfter": {
            "title": "Posted after (Posts and Recent modes)",
            "type": "string",
            "description": "Keep posts made on or after this date (Singapore time), or within a recent period such as \"12 hours\". Threads are read newest first and stop at that point. Recent mode without a value: the last 24 hours. A date in the future is rejected."
          },
          "maxThreads": {
            "title": "Maximum threads (Recent mode)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Enter how many of the most recently active threads to read (the site lists up to about 200 — roughly the last 7 hours).",
            "default": 50
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Enter how many rows to return in total. 0 = all (capped at 10,000 without a date or per-board / per-thread limit).",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}