Pantip Scraper & API – Thai Forum Topics and Comments
Pricing
from $2.00 / 1,000 topics
Pantip Scraper & API – Thai Forum Topics and Comments
Pantip scraper and unofficial Pantip API. Search pantip.com, Thailand's biggest forum, by keyword, or pull full topics with every comment and nested reply, plus author, tags, score and time. No login or API key. Export JSON, CSV or Excel for Thai social listening and brand monitoring.
Pricing
from $2.00 / 1,000 topics
Rating
0.0
(0)
Developer
Chad
Maintained by CommunityActor stats
0
Bookmarked
60
Total users
30
Monthly active users
13 hours ago
Last modified
Categories
Features
Share
Pantip Scraper & API – Scrape Thai Forum Topics and Comments
A Pantip scraper for pantip.com (พันทิป), Thailand's biggest discussion forum. Pantip has no official public API, so this Actor works as an unofficial Pantip API. You can search the whole site by keyword, or pull a full topic with every comment and nested reply. Export the results as JSON, CSV or Excel. No login or API key needed.
Built for Thai social listening and brand monitoring: share of voice against competitors, product-launch reactions, customer complaints and market research.
What the Pantip API returns
One row for the main post, then one row per comment (nested replies included). These are real rows from a topic run:
[{"topic_id": "44027563","site": "pantip","title": "อยากได้ไอโฟน","author": "สมาชิกหมายเลข 8467380","author_id": "8467380","tags": ["โทรศัพท์มือถือ", "สมาร์ทโฟน", "iPhone"],"created_at": "2026-03-24T05:07:02.000Z","topic_url": "https://pantip.com/topic/44027563","content": "ตอนนี้จะซื้อ iPhone ใหม่แต่อยากได้เป็นรุ่นโปรมือหนึ่งอยากรู้ว่ามีที่ไหนเหลือบ้างผ่อนแบบถูกๆตั้งแต่ 14 ถึง 16","source_mode": "topic"},{"comment_id": "44027563-1","topic_id": "44027563","floor": "1","is_reply": false,"author": "เจ็ดกอ","content": "เช็กที่ AIS Online/AIS Shop เลย เพราะมักมีสต็อก iPhone 14–16 Pro และโปรผ่อน 0%","score": 0,"created_at": "2026-03-24T05:10:06.000Z"}]
Some fields are trimmed here. The full list is in Output fields below.
How to scrape Pantip in 3 steps
- Choose a mode.
searchfinds topics by keyword across the whole site.topicreturns a full thread with every comment. - Add your input. Use keywords in Thai, English or brand names, or paste topic IDs or URLs.
- Run and export. Download the dataset as JSON, CSV or Excel, or read it from the Apify API.
{ "mode": "search", "keywords": ["iPhone", "Samsung"], "maxItems": 10 }
You pay per result: $0.002 per search result, $0.008 per topic and $0.003 per comment (see Modes).
Output fields
| Field | Type | Description |
|---|---|---|
topic_id | string | Topic ID (the topic/{id} in the URL) |
site | string | Always "pantip" |
comment_id | string | null | On comment rows, {topic_id}-{floor}; null on topic/search rows |
floor | string | null | Comment floor; nested replies are {comment_no}-{reply_no} |
is_reply | boolean | null | Whether this is a nested reply; null on topic/search rows |
title | string | null | Topic title (search/main-post rows); null on comment rows |
author | string | null | Poster / commenter display name |
author_id | string | null | Member ID |
content | string | null | Main post or comment body (HTML converted to plain text); null on search rows |
content_images | array | Image URLs found in the content (stickers / attachments) |
tags | array | Topic tags (main-post rows); empty array on search and comment rows |
comment_count | number | null | Comment count shown on the search card; null on topic and comment rows |
score | number | null | Comment vote score (Pantip good_bad_vote.point); null on topic/search rows |
created_at | string | null | Post/comment time (ISO 8601; search cards are day-level precision) |
topic_url | string | null | Topic link |
source_mode | string | search or topic (comment rows are topic) |
source_query | string | The matched keyword, or the topic ID (main post and its comments) |
scraped_at | string | Scrape time (ISO 8601) |
AI label fields (on every row; all null when the feature is off or the row was not labelled)
| Field | Type | Description |
|---|---|---|
ai_relevance | number | null | 0 to 1, probability that the text is about the tracked topic (aiTopic, or the search keyword in search mode); null when there is no topic |
ai_sentiment | number | null | Continuous sentiment from -2 (clearly negative) to +2 (clearly positive) |
ai_sentiment_label | string | null | negative (ai_sentiment <= -1.25) / positive (>= +0.75) / neutral (otherwise) |
ai_sentiment_confidence | number | null | 0 to 1, confidence of the sentiment judgement |
ai_intent | string | null | complaint / praise / question / other |
ai_intent_confidence | number | null | 0 to 1, confidence of the intent judgement |
ai_engine | string | null | Model version that actually answered (e.g. jev-1.13.0), kept as provenance |
ai_status | string | null | ok / failed (labelling failed) / skipped_budget (over your spending limit) / skipped_free_cap (free plan beyond 20 rows); null when the feature is off |
Modes
| Mode | Input | Output | Billing |
|---|---|---|---|
search (default) | keywords[] (site-wide search), dateFrom, maxItems | Topic list per keyword | search-listing $0.002/item |
topic | topicIds[]/topicUrls[], maxItems (comment cap per topic) | Main post + all comments (incl. nested replies) | product-detail $0.008/topic + review-item $0.003/comment |
Input fields
| Field | Type | Default | Description |
|---|---|---|---|
mode | string | search | search (site-wide search) or topic (full topic) |
keywords | array | — | Search keywords (Thai/English/brand names). Required for search mode |
topicIds | array | — | Topic IDs (numbers). Used by topic mode |
topicUrls | array | — | Full topic URLs; ID extracted automatically |
bulkInput | string | — | One per line; keywords in search, IDs/URLs in topic |
maxItems | integer | 50 | search: topics per keyword; topic: comments per topic (main post always returned). Max 500 |
dateFrom | string | — | Applies to search; relative 3d/12h/2w or absolute MM/DD/YY |
aiLabels | boolean | false | Turn on AI sentiment labels (+$0.002 per successfully labelled row; the free plan labels only the first 20 rows per run). See "AI sentiment labels" |
aiTopic | string | — | Brand or topic to track, used for ai_relevance. Empty: search mode uses the search keyword; topic mode skips relevance |
proxyConfiguration | object | Apify datacenter | On by default; without a proxy you share an egress IP and risk rate-limiting |
JSON examples
1) Search brand share-of-voice
{ "mode": "search", "keywords": ["iPhone", "Samsung"], "maxItems": 10 }
2) Only topics from the last 30 days
{ "mode": "search", "keywords": ["โตโยต้า"], "maxItems": 20, "dateFrom": "30d" }
3) Fetch a full topic (main post + all comments)
{ "mode": "topic", "topicIds": ["44209153"], "maxItems": 200 }
4) Fetch multiple topics by URL
{ "mode": "topic", "bulkInput": "https://pantip.com/topic/44209153\nhttps://pantip.com/topic/44008597" }
5) One row per comment (incl. nested replies)
{ "mode": "topic", "topicIds": ["44209153"], "maxItems": 500 }
AI sentiment labels (optional, +$0.002 per row)
Turn on the aiLabels input and every row gets the eight ai_ fields above, so you do not have to run a separate classification pass. The labels are in English even though the posts are Thai, so you can filter and chart Thai content without reading it.
- What it judges: whether the text is about the brand you track (
ai_relevance), its sentiment (ai_sentiment), and whether it is a complaint, praise, a question or something else (ai_intent). Put the brand inaiTopic; insearchmode, leaving it empty uses the search keyword, while intopicmode relevance is not asked andai_relevanceis null. - Which rows are labelled: every row type that has text: search result rows (judged on the topic title), topic main-post rows (title plus body) and comment / nested-reply rows (the comment text, with the topic title and opening post attached as context when known). A row with no text at all (for example a sticker-only comment) gets
ai_status=failedand is not billed. - Thresholds are yours to change:
ai_sentiment_labeluses default cut-offs (<= -1.25 negative, >= +0.75 positive); you can re-bucketai_sentimentyourself. We suggest treatingai_relevance>= 0.55 as relevant (0.8 for strict filtering of titles). The confidence fields let you keep only the rows the model is sure about. - Price: $0.002 per successfully labelled row (the
ai-labelevent), on top of the normal scraping events. Rows that fail (failed), hit your spending limit (skipped_budget) or exceed the free allowance (skipped_free_cap) are not billed for AI; the data row itself is still delivered. - Free plan: only the first 20 rows of each run are labelled; the rest get
ai_status=skipped_free_cap. - Accuracy: in a small internal test on 25 real Thai Pantip posts, the labels agreed with our reference answers about 80% of the time for sentiment and 92% for relevance. That is a small sample, so treat the labels as a fast first filter; sarcasm, slang and forum in-jokes can still be misjudged, so use the confidence scores or spot checks for important conclusions.
- Where the data goes: when enabled, only the text (topic title, post body or comment) is sent to TypeSafe (US) for processing. Author names, member IDs and URLs are never sent. According to its documentation TypeSafe does not train on API data. Leave the option off (the default) if you do not want text sent out.
Notes
searchis a site-wide Pantip keyword search (not in-room filtering), but v1 returns the first page per keyword (~10 most relevant); multi-page search uses Pantip's authenticated API and is scoped to v1.1. Schedule periodic runs and usedateFromto keep new topics for continuous monitoring.- Comment pagination in
topicmode: Pantip shows 100 comments per page; the Actor auto-paginates up tomaxItems. A single hot topic can have thousands of comments — usemaxItemsto control cost. - Sticker/image-only comments have
content= null; the image URLs are incontent_images. - Times: main post and comments are exact timestamps; search cards are day-level precision (Thai Buddhist-era dates, converted to Gregorian).
- Defaults to Apify datacenter proxy; for local testing set
proxyConfiguration.useApifyProxy = false.
FAQ
- Do I need a login or API key? No — only public content is scraped.
- Can it get comments? Yes —
topicmode returns the main post and all comments (including nested replies), one row each. - Can I monitor only certain keywords? Yes — use
searchmode with keywords, plusdateFromfor the most economical scheduled monitoring. - Output format? Export via the Apify Dataset as JSON/CSV/Excel/HTML/API.
📚 Related tutorials & tools
Hands-on guides and free tools built on this actor, at AI Social API:
- 📖 Guide: Pantip API and Southeast Asia Forum Data: Getting Thai and Vietnamese Forum Posts and Comments Without an Official API
- 📖 Tutorial: Build a no-code forum sentiment pipeline with Apify + n8n + GPT
- 📊 Data: Asian forum scrapability × cost table — measured on live runs: which forums need only a plain request, which need a residential IP, and what one item costs
- 🛠 Free tools: Forum sentiment quick-check · Apify cost calculator
- 🤝 Rather not run it yourself? I run it for you — scheduled daily, delivered to your Google Sheet or Slack, from US$299/mo.
Maintained by an operator running 30+ live Apify actors.
Disclaimer
This Actor only scrapes publicly visible content on Pantip, for research and sentiment-analysis purposes. Please comply with Pantip's terms of service and local regulations, and do not use it to violate personal data or for commercial abuse. Keep your scraping frequency reasonable to avoid burdening the source site.
Keywords: Pantip scraper, Pantip API, unofficial Pantip API, Pantip API alternative, Pantip crawler, scrape Pantip, Thai forum, Thailand social listening, brand monitoring Thailand, share of voice, sentiment analysis, market research, pantip.com, threads, comments, forum data.