biz_typeintegerrequired
Leaderboard
Possible values: 1, 2, 3, 4, 5, 6, 7, 8
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.