biz_typeintegerrequired
Leaderboard
Possible values: 1, 2, 3, 4, 5, 6, 7, 8
https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-squarePGY content square leaderboards on Xiaohongshu. Returns the platform data as structured JSON.
Your output will appear here
Complete the inputs, then click Run.
PGY content square leaderboards on Xiaohongshu. Returns the platform data as structured JSON.
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.
| 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 |
Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy/content-square" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"biz_type": 1,
"page_num": 1,
"page_size": 20,
"date_range": 7
}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
biz_typeintegerrequiredLeaderboard
Possible values: 1, 2, 3, 4, 5, 6, 7, 8
page_numintegerPage; each board has only 100 items
Default: 1
page_sizeintegerPage size, 1-34
Default: 34
search_wordstringKeyword, comma-separated for batch
order_bystringSort field, empty=board default
date_rangeinteger7/14/Date window in days
Default: 7
Possible values: 3, 7, 14, 30
sub_biz_typeintegerBoard 8 only
Possible values: 1, 2, 3
categorystringBoard 1 only
industrystring3/4/5/6/7/Industry, values differ per board
note_typeintegerContent type
Possible values: 1, 2
content_typeintegerContent source
Possible values: 1, 2, 3, 5, 6, 11, -1
themestring4/5/7/Theme
author_typeintegerBoard 4 only
Possible values: 1, 2
placementinteger3/5/7/Traffic placement
Possible values: 1, 2, 3
marketing_targetintegerBoard 3 only
Possible values: 3, 8
priceobjectCreator price, board 4 only
fansobjectCreator fans range, board 4 only
Saved example response for this API; no live request is made when viewing it.
No saved response has been published. Run the API in Playground to inspect its response.
Explore more
| API | Price | Response |
|---|---|---|
Xiaohongshu | $0.02 per call | JSON |
Xiaohongshu | $0.02 per call | JSON |
Xiaohongshu | $0.02 per call | JSON |
Xiaohongshu | $0.02 per call | JSON |
Xiaohongshu | $0.02 per call | JSON |
Xiaohongshu | $0.02 per call | JSON |
Questions
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.
$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
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.
A JSON response returned in the same HTTP request (synchronous).
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.