# Xiaohongshu PGY content square leaderboards API

> PGY content square leaderboards on Xiaohongshu. Returns the platform data as structured JSON.

Source: https://www.sandbase.ai/apis/xiaohongshu/pgy/content-square
API reference: https://www.sandbase.ai/apis/xiaohongshu/pgy/content-square/docs

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-square`
- Price: $0.02 per call
- Capabilities: api, xiaohongshu
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-square` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `biz_type` | integer | yes | 1, 2, 3, 4, 5, 6, 7, 8 |
| `page_num` | integer | no |  |
| `page_size` | integer | no |  |
| `search_word` | string | no |  |
| `order_by` | string | no |  |
| `date_range` | integer | no | 3, 7, 14, 30 |
| `sub_biz_type` | integer | no | 1, 2, 3 |
| `category` | string | no |  |
| `industry` | string | no |  |
| `note_type` | integer | no | 1, 2 |
| `content_type` | integer | no | 1, 2, 3, 5, 6, 11, -1 |
| `theme` | string | no |  |
| `author_type` | integer | no | 1, 2 |
| `placement` | integer | no | 1, 2, 3 |
| `marketing_target` | integer | no | 3, 8 |
| `price` | object | no |  |
| `fans` | object | no |  |

## FAQ

### How do I use the Xiaohongshu PGY content square leaderboards API?

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-square with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Xiaohongshu PGY content square leaderboards API cost?

$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Xiaohongshu PGY content square leaderboards API accept?

Required: biz_type (one of 1, 2, 3, 4, 5, 6, 7, 8). Optional: page_num (integer), page_size (integer), search_word (string), order_by (string), date_range (one of 3, 7, 14, 30) and sub_biz_type (one of 1, 2, 3) and 10 more. The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu PGY content square leaderboards API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Xiaohongshu developer account or API key?

No. Xiaohongshu PGY content square leaderboards runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Xiaohongshu API access separately.

## README

### Xiaohongshu PGY content square leaderboards API

PGY content square leaderboards on Xiaohongshu. Returns the platform data as structured JSON.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-square" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"biz_type": 1, "page_num": 1, "page_size": 20, "date_range": 7}'
```

The result is returned in `outputs[0].data`.

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `biz_type` | integer | Yes | Leaderboard |
| `author_type` | integer | No | Board 4 only |
| `category` | string | No | Board 1 only |
| `content_type` | integer | No | Content source |
| `date_range` | integer | No | 7/14/Date window in days |
| `fans` | object | No | Creator fans range, board 4 only |
| `industry` | string | No | 3/4/5/6/7/Industry, values differ per board |
| `marketing_target` | integer | No | Board 3 only |
| `note_type` | integer | No | Content type |
| `order_by` | string | No | Sort field, empty=board default |
| `page_num` | integer | No | Page; each board has only 100 items |
| `page_size` | integer | No | Page size, 1-34 |
| `placement` | integer | No | 3/5/7/Traffic placement |
| `price` | object | No | Creator price, board 4 only |
| `search_word` | string | No | Keyword, comma-separated for batch |
| `sub_biz_type` | integer | No | Board 8 only |
| `theme` | string | No | 4/5/7/Theme |

#### Pricing

Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
