guba.eastmoney.com APIguba.eastmoney.com ↗
Access Eastmoney Guba stock discussion boards via API. Retrieve posts, comments, board metadata, and search results for any Chinese A-share stock code.
curl -X GET 'https://api.parse.bot/scraper/013b2deb-3991-4776-ac16-39cf8b0927f1/get_stock_board_posts?page=1&stock_code=600519' \ -H 'X-API-Key: $PARSE_API_KEY'
Retrieve a paginated list of posts from a specific stock board. Returns posts with titles, authors, read/reply counts, and timestamps. Some posts link to external sources and may not have a post_id.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination |
| stock_coderequired | string | Stock code including leading zeros (e.g., '600519' for Guizhou Moutai, '000001' for Ping An Bank) |
{
"type": "object",
"fields": {
"page": "string, the requested page number",
"posts": "array of post objects with post_id, title, url, author, read_count, reply_count, post_time",
"stock_code": "string, the requested stock code"
},
"sample": {
"data": {
"page": "1",
"posts": [
{
"url": "/news,600519,1704114732.html",
"title": "茅台集团总经理王莉已返回公司",
"author": "贵州茅台资讯",
"post_id": "1704114732",
"post_time": "05-07 03:30",
"read_count": "914",
"reply_count": "5"
}
],
"stock_code": "600519"
},
"status": "success"
}
}About the guba.eastmoney.com API
The Eastmoney Guba API provides 5 endpoints covering China's most active stock discussion community, guba.eastmoney.com. Use get_stock_board_posts to pull paginated post listings — including titles, authors, read counts, reply counts, and timestamps — for any A-share stock code. Additional endpoints cover full post content, comment data, board metadata, and keyword search across stocks and boards.
Stock Board Posts and Post Detail
get_stock_board_posts accepts a required stock_code parameter (e.g., 600519 for Guizhou Moutai) and an optional page integer. It returns an array of post objects, each containing post_id, title, url, author, read_count, reply_count, and post_time. Note that some posts link to external sources and will have a null post_id — these cannot be passed to downstream endpoints.
get_post_detail takes a post_id and stock_code and returns the full article text in the content field, alongside title, author, post_time (formatted as YYYY-MM-DD HH:MM:SS), and the canonical url. This endpoint is intended for posts that originate on Guba itself.
Comments and Board Metadata
get_post_comments accepts a post_id, an optional page for pagination, and an optional stock_code for context. The response includes a re boolean flag indicating whether results exist and a result array where each item carries security and star fields — reflecting stock security references tied to the discussion.
get_stock_board_info returns structured metadata for a stock's discussion board: the bar_info object includes fields such as ShortName, Category, Market, Type, CodeWithMarket, OuterCode, InnerCode, QCode, and Status. The response also surfaces bar_rank, popular_rank (which may be null), and stockbar_fans_count — the number of board followers.
Search
search_guba accepts a free-text query (stock name or code) and returns a result array of matching boards, each with ShortName, Url, OuterCode, HeadCharacter, and RelatedCode. This is useful for resolving a company name to its stock code before querying board-specific endpoints.
- Track retail investor sentiment for a specific A-share by monitoring
reply_countandread_counttrends fromget_stock_board_posts. - Build a Chinese stock news aggregator by fetching full post
contentviaget_post_detailfor high-engagement posts. - Identify the most-followed stock discussion boards using
stockbar_fans_countandpopular_rankfromget_stock_board_info. - Resolve a company name to its stock code and board URL using
search_gubabefore fetching board-specific data. - Monitor post volume and activity spikes around earnings dates by paginating through
get_stock_board_postswith thepageparameter. - Analyze stock security references in comments using the
securityfield returned byget_post_comments.
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does Eastmoney provide an official developer API for Guba data?+
Why do some posts in `get_stock_board_posts` have a null `post_id`?+
post_id. These entries still include title, url, author, read_count, reply_count, and post_time, but they cannot be used as input to get_post_detail or get_post_comments, which require a valid post_id.Does the API return historical post archives or only recent posts?+
page parameter. Deep historical archives beyond what the board's pagination exposes are not currently covered. You can fork the API on Parse and revise it to add an endpoint targeting a specific date range or archive path if the source exposes one.Does `get_post_comments` return full comment text?+
get_post_comments returns a result array with security and star fields per item, along with a re boolean. Full comment body text is not included in the current response shape. You can fork the API on Parse and revise it to add a dedicated comment-text endpoint if that data is accessible on the post page.What stock markets does the API cover — can it retrieve Hong Kong or US-listed stocks?+
stock_code parameter is designed around Chinese A-share codes (e.g., Shanghai and Shenzhen-listed stocks). The bar_info object includes a Market field that reflects the board's market classification. Coverage of Hong Kong (H-share) or US-listed Chinese companies is not explicitly guaranteed by the current endpoint set. You can fork the API on Parse and revise it to test additional market codes or add dedicated endpoints for other market segments.