PTT Scraper & API – Taiwan Forum Posts and Push Comments avatar

PTT Scraper & API – Taiwan Forum Posts and Push Comments

Pricing

from $2.00 / 1,000 board posts

Go to Apify Store
PTT Scraper & API – Taiwan Forum Posts and Push Comments

PTT Scraper & API – Taiwan Forum Posts and Push Comments

PTT scraper and unofficial PTT API for ptt.cc, Taiwan's largest forum. No login or API key: scrape board listings and full posts with every push, boo and arrow comment, floor, author and time. Poster IPs are opt-in. Export JSON, CSV or Excel for Taiwan social listening.

Pricing

from $2.00 / 1,000 board posts

Rating

0.0

(0)

Developer

Chad

Chad

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

13 hours ago

Last modified

Features

Limited permissions

Share

A PTT scraper for ptt.cc, Taiwan's largest and best-known online forum (a BBS with a web mirror). PTT has no official API, so this Actor works as an unofficial PTT API: pull board listings, full posts and every push / boo / arrow comment, and export them as JSON, CSV or Excel. No login, API key or code needed.

Age-restricted (18+) boards such as Gossiping are supported; the age-consent cookie is sent for you (see Notes for your responsibility).

Built for social listening, brand monitoring, stock-sentiment research and academic work on Taiwanese public opinion.

Language note: PTT is written in Traditional Chinese, so post titles, content and comments come back in Traditional Chinese exactly as written. Field names, the schema and this documentation are English. Use Chinese keywords for the title filter (for example 心得 for "review/analysis" or 新聞 for "news"), and feed the text to a translation or LLM step if you need English.

What the PTT API returns

Board listing mode returns one row per post. These are real rows from a run on the Stock board (Taiwan's stock-market board):

[
{
"post_id": "M.1795792834.A.CFD",
"board": "Stock",
"title": "[心得] 波形1127",
"author": "rainbowcatch",
"push_count": 7,
"is_pinned": false,
"created_at": "11/27",
"posted_at": "2026-11-27T15:20:34.000Z",
"post_url": "https://www.ptt.cc/bbs/Stock/M.1795792834.A.CFD.html",
"source_mode": "board",
"source_query": "Stock",
"scraped_at": "2026-11-28T06:36:11.466Z"
},
{
"post_id": "M.1795694303.A.E34",
"board": "Stock",
"title": "[心得] 投資股票快20年,這二週最刺激",
"author": "ADshyang",
"push_count": 99,
"is_pinned": false,
"created_at": "11/26",
"posted_at": "2026-11-26T11:58:23.000Z",
"post_url": "https://www.ptt.cc/bbs/Stock/M.1795694303.A.E34.html",
"source_mode": "board",
"source_query": "Stock",
"scraped_at": "2026-11-28T06:36:11.886Z"
}
]

For the full text and every comment, use single post mode (post), shown below.

Three steps

  1. Pick a mode. board lists the newest posts of a board. post fetches one post with its full text and all comments.
  2. Fill the input. A board name such as Stock, or a full post URL.
  3. Run and export. Download JSON, CSV or Excel, or read the dataset through the Apify API.
{ "mode": "board", "boards": ["Stock"], "maxItems": 20 }

Pay per result: $0.002 per listing row, $0.008 per post, $0.003 per push comment (see Modes below).


Output fields

All field names are English snake_case. Missing values are null, never omitted. Text values stay in Traditional Chinese.

Board listing mode (board)

FieldTypeDescriptionAlways present?
post_idstring|nullPost ID, e.g. M.1795694303.A.E34Almost always (null for rare legacy formats)
boardstringBoard name, e.g. StockYes
titlestring|nullTitle including the category tag such as [心得] (review/analysis) or [新聞] (news)Yes (deleted posts are skipped)
authorstring|nullAuthor's PTT IDYes
push_countnumber|nullNet push score (pushes minus boos). PTT's 爆 ("exploded", 100 or more) is output as 100, XX as -100Usually (null when a post has no pushes)
is_pinnedbooleanPinned post (board rules and announcements kept at the bottom of the newest page)Yes
created_atstring|nullDate as shown on the listing, M/DD with no yearYes
posted_atstring|nullExact post time, ISO 8601 (UTC), derived from the timestamp inside the post IDAlmost always
post_urlstringFull post URLYes
source_modestring"board"Yes
source_querystringThe board nameYes
scraped_atstringScrape time, ISO 8601Yes

Single post mode (post): post row

FieldTypeDescriptionAlways present?
post_idstring|nullPost IDYes
boardstring|nullBoard nameYes
titlestring|nullTitleYes
authorstring|nullAuthor's PTT IDYes
contentstring|nullPost body (header and the site footer removed)Yes
categorystring|nullText inside the title's [...] tagOnly when the title has a tag
push_countnumber|nullpush_up minus push_downUsually
push_upnumber|nullNumber of pushes (推)Yes
push_downnumber|nullNumber of boos (噓)Yes
comment_countnumber|nullTotal push lines (pushes + boos + arrows)Yes
ipstring|nullPoster IP from the post footer. null by default; only filled when includeAuthorIp is trueOnly when opted in and the footer has one
created_atstring|nullPost time as PTT prints it, e.g. Fri Jul 3 21:57:03 2026Yes
post_urlstringFull post URLYes
source_modestring"post"Yes
source_querystringThe input URLYes
scraped_atstringScrape time, ISO 8601Yes

Single post mode (post): push comment rows

Every push line becomes its own row:

FieldTypeDescriptionAlways present?
comment_idstring{post_id}_{floor}Yes
post_idstring|nullParent post IDYes
boardstring|nullBoard nameYes
floornumberFloor, starting at 1Yes
push_type"推"|"噓"|"→"|nullPush (推, upvote), boo (噓, downvote) or arrow (→, neutral reply)Yes
authorstring|nullCommenter's PTT IDYes
contentstring|nullComment textYes
ipstring|nullCommenter IP. null by default; only filled when includeAuthorIp is true and the board shows IPsNull by default
created_atstring|nullComment time, MM/DD HH:mm (no year)Yes
scraped_atstringScrape time, ISO 8601Yes

Example post row and first two push rows, from a real post on the Stock board (body shortened):

[
{
"post_id": "M.1783087025.A.C75",
"board": "Stock",
"title": "[心得] 現在應該把台股部位轉到mag7",
"author": "darbylu",
"content": "我覺得費半今年大概要進入橫盤震盪整理了 …",
"category": "心得",
"push_count": 68,
"push_up": 77,
"push_down": 9,
"comment_count": 160,
"ip": null,
"created_at": "Fri Jul 3 21:57:03 2026",
"post_url": "https://www.ptt.cc/bbs/Stock/M.1783087025.A.C75.html",
"source_mode": "post",
"source_query": "https://www.ptt.cc/bbs/Stock/M.1783087025.A.C75.html",
"scraped_at": "2026-07-03T00:00:00.000Z"
},
{
"comment_id": "M.1783087025.A.C75_1",
"post_id": "M.1783087025.A.C75",
"board": "Stock",
"floor": 1,
"push_type": "推",
"author": "Gipmydanger",
"content": "高手",
"ip": null,
"created_at": "07/03 21:58",
"scraped_at": "2026-07-03T00:00:00.000Z"
},
{
"comment_id": "M.1783087025.A.C75_2",
"post_id": "M.1783087025.A.C75",
"board": "Stock",
"floor": 2,
"push_type": "推",
"author": "as3366700",
"content": "所以你單呢",
"ip": null,
"created_at": "07/03 21:59",
"scraped_at": "2026-07-03T00:00:00.000Z"
}
]

Modes

modeInput fieldsOutputBilling event
boardboards[] board namesNewest posts of each boardsearch-listing, $0.002 per row
postpostUrls[] full post URLsPost text plus all push commentsproduct-detail, $0.008 per post, plus review-item, $0.003 per push comment

Input

FieldTypeDescriptionDefault
mode"board" | "post"Mode (detected automatically if omitted)auto
boardsstring[]Board names for board mode. Case-sensitive; letters, digits, _ and - onlynone
postUrlsstring[]Full www.ptt.cc post URLs for post mode (other hosts are rejected)none
keywordsstring[]Optional title filter for board mode; a post is kept if its title contains any keyword. Titles are Traditional Chinese, so use Chinese keywordsnone
dateFromstringOptional, board mode. Only posts after this time: 3d, 12h, 2w (relative) or MM/DD/YY (absolute). Judged from the timestamp in the post ID, accurate to the second. Paging stops once a whole page is older, which keeps scheduled runs cheapnone
dateTostringOptional, board mode. Only posts before this time, same formatsnone
bulkInputstringPaste one board name or post URL per line; merged into the matching fieldnone
maxItemsintegerMaximum posts per board in board mode (up to 2000)50
includeAuthorIpbooleanOutput poster and commenter IPs in the ip fields. Off by default. IPs are personal data, so you are responsible for lawful use if you turn it on. When off, ip is null and IPs embedded in push timestamps are removedfalse
proxyConfigurationobjectProxy settings. Usually not needed, PTT accepts direct connectionsno proxy

Input examples

Example 1: newest 20 posts of the Stock board

{
"mode": "board",
"boards": ["Stock"],
"maxItems": 20
}

Example 2: several boards with a title keyword filter

{
"mode": "board",
"boards": ["Stock", "Tech_Job", "Baseball"],
"keywords": ["心得", "新聞"],
"maxItems": 50
}

Example 3: an 18+ board (you are responsible for the age requirement)

{
"mode": "board",
"boards": ["Gossiping"],
"keywords": ["問卦"],
"maxItems": 10
}

Example 4: one post with all of its comments

{
"mode": "post",
"postUrls": [
"https://www.ptt.cc/bbs/Stock/M.1783087025.A.C75.html"
]
}

Example 5: paste a list of boards

{
"mode": "board",
"bulkInput": "Stock\nTech_Job\nHatePolitics",
"maxItems": 30
}

Example 6: daily keyword monitor

Run this on an Apify Schedule once a day. dateFrom makes every run collect only the last day's posts, so cost stays flat as history grows.

{
"mode": "board",
"boards": ["Stock"],
"keywords": ["台積電"],
"dateFrom": "1d",
"maxItems": 500
}

(台積電 is TSMC.)


Notes

  1. 18+ boards and your responsibility. PTT marks some boards (for example Gossiping and sex) as 18+ and asks that their content not be passed to anyone under 18. This Actor sends the age-consent cookie for you, which is only a technical step: it does not verify anyone's age. You are responsible for making sure you and the people who use the data meet the age requirement and applicable law.
  2. Poster IP addresses are opt-in. PTT shows a poster's IP on posts and on some boards' pushes. By default this Actor outputs ip: null everywhere and removes any IP embedded in push timestamps. Set includeAuthorIp to true to get them. IP addresses are personal data under Taiwan's Personal Data Protection Act, so collection and use after you opt in is your responsibility.
  3. Paging. Board mode walks from the newest page to older ones and stops at maxItems, after 5 consecutive pages with nothing new, or, when dateFrom is set, once a whole page of non-pinned posts is older than dateFrom.
  4. Board names are case-sensitive. Use the real name (Stock, not stock).
  5. Deleted posts are skipped in board listings.
  6. push_count special values. 爆 is output as 100, XX as -100. For the exact count use post mode.
  7. Speed. At most 5 concurrent requests. PTT serves static pages, so runs are fast and rarely need a proxy.
  8. Input checks. postUrls accepts only www.ptt.cc (or ptt.cc) post URLs, and board names may contain only letters, digits, _ and -. Anything else is rejected with an explanation.
  9. Changelog (2026-11-28). Poster IPs are opt-in and off by default.

FAQ

Does PTT have an official API? No. PTT is a BBS whose web mirror at ptt.cc is public. This Actor reads those public pages and returns structured rows.

Is the data in English? No. Titles, post bodies and comments are in Traditional Chinese, as written by PTT users. Only field names and documentation are English. A common setup is to scrape here and translate or classify the text with an LLM in a later step.

Can I scrape Gossiping, the most famous PTT board? Yes. The age-consent cookie is sent automatically, no account needed. Age verification and responsible use are on you (see Notes 1).

Does the data include poster IP addresses? Not by default: ip is null. Set includeAuthorIp to true to output them, and take responsibility for personal-data compliance.

Why is push_count exactly 100 on some posts? PTT shows 爆 instead of a number once the net score reaches 100. Use post mode for the exact push and boo counts.

How far back can board mode go? As far as maxItems (up to 2000) allows, until 5 consecutive pages bring nothing new, or until dateFrom is reached.

Is there a limit on comments per post? No. All push lines are returned, one row each (billed as review-item).

Can I scrape private boards? No. Private boards need a login, which this Actor does not use.

What does dateFrom filter on? On posted_at, derived from the timestamp inside the post ID and accurate to the second. created_at is the M/DD text from the listing, with no year.


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 is intended for personal research, academic analysis and brand monitoring. Follow PTT's terms of service (ptt.cc) and applicable law, including Taiwan's Personal Data Protection Act. Do not scrape at abusive volume or resell the raw data. Age verification for 18+ boards and compliance when you enable IP output are the user's responsibility. If the site operator or a data subject asks for takedown or deletion, email hello@aisocialapi.com and we will comply and stop using the data. The author accepts no liability for damages arising from use of this tool.


PTT scraper, Gossiping scraper, PTT API, PTT API alternative, PTT crawler, Taiwan forum scraper, scrape PTT, PTT push comments, Taiwan social listening, Taiwan sentiment analysis, Taiwanese stock forum, Stock board PTT, Traditional Chinese social media data, forum monitoring