Pantip Scraper & API – Thai Forum Topics and Comments avatar

Pantip Scraper & API – Thai Forum Topics and Comments

Pricing

from $2.00 / 1,000 topics

Go to Apify Store
Pantip Scraper & API – Thai Forum Topics and Comments

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

Chad

Maintained by Community

Actor stats

0

Bookmarked

60

Total users

30

Monthly active users

13 hours ago

Last modified

Features

Limited permissions

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

  1. Choose a mode. search finds topics by keyword across the whole site. topic returns a full thread with every comment.
  2. Add your input. Use keywords in Thai, English or brand names, or paste topic IDs or URLs.
  3. 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

FieldTypeDescription
topic_idstringTopic ID (the topic/{id} in the URL)
sitestringAlways "pantip"
comment_idstring | nullOn comment rows, {topic_id}-{floor}; null on topic/search rows
floorstring | nullComment floor; nested replies are {comment_no}-{reply_no}
is_replyboolean | nullWhether this is a nested reply; null on topic/search rows
titlestring | nullTopic title (search/main-post rows); null on comment rows
authorstring | nullPoster / commenter display name
author_idstring | nullMember ID
contentstring | nullMain post or comment body (HTML converted to plain text); null on search rows
content_imagesarrayImage URLs found in the content (stickers / attachments)
tagsarrayTopic tags (main-post rows); empty array on search and comment rows
comment_countnumber | nullComment count shown on the search card; null on topic and comment rows
scorenumber | nullComment vote score (Pantip good_bad_vote.point); null on topic/search rows
created_atstring | nullPost/comment time (ISO 8601; search cards are day-level precision)
topic_urlstring | nullTopic link
source_modestringsearch or topic (comment rows are topic)
source_querystringThe matched keyword, or the topic ID (main post and its comments)
scraped_atstringScrape time (ISO 8601)

AI label fields (on every row; all null when the feature is off or the row was not labelled)

FieldTypeDescription
ai_relevancenumber | null0 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_sentimentnumber | nullContinuous sentiment from -2 (clearly negative) to +2 (clearly positive)
ai_sentiment_labelstring | nullnegative (ai_sentiment <= -1.25) / positive (>= +0.75) / neutral (otherwise)
ai_sentiment_confidencenumber | null0 to 1, confidence of the sentiment judgement
ai_intentstring | nullcomplaint / praise / question / other
ai_intent_confidencenumber | null0 to 1, confidence of the intent judgement
ai_enginestring | nullModel version that actually answered (e.g. jev-1.13.0), kept as provenance
ai_statusstring | nullok / failed (labelling failed) / skipped_budget (over your spending limit) / skipped_free_cap (free plan beyond 20 rows); null when the feature is off

Modes

ModeInputOutputBilling
search (default)keywords[] (site-wide search), dateFrom, maxItemsTopic list per keywordsearch-listing $0.002/item
topictopicIds[]/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

FieldTypeDefaultDescription
modestringsearchsearch (site-wide search) or topic (full topic)
keywordsarray—Search keywords (Thai/English/brand names). Required for search mode
topicIdsarray—Topic IDs (numbers). Used by topic mode
topicUrlsarray—Full topic URLs; ID extracted automatically
bulkInputstring—One per line; keywords in search, IDs/URLs in topic
maxItemsinteger50search: topics per keyword; topic: comments per topic (main post always returned). Max 500
dateFromstring—Applies to search; relative 3d/12h/2w or absolute MM/DD/YY
aiLabelsbooleanfalseTurn 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"
aiTopicstring—Brand or topic to track, used for ai_relevance. Empty: search mode uses the search keyword; topic mode skips relevance
proxyConfigurationobjectApify datacenterOn 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 in aiTopic; in search mode, leaving it empty uses the search keyword, while in topic mode relevance is not asked and ai_relevance is 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 = failed and is not billed.
  • Thresholds are yours to change: ai_sentiment_label uses default cut-offs (<= -1.25 negative, >= +0.75 positive); you can re-bucket ai_sentiment yourself. We suggest treating ai_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-label event), 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

  • search is 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 use dateFrom to keep new topics for continuous monitoring.
  • Comment pagination in topic mode: Pantip shows 100 comments per page; the Actor auto-paginates up to maxItems. A single hot topic can have thousands of comments — use maxItems to control cost.
  • Sticker/image-only comments have content = null; the image URLs are in content_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 — topic mode returns the main post and all comments (including nested replies), one row each.
  • Can I monitor only certain keywords? Yes — use search mode with keywords, plus dateFrom for the most economical scheduled monitoring.
  • Output format? Export via the Apify Dataset as JSON/CSV/Excel/HTML/API.

Hands-on guides and free tools built on this actor, at AI Social API:

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.