# Guba Eastmoney — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.

**Category:** Finance & Markets | **Website:** [guba.eastmoney.com/](https://guba.eastmoney.com/) | **Docs:** [parse.bot/marketplace/a77d99a5-c281-4f53-98a2-519de5910bed/guba-eastmoney-com-api](https://parse.bot/marketplace/a77d99a5-c281-4f53-98a2-519de5910bed/guba-eastmoney-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_post_comments

Retrieve comment-related data for a specific post. Returns a result array with associated stock security references that are mentioned or relevant to the post.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `post_id` | string | Yes | Post ID from get_stock_board_posts results |
| `stock_code` | string | No | Stock code to provide context for the request |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/get_post_comments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","post_id":"<string>","stock_code":"<string>"}'
```

### get_post_detail

Retrieve the full content of a specific post including title, author, timestamp, and article text. Requires both a stock_code and a post_id obtained from get_stock_board_posts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `post_id` | string | Yes | Post ID from get_stock_board_posts results |
| `stock_code` | string | Yes | Stock code (e.g., '600519') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/get_post_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_id":"<string>","stock_code":"<string>"}'
```

### get_stock_board_info

Retrieve stock board metadata including short name, category, market, and related codes. Returns board-level information such as rank and follower count.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `stock_code` | string | Yes | Stock code (e.g., '600519') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/get_stock_board_info \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"stock_code":"<string>"}'
```

### get_stock_board_posts

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. Paginates by page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `stock_code` | string | Yes | Stock code including leading zeros (e.g., '600519' for Guizhou Moutai, '000001' for Ping An Bank) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/get_stock_board_posts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","stock_code":"<string>"}'
```

### search_guba

Search for stocks or boards by keyword. Returns matching stock codes, short names, and board URLs. Useful for discovering stock codes when only the name is known.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search keyword — stock name or code (e.g., '600519' or '贵州茅台') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-guba-eastmoney-com-api-a77d99a5/search_guba \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
