{
  "openapi": "3.0.1",
  "info": {
    "title": "Kaskus Scraper — Threads, Replies & Forum Search (Indonesia)",
    "description": "Kaskus scraper for threads, replies, community listings and keyword search on Indonesia's largest forum. Export clean Indonesian text with views, reply counts, votes and dates to JSON, CSV or Excel. Only-new mode for brand monitoring. No login needed.",
    "version": "0.1",
    "x-build-id": "PY4Q7Yz8XFtUzSLOp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapelabmax~kaskus-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapelabmax-kaskus-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/scrapelabmax~kaskus-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapelabmax-kaskus-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/scrapelabmax~kaskus-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapelabmax-kaskus-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": {
          "startUrls": {
            "title": "Kaskus URLs",
            "type": "array",
            "description": "Thread URLs (kaskus.co.id/thread/<id>/...), community URLs (kaskus.co.id/komunitas/<id>/... or /forum/<id>), search URLs (kaskus.co.id/search?q=...), post links (kaskus.co.id/show_post/<id>), kask.us short links, or bare 24-character thread IDs. One per line.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search Kaskus threads for (Indonesian keywords work best, e.g. \"iphone 16\", \"harga emas\"). Kaskus search returns at most 1,000 threads per keyword — use a community URL for complete coverage.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchCommunityIds": {
            "title": "Limit search to community IDs",
            "type": "array",
            "description": "Optional: only search inside these communities (the number in kaskus.co.id/komunitas/<id>). Example: 10 = Berita dan Politik, 36 = Handphone & Tablet.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Thread order",
            "enum": [
              "newest",
              "active",
              "popular",
              "views",
              "replies"
            ],
            "type": "string",
            "description": "Order used for community listings and search results. \"Most viewed\" and \"Most replies\" apply to search only (communities fall back to newest).",
            "default": "newest"
          },
          "maxThreadsPerInput": {
            "title": "Max threads per community or keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many threads for each community URL or search keyword. Thread URLs always return their one thread.",
            "default": 20
          },
          "includeReplies": {
            "title": "Scrape replies",
            "type": "boolean",
            "description": "Also return the replies of every thread.",
            "default": false
          },
          "maxRepliesPerThread": {
            "title": "Max replies per thread",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap on reply rows per thread (nested replies count toward it). Raise it deliberately for long threads.",
            "default": 100
          },
          "replyOrder": {
            "title": "Which replies first",
            "enum": [
              "oldest",
              "newest"
            ],
            "type": "string",
            "description": "Oldest = the conversation from the start (like reading the thread). Newest = the latest replies first.",
            "default": "oldest"
          },
          "includeNestedReplies": {
            "title": "Include nested replies",
            "type": "boolean",
            "description": "Kaskus lets users reply to a reply. When on, those nested replies are returned too, with parentReplyId set.",
            "default": false
          },
          "dateFrom": {
            "title": "Posted after",
            "type": "string",
            "description": "Only threads created on/after this date. YYYY-MM-DD, an ISO timestamp, or a relative window like \"7 days\" or \"24 hours\"."
          },
          "dateTo": {
            "title": "Posted before",
            "type": "string",
            "description": "Only threads created on/before this date (YYYY-MM-DD includes the whole day)."
          },
          "minReplies": {
            "title": "Minimum replies",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with fewer replies.",
            "default": 0
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip threads with fewer views.",
            "default": 0
          },
          "skipStickyThreads": {
            "title": "Skip pinned threads",
            "type": "boolean",
            "description": "Community pages start with pinned (sticky) threads such as rules and long-running chat threads. Skipped by default; untick to include them.",
            "default": true
          },
          "includeAdultContent": {
            "title": "Include adult communities",
            "type": "boolean",
            "description": "Adult (18+/21+) communities are excluded by default. Tick to include them.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new threads and replies",
            "type": "boolean",
            "description": "After the first run, return only threads and replies posted since the previous run. State is kept per input in the \"kaskus-scraper-state\" key-value store on your account.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring name",
            "type": "string",
            "description": "Optional label that keeps the memory of separate schedules apart when they scrape the same inputs."
          },
          "includeRawContent": {
            "title": "Include raw HTML and BBCode",
            "type": "boolean",
            "description": "Adds rawHtml and rawBbcode fields with the post body exactly as Kaskus stores it.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Threads fetched in parallel. Kaskus is a small site — the default is polite and fast enough.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Kaskus works with Apify datacenter proxies. If proxied requests keep failing, the actor retries once without a proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}