LIHKG Scraper – Hong Kong Forum Threads, Replies & Sentiment avatar

LIHKG Scraper – Hong Kong Forum Threads, Replies & Sentiment

Pricing

from $2.00 / 1,000 threads

Go to Apify Store
LIHKG Scraper – Hong Kong Forum Threads, Replies & Sentiment

LIHKG Scraper – Hong Kong Forum Threads, Replies & Sentiment

Scrape LIHKG (a major Hong Kong forum) threads and replies for social listening: title, author, reply count, reactions, content and timestamps. No API or login. Export JSON/CSV/Excel. Ideal for HK sentiment analysis and brand monitoring.

Pricing

from $2.00 / 1,000 threads

Rating

0.0

(0)

Developer

Chad

Chad

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

LIHKG Scraper (No API, No Login)

Scrape LIHKG (Hong Kong's largest online forum) — latest thread listings per category, and full thread content with all replies — via the public api_v2 JSON endpoint, output as structured data.

This actor is built for English-speaking researchers, analysts, and engineers who need Hong Kong forum sentiment / social listening data. Note: LIHKG itself is a Cantonese/Traditional-Chinese forum, so scraped title / content fields will be in Chinese — this tool structures and exports that data, it does not translate it.

Output Fields

Thread listing / thread content (ThreadRow)

FieldTypeDescription
thread_idstringThread ID
titlestring | nullThread title
contentstring | nullThread body (null in listing mode)
authorstring | nullAuthor nickname
categorystring | nullCategory name
reply_countnumber | nullNumber of replies
like_countnumber | nullLike count
dislike_countnumber | nullDislike ("question mark face") count
created_atstring | nullPost time (ISO 8601)
thread_urlstringThread URL
source_modestringScrape mode (thread-list / thread)
source_querystringQuery used (category ID or thread ID)
scraped_atstringScrape timestamp (ISO 8601)

Replies (ReplyRow)

FieldTypeDescription
reply_idstring | nullReply ID (post_id)
thread_idstringParent thread ID
floornumber | nullFloor number (msg_num)
authorstring | nullAuthor nickname
contentstring | nullReply content (HTML tags stripped)
like_countnumber | nullLike count
dislike_countnumber | nullDislike count
created_atstring | nullReply time (ISO 8601)
scraped_atstringScrape timestamp (ISO 8601)

Modes

ModeInputOutputBilling
thread-listcatIds (category ID list)Thread listing (ThreadRow)$0.002/row
threadthreadIds / threadUrlsThread content ($0.008/thread) + all replies ($0.003/reply)by volume

Input Fields

FieldTypeDefaultDescription
modeenumthread-listMode: thread-list (listing) / thread (full thread)
catIdsarrayCategory IDs, e.g. 1 (Chat), 2 (Sports), 5 (Current Affairs)
threadIdsarrayList of thread IDs
threadUrlsarrayThread URLs; the ID is extracted automatically
bulkInputtextareaBulk paste, one item per line, auto-merged into the matching field
maxItemsinteger50Max items to scrape (listing: per category; thread: total threads)
keywordsarrayTitle keyword filter (listing mode only; leave empty for no filtering)
proxyConfigurationproxyno proxyEnable Apify Proxy for heavy scraping

Input Examples

Thread listing

{
"mode": "thread-list",
"catIds": ["1", "5"],
"maxItems": 100
}

Full thread and replies

{
"mode": "thread",
"threadIds": ["4126423"],
"maxItems": 50
}

Bulk thread URLs

{
"mode": "thread",
"threadUrls": [
"https://lihkg.com/thread/4126423/page/1",
"https://lihkg.com/thread/4000000/page/1"
],
"maxItems": 50
}

Notes

  • Only public content is scraped — no account or token required
  • Uses the api_v2 JSON endpoint (no browser — fast and low-cost)
  • Reply content has HTML tags automatically stripped (<br>, <img>, <span>, etc.)
  • Thread mode: maxItems limits the number of threads; all replies within each thread are scraped without limit
  • Billed per event: one-time actor-start fee of $0.005, $0.002 per listing row, $0.008 per thread, $0.003 per reply
  • Auto-stops after 5 consecutive pages with no new data — no idle burn
  • LIHKG's api_v2 may add an X-LI-DEVICE header check or a challenge in the future, and may block datacenter IPs. This is monitored via smoke tests on Apify Cloud (go/no-go); if blocked, the fallback is Apify residential proxy (proxyConfiguration) — not over-engineered in advance

FAQ

Q: Do I need to log in to view this data?

A: No. This actor only scrapes public thread listings and replies — nothing that requires login.

Q: Can I scrape multiple categories at once?

A: Yes. Add multiple IDs to catIds, or paste them one per line via bulkInput.

Q: How is reply HTML handled?

A: Automatically. The content field is plain text — HTML tags are stripped and HTML entities are decoded (&amp;&, &lt;<, etc.).

Q: Why is content null in thread-list mode?

A: The listing API doesn't return thread body content, only titles and metadata. Use thread mode if you need the full text.

Disclaimer

This tool is for academic research and lawful business analysis only. Users must comply with LIHKG's Terms of Service and applicable laws. Do not use this tool to invade others' privacy, spread false information, or engage in any other unlawful activity. The author accepts no responsibility for any misuse.


LIHKG scraper, Hong Kong forum, HK social sentiment, LIHKG API, Hong Kong online discussion, forum thread scraper, HK opinion data