# Pantip Scraper: Topics, Comments, Tags & Profiles (`scrapingmonkey/pantip-scraper`) Actor

Search Pantip topics, browse forum and tag feeds, collect profile topics and extract public profiles or topic comments. Export discussion titles, excerpts, authors, tags, dates and reactions for Thai consumer and community research.

- **URL**: https://apify.com/scrapingmonkey/pantip-scraper.md
- **Developed by:** [ScrapingMonkey](https://apify.com/scrapingmonkey) (community)
- **Features:** Limited permissions
- **Stats:** 7 total users, 5 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**Pantip Scraper** helps you research Thai discussions across Pantip forums, tags and member profiles. Search topics, follow relevant feeds and collect comments with author context and reactions to understand consumer questions, community interests and responses to products or services.

Find discussions around a market or question, compare activity across forums and tags, and review comments in context. Build a focused Thai consumer research dataset with original topic links.

| At a glance | Details |
|---|---|
| 📥 Input | Search fields or links to the selected items; see the examples below |
| 📤 Output | One row per topic, profile or comment, depending on the mode |
| 📄 Pagination | Automatic up to `maxResults` for each input, when more results are available |
| 🔐 Login required | No |
| ⚡ Processing | Multiple inputs per run with automatic retries for temporary errors |
| 💾 Delivery | One complete Apify dataset table; CSV, JSON and Excel export |

### What the Pantip scraper collects 📱

Search Pantip topics, browse forum and tag feeds, collect profile topics and extract public profiles or topic comments. Export discussion titles, excerpts, authors, tags, dates and reactions for Thai consumer and community research.

| Collection | What you receive |
|---|---|
| Pantip topic search scraper | Search public Pantip topics by keyword and collect titles, excerpts, authors and comment counts. |
| Pantip forum topics scraper | Browse public topics in a Pantip forum and collect titles, authors, tags and engagement counts. |
| Pantip user profiles scraper | Public Pantip profile descriptions, registration labels, website links and follower counts. |
| Pantip profile topics scraper | Topics published by a Pantip profile, with titles, tags, authors and public engagement counts. |
| Pantip tag topics scraper | Topics from a Pantip tag feed, with authors, thumbnails, related tags and engagement counts. |
| Pantip topic comments scraper | Public Pantip topic comments and optional replies, with author details, dates, reaction counts and parent IDs. |

Data can include:

- Topics: Titles, excerpts, source links and topic identifiers.
- Forums and tags: Forum context, tags and related topic labels.
- Authors: Visible author identities and public profile information.
- Comments: Comment text, dates, parent references and available replies.
- Engagement: Comment counts, reactions and other visible topic figures.
- Profiles: Descriptions, registration labels, website links and follower counts.

### How to scrape Pantip 🚀

1. Choose **Topic Search** in **What to collect**, or select another collection mode.
2. Fill in the search fields, or paste links to the items you want to collect.
3. Set the maximum results and any optional filters.
4. Start the Actor and review the collected rows.
5. Export the dataset or connect it to your application.

#### Pantip topic search scraper — input example

```json
{
  "mode": "topic_search",
  "searchQueries": [
    "python"
  ],
  "maxResults": 10
}
```

`maxResults: 10` means up to 10 results for **each input**. It does not guarantee that the website has that many matches. You can set the limit as low as 1.

#### Pantip forum topics scraper — input example

```json
{
  "mode": "forum_topics",
  "forumUrls": [
    "https://pantip.com/forum/siliconvalley"
  ],
  "maxResults": 10
}
```

#### Pantip user profiles scraper — input example

```json
{
  "mode": "profile",
  "profileUrls": [
    "https://pantip.com/profile/5579788"
  ],
  "maxResults": 10
}
```

#### Pantip profile topics scraper — input example

```json
{
  "mode": "profile_topics",
  "profileUrls": [
    "https://pantip.com/profile/5579788"
  ],
  "maxResults": 10
}
```

#### Pantip tag topics scraper — input example

```json
{
  "mode": "tag_topics",
  "tagUrls": [
    "https://pantip.com/tag/เทคโนโลยี"
  ],
  "maxResults": 10
}
```

#### Pantip topic comments scraper — input example

```json
{
  "mode": "topic_comments",
  "postUrls": [
    "https://pantip.com/topic/35939210"
  ],
  "maxResults": 10,
  "includeReplies": false
}
```

### Pantip data fields and complete output 📦

| Field group | Included data |
|---|---|
| Topics | Titles, excerpts, source links and topic identifiers. |
| Forums and tags | Forum context, tags and related topic labels. |
| Authors | Visible author identities and public profile information. |
| Comments | Comment text, dates, parent references and available replies. |
| Engagement | Comment counts, reactions and other visible topic figures. |
| Profiles | Descriptions, registration labels, website links and follower counts. |

Each collected item is a separate row. `input` identifies the submitted value and `result_type` identifies the selected mode. All returned fields appear in one table; columns that do not apply to a mode can be empty.

A complete JSON result is shown for every collection mode below, in the same order as the input examples. Each example includes every field for its mode; text and lists are not shortened. Values are representative and can change.

#### Pantip topic search scraper — complete JSON result

```json
{
  "result_type": "topic_search",
  "input": "python",
  "status": "success",
  "id": "44047565",
  "url": "https://pantip.com/topic/44047565",
  "title": "อยากสอบถามวิธีเรียน Python จากพื้นฐานครับ",
  "created_at": "2026-04-09T01:17:15Z",
  "author.id": "9312093",
  "author.name": "สมาชิกหมายเลข 9312093",
  "author.url": "https://pantip.com/profile/9312093",
  "author.avatar_url": null,
  "comments_count": 2,
  "thumbnail_url": null,
  "excerpt": "สวัสดีครับ ผมอยากเริ่มต้นเรียน Python มีแหล่งเรียนรู้ฟรีแนะนำไหมครับ ขอบคุณครับ"
}
```

#### Pantip forum topics scraper — complete JSON result

```json
{
  "result_type": "forum_topics",
  "input": "siliconvalley",
  "status": "success",
  "id": "44233795",
  "url": "https://pantip.com/topic/44233795",
  "title": "เน็ตAIS ปทุมธานี บางกะดี สัญญาณไม่ดีหรอทำไมเน็ตช้ามาก",
  "created_at": "2026-09-20T10:06:49Z",
  "author.id": "6486783",
  "author.name": "สมาชิกหมายเลข 6486783",
  "author.url": "https://pantip.com/profile/6486783",
  "author.avatar_url": "https://ptcdn.info/images/avatar_member_default.png",
  "comments_count": 2,
  "thumbnail_url": null,
  "topic_type": 3,
  "source_status": null,
  "votes_count": 0,
  "views_count": 0,
  "tags.name": [
    "5G",
    "4G",
    "เครือข่ายอินเทอร์เน็ต",
    "AIS",
    "อินเทอร์เน็ต"
  ],
  "tags.url": [
    "https://pantip.com/tag/5G",
    "https://pantip.com/tag/4G",
    "https://pantip.com/tag/เครือข่ายอินเทอร์เน็ต",
    "https://pantip.com/tag/AIS",
    "https://pantip.com/tag/อินเทอร์เน็ต"
  ]
}
```

#### Pantip user profiles scraper — complete JSON result

```json
{
  "result_type": "profile",
  "input": "5579788",
  "status": "success",
  "id": "5579788",
  "url": "https://pantip.com/profile/5579788",
  "name": "JobThai Tips",
  "avatar_url": "https://p.ptcdn.info/172/012/000/5579788_15783921237582_o.png",
  "registered_text": "ตุลาคม 2562",
  "introduction": "JobThai Tips แบ่งปันเรื่องราวเกี่ยวกับการทำงานที่คนทำงานอยากรู้ เพื่อให้ชีวิตคนทำงานให้มีความสุขมากยิ่งขึ้น \nติดตามบทความเกี่ยวกับการทำงานได้ที่ \nhttps://blog.jobthai.com",
  "user_type": "organization",
  "user_type_title": "ผู้เชี่ยวชาญแบบองค์กร บริษัท ทิงค์เน็ต จำกัด",
  "expert_title": "",
  "followers_count": 7,
  "following_count": 0,
  "websites.title": [
    "",
    ""
  ],
  "websites.url": [
    "https://www.jobthai.com",
    "https://blog.jobthai.com"
  ]
}
```

#### Pantip profile topics scraper — complete JSON result

```json
{
  "result_type": "profile_topics",
  "input": "5579788",
  "status": "success",
  "id": "43691035",
  "url": "https://pantip.com/topic/43691035",
  "title": "ชอบเต้น อยากเป็น Artist Choreographer ให้ศิลปินต้องทำยังไงคะ",
  "created_at": "2025-08-18T09:36:16.128Z",
  "author.id": "5579788",
  "author.name": "JobThai Tips",
  "author.url": "https://pantip.com/profile/5579788",
  "author.avatar_url": "https://p.ptcdn.info/172/012/000/5579788_15783921237582_o.png",
  "comments_count": 0,
  "thumbnail_url": "https://f.ptcdn.info/935/088/000/megx1mf6jsinUJ5nTp3-s.jpg",
  "topic_type": 1,
  "source_status": 1,
  "votes_count": 0,
  "views_count": 1014,
  "tags.name": [
    "นักออกแบบท่าเต้น",
    "การเต้น",
    "ศิลปิน",
    "มนุษย์เงินเดือน"
  ],
  "tags.url": [
    "https://pantip.com/tag/นักออกแบบท่าเต้น",
    "https://pantip.com/tag/การเต้น",
    "https://pantip.com/tag/ศิลปิน",
    "https://pantip.com/tag/มนุษย์เงินเดือน"
  ]
}
```

#### Pantip tag topics scraper — complete JSON result

```json
{
  "result_type": "tag_topics",
  "input": "เทคโนโลยี",
  "status": "success",
  "id": "44233584",
  "url": "https://pantip.com/topic/44233584",
  "title": "เทคโนโลยีการต่อหัวเข้ากับร่างใหม่",
  "created_at": "2026-09-20T07:10:01Z",
  "author.id": "996424",
  "author.name": "สมาชิกหมายเลข 996424",
  "author.url": "https://pantip.com/profile/996424",
  "author.avatar_url": "https://p.ptcdn.info/610/014/000/996424_16658536497691_o.png",
  "comments_count": 2,
  "thumbnail_url": null,
  "topic_type": 3,
  "source_status": null,
  "votes_count": 0,
  "views_count": 0,
  "tags.name": [
    "นักวิทยาศาสตร์",
    "เคมี",
    "วิทยาศาสตร์",
    "เทคโนโลยี",
    "ชีววิทยา"
  ],
  "tags.url": [
    "https://pantip.com/tag/นักวิทยาศาสตร์",
    "https://pantip.com/tag/เคมี",
    "https://pantip.com/tag/วิทยาศาสตร์",
    "https://pantip.com/tag/เทคโนโลยี",
    "https://pantip.com/tag/ชีววิทยา"
  ]
}
```

#### Pantip topic comments scraper — complete JSON result

```json
{
  "result_type": "topic_comments",
  "input": "https://pantip.com/topic/35939210",
  "status": "success",
  "id": "comment:65890211",
  "url": "https://pantip.com/topic/35939210/comment1",
  "created_at": "2016-12-22T15:38:11Z",
  "author.id": "2928435",
  "author.name": "สมาชิกหมายเลข 2928435",
  "author.url": "https://pantip.com/profile/2928435",
  "author.avatar_url": "http://p.ptcdn.info/664/005/000/2928435_3945510411_FB-IMG-1439398337626_o.jpg",
  "source_status": 1,
  "entity_type": "comment",
  "topic_id": "35939210",
  "comment_id": "65890211",
  "reply_id": null,
  "parent_comment_id": null,
  "comment_no": 1,
  "reply_no": null,
  "content_html": "มาปูเสื่อรอค่ะ<br />\n<br />\n<img class=\"img-in-emotion\" title=\"เพี้ยนปูเสื่อรอ\" alt=\"เพี้ยนปูเสื่อรอ\" src=\"https://ptcdn.info/emoticons/pien/pien020.png\"/>",
  "text": "มาปูเสื่อรอค่ะ",
  "date_text": "12/22/2016 22:38:11",
  "reply_count": 2,
  "points": 0,
  "reactions.total": 0,
  "reactions.like": 0,
  "reactions.laugh": 0,
  "reactions.love": 0,
  "reactions.impress": 0,
  "reactions.scary": 0,
  "reactions.surprised": 0
}
```

Images, tags and other lists stay with their parent result instead of creating extra rows. Invalid or unavailable inputs, inputs with no results, and requests that fail after all retries produce a row with `status: failed`. At most one failed row is saved per input; it includes `error_code` and `error_message` explaining the outcome. A normal end of pagination after collected results does not add a failed row.

### Input requirements and collection settings ⚙️

| Setting | What to enter |
|---|---|
| **What to collect** (`mode`) | Choose the information to collect. |
| **Maximum results per search or link** (`maxResults`) | Collect up to this many results for each search or link. Minimum: 1. |
| **Search keywords** (`searchQueries`) | Enter one search phrase per line. For Topic Search. |
| **Forum links** (`forumUrls`) | Paste one link per line. Example: https://pantip.com/forum/siliconvalley For Forum Topics. |
| **Profile links** (`profileUrls`) | Paste one link per line. Example: https://pantip.com/profile/5579788 For Profile, Profile Topics. |
| **Tag page links** (`tagUrls`) | Paste one link per line. Example: https://pantip.com/tag/เทคโนโลยี For Tag Topics. |
| **Post links** (`postUrls`) | Paste one link per line. Example: https://pantip.com/topic/35939210 For Topic Comments. |
| **Include replies** (`includeReplies`) | Also collect replies to comments. For Topic Comments. |

| Collection mode | Fields to use |
|---|---|
| Forum Topics | **Forum links** |
| Profile | **Profile links** |
| Profile Topics | **Profile links** |
| Tag Topics | **Tag page links** |
| Topic Comments | **Post links**, **Include replies** |
| Topic Search | **Search keywords** |

The result limit applies separately to each search or supplied link. Collection ends earlier when no more matching results are available.

### Pantip scraping use cases 🎯

#### Thai consumer research

Find discussions about products, services and purchasing decisions.

#### Travel topic monitoring

Review relevant forums and tags for destination questions and experiences.

#### Brand feedback

Collect comments under selected topics to analyze reactions and concerns.

#### Community trend reports

Compare topic activity across chosen interest feeds.

#### Contributor research

Review public profiles and topics from relevant community members.

### Pricing and saved-result behavior 💰

See the Actor's **Pricing** tab for the active pricing model and current rate. Store settings may change, so this README does not claim a fixed cost.

Under dataset-item pricing:

- Each collected item saved in the dataset is one result.
- Images, tags and other values attached to that item do not create additional rows.
- Automatic retry attempts do not create extra dataset rows.
- A saved `failed` row is also one billable dataset item, including invalid inputs, unavailable items, no results, or exhausted retries. At most one failed row is saved per input, including when some results were already collected.
- `maxResults` caps all saved rows for each input, including its failed row. Repeated copies of the same input are processed once. More inputs or a higher limit can produce more saved results.

### Pantip scraper API and integrations 🔌

Replace `$ACTOR_ID` with the ID shown in the Actor API tab and `$APIFY_TOKEN` with your token.

```bash
curl -X POST "https://api.apify.com/v2/acts/$ACTOR_ID/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"topic_search","searchQueries":["python"],"maxResults":10}'
```

Use schedules for recurring collection, webhooks for completion notifications, and Apify integrations for Google Sheets, Make, Zapier, cloud storage, a CRM or your own application.

### Reliability, retries, and public-data limits ⚠️

Temporary connection errors, timeouts and access restrictions are retried automatically, up to five attempts. Invalid inputs save a failed row without an HTTP request; confirmed unavailable items save a failed row without unnecessary retries. Exhausted retries also save a failed row. Results already collected remain available if a later request fails, and normal pagination completion adds no error row. Collection also stops after two consecutive fully processed pages add no new results, even if the website provides another cursor. Required detail lookups are completed before checking a page; new results reset the counter, and independent reply branches are checked separately. Failures while initializing the Actor, saving data or scheduling requests stop the run instead of being reported as a failed website result.

Topic-list modes provide the available topic cards and excerpts; they are not a full topic-body extraction mode.

Pantip controls which information is publicly available. Removed, private or restricted items may be unavailable, and optional values can be null or empty. A run can still fail if the results cannot be saved.

### Frequently asked questions ❓

#### Does it require an account on Pantip?

No. You do not need to provide an account, password or login cookies. Only publicly available information is collected.

#### How does maxResults work?

It limits the number of saved results separately for every input. The minimum is 1. With maxResults set to 10, each input returns at most 10 available results. A detail lookup normally returns one record per input.

#### Can I collect comments and replies?

Topic Comments collects public comments and supports the available reply option.

#### Can I collect a member’s topics?

Yes. Profile Topics collects the topics published by a selected public profile.

#### Why are some fields empty?

The website may not publish that value, or the field may belong to a different collection mode. Missing values remain null or empty instead of being guessed.

#### Can I export the results to a spreadsheet?

Yes. Download CSV, Excel or JSON from the Apify dataset. All returned fields are included in the same results table.

### Support and responsible use 🛟

For a reproducible issue, share the run ID, selected mode, result limit and a safe public example through the support channel. Never disclose access tokens, passwords or proxy credentials.

Use public Pantip information lawfully and responsibly. Follow applicable privacy, copyright, data-protection, contractual and platform requirements when storing, analyzing or redistributing results.

# Actor input Schema

## `mode` (type: `string`):

Choose the information to collect.

## `maxResults` (type: `integer`):

Collect up to this many results for each search or link. Minimum: 1.

## `searchQueries` (type: `array`):

Enter one search phrase per line. For Topic Search.

## `forumUrls` (type: `array`):

Paste one link per line. Example: https://pantip.com/forum/siliconvalley For Forum Topics.

## `profileUrls` (type: `array`):

Paste one link per line. Example: https://pantip.com/profile/5579788 For Profile, Profile Topics.

## `tagUrls` (type: `array`):

Paste one link per line. Example: https://pantip.com/tag/เทคโนโลยี For Tag Topics.

## `postUrls` (type: `array`):

Paste one link per line. Example: https://pantip.com/topic/35939210 For Topic Comments.

## `includeReplies` (type: `boolean`):

Also collect replies to comments. For Topic Comments.

## Actor input object example

```json
{
  "mode": "topic_search",
  "maxResults": 10,
  "searchQueries": [
    "python"
  ],
  "forumUrls": [
    "https://pantip.com/forum/siliconvalley"
  ],
  "profileUrls": [
    "https://pantip.com/profile/5579788"
  ],
  "tagUrls": [
    "https://pantip.com/tag/เทคโนโลยี"
  ],
  "postUrls": [
    "https://pantip.com/topic/35939210"
  ],
  "includeReplies": false
}
```

# Actor output Schema

## `results` (type: `string`):

Collected entities and failed input outcomes, with all available fields and error explanations in one dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "topic_search",
    "maxResults": 10,
    "searchQueries": [
        "python"
    ],
    "forumUrls": [
        "https://pantip.com/forum/siliconvalley"
    ],
    "profileUrls": [
        "https://pantip.com/profile/5579788"
    ],
    "tagUrls": [
        "https://pantip.com/tag/เทคโนโลยี"
    ],
    "postUrls": [
        "https://pantip.com/topic/35939210"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapingmonkey/pantip-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "topic_search",
    "maxResults": 10,
    "searchQueries": ["python"],
    "forumUrls": ["https://pantip.com/forum/siliconvalley"],
    "profileUrls": ["https://pantip.com/profile/5579788"],
    "tagUrls": ["https://pantip.com/tag/เทคโนโลยี"],
    "postUrls": ["https://pantip.com/topic/35939210"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapingmonkey/pantip-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "topic_search",
  "maxResults": 10,
  "searchQueries": [
    "python"
  ],
  "forumUrls": [
    "https://pantip.com/forum/siliconvalley"
  ],
  "profileUrls": [
    "https://pantip.com/profile/5579788"
  ],
  "tagUrls": [
    "https://pantip.com/tag/เทคโนโลยี"
  ],
  "postUrls": [
    "https://pantip.com/topic/35939210"
  ]
}' |
apify call scrapingmonkey/pantip-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapingmonkey/pantip-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/SEIxxcxOdS8mCttH9/builds/dVKi2RtMukqP4oMql/openapi.json
