LIHKG 連登爬蟲|關鍵字搜尋、貼文留言、香港輿情監控(免 API)
Pricing
from $2.00 / 1,000 帖子列表
LIHKG 連登爬蟲|關鍵字搜尋、貼文留言、香港輿情監控(免 API)
免登入抓連登(LIHKG)香港論壇:全站關鍵字搜尋、分台主題列表、貼文全文與所有留言,含推/踩數與時間,輸出 JSON/CSV/Excel。配合排程即為品牌關鍵字每日監控,只抓有新動靜的主題、成本不隨歷史膨脹。香港輿情監測、社群聆聽、品牌聲量分析必備。
LIHKG 連登爬蟲|關鍵字搜尋、貼文留言、香港輿情監控(免 API)
Pricing
from $2.00 / 1,000 帖子列表
免登入抓連登(LIHKG)香港論壇:全站關鍵字搜尋、分台主題列表、貼文全文與所有留言,含推/踩數與時間,輸出 JSON/CSV/Excel。配合排程即為品牌關鍵字每日監控,只抓有新動靜的主題、成本不隨歷史膨脹。香港輿情監測、社群聆聽、品牌聲量分析必備。
You can access the LIHKG 連登爬蟲|關鍵字搜尋、貼文留言、香港輿情監控(免 API) programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
{ "openapi": "3.0.1", "info": { "version": "1.0", "x-build-id": "qgadgaQIHXecgCt0D" }, "servers": [ { "url": "https://api.apify.com/v2" } ], "paths": { "/acts/claude_code_reviewer~lihkg-scraper/run-sync-get-dataset-items": { "post": { "operationId": "run-sync-get-dataset-items-claude_code_reviewer-lihkg-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/claude_code_reviewer~lihkg-scraper/runs": { "post": { "operationId": "runs-sync-claude_code_reviewer-lihkg-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/claude_code_reviewer~lihkg-scraper/run-sync": { "post": { "operationId": "run-sync-claude_code_reviewer-lihkg-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": "🎯 模式", "enum": [ "thread-list", "thread", "search" ], "type": "string", "description": "要抓什麼?選一個模式,填下面對應欄位就好。", "default": "thread-list" }, "catIds": { "title": "📋 分台 ID", "maxItems": 50, "uniqueItems": true, "type": "array", "description": "分台 ID(數字),例如 1(吹水台)、2(體育台)、5(時事台)。列表模式用這個。填 all 會展開成全部 37 個可發文分台(自動排除熱門/最新/自選台等彙整台);maxItems 是每個分台各自的上限,不是總數。", "items": { "type": "string" } }, "threadIds": { "title": "💬 貼文 ID", "maxItems": 100, "uniqueItems": true, "type": "array", "description": "連登貼文 ID(數字),例如 1234567。貼文模式用這個。", "items": { "type": "string" } }, "threadUrls": { "title": "💬 貼文網址", "maxItems": 100, "uniqueItems": true, "type": "array", "description": "連登貼文完整網址,例如 https://lihkg.com/thread/1234567/page/1。會自動抽出 ID。", "items": { "type": "string" } }, "bulkInput": { "title": "📋 批量貼上", "type": "string", "description": "**一行一個**,按 Enter 換行,不要加引號或逗號。列表模式當分台 ID、貼文模式當貼文 ID/網址、搜尋模式當關鍵字,執行時自動併入上面對應欄位。從 Google Sheet / Excel 複製一整欄貼進來最快。" }, "maxItems": { "title": "📊 最多抓幾筆", "minimum": 1, "maximum": 2000, "type": "integer", "description": "列表模式:每個分台最多抓幾篇主題。貼文模式:最多抓幾篇貼文(每篇留言預設全部抓取,設定 maxReplies 可限制每串留言數,依樓層)。搜尋模式:每個關鍵字最多抓幾筆。上限 2000。", "default": 50 }, "maxReplies": { "title": "🧵 每串最多回覆數(選填)", "minimum": 1, "type": "integer", "description": "貼文模式(thread)適用。每一串最多抓幾則回覆。每則回覆都按筆計費(review-item),熱門長帖可能有數千則,設定這個可以限制單串花費。取每串前 N 個回覆樓層(依樓層編號判斷,被刪除的樓層可能使實際筆數略少於 N)。留空=不限制(預設,抓完整串)。與「最多抓幾筆」無關,後者限制的是串數。" }, "keywords": { "title": "🔍 關鍵字", "maxItems": 50, "uniqueItems": true, "type": "array", "description": "搜尋模式:要搜尋的關鍵字(品牌名、產品名、地產商名),每個關鍵字各自查一輪。列表模式:只保留標題包含任一關鍵字的主題(過濾用,留空不過濾)。批量貼上(bulkInput)在搜尋模式下也會併入這裡。", "items": { "type": "string" } }, "order": { "title": "🔃 排序", "enum": [ "desc_reply_time", "desc_create_time", "score" ], "type": "string", "description": "搜尋模式用。最新回覆優先適合監控(配合 dateFrom 會提早停止翻頁);最新發文優先看新開的主題;相關度優先適合研究。", "default": "desc_reply_time" }, "dateFrom": { "title": "📅 只要這個時間之後有動靜的主題(選填)", "type": "string", "description": "格式:相對時間 3d(3 天內)、12h(12 小時內)、2w(2 週內),或絕對日期 MM/DD/YY。留空表示不過濾。有設定時也會提早停止翻頁,排程監控時省成本。" }, "aiLabels": { "title": "🤖 AI 輿情標籤(每筆 +$0.002)", "type": "boolean", "description": "開啟後,每一列另外附上 AI 判斷的欄位:跟追蹤主題有沒有關(ai_relevance)、情緒分數與正負面標籤(ai_sentiment、ai_sentiment_label)、意圖(ai_intent:抱怨/稱讚/發問/其他)及各項信心分數。每筆成功標好的資料另收 $0.002(ai-label 事件);標籤失敗的不收費。文字會送到 TypeSafe(美國)處理。免費方案每次執行只標前 20 筆。預設關閉。", "default": false }, "aiTopic": { "title": "🎯 追蹤的品牌或主題(判斷相關性用)", "type": "string", "description": "選填。AI 判斷每則內容是否在討論這個品牌或主題(ai_relevance)。留空時:搜尋模式用該筆的搜尋關鍵字;分台列表與貼文模式不判斷相關性,ai_relevance 為 null,其他標籤照常產生。僅在開啟「AI 輿情標籤」時有效。" }, "proxyConfiguration": { "title": "🌐 Proxy(預設開啟 Apify datacenter proxy)", "type": "object", "description": "預設走 Apify datacenter proxy:不用 proxy 時會跟平台上其他 run 共用出口 IP,LIHKG 會因為別人的流量對你限流(429、回覆缺頁)。JSON 回應很小,proxy 流量費可忽略。自備 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 } } } } } } } } }}OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.
OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.
By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.
You can download the OpenAPI definitions for LIHKG 連登爬蟲|關鍵字搜尋、貼文留言、香港輿情監控(免 API) from the options below:
If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.
You can also check out our other API clients: