curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"biz_type": 1,
"page_num": 1,
"page_size": 34,
"search_word": "面膜",
"order_by": "premium_imp_num",
"date_range": 7,
"sub_biz_type": 3,
"category": "内容类目#美妆",
"industry": "母婴",
"note_type": 2,
"content_type": 1,
"theme": "开箱",
"author_type": 1,
"placement": 1,
"marketing_target": 3,
"price": {
"range": {
"min": 4999999,
"max": 4999999
}
},
"fans": {
"min": 4999999,
"max": 4999999
}
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square"
payload = {
"biz_type": 1,
"page_num": 1,
"page_size": 34,
"search_word": "面膜",
"order_by": "premium_imp_num",
"date_range": 7,
"sub_biz_type": 3,
"category": "内容类目#美妆",
"industry": "母婴",
"note_type": 2,
"content_type": 1,
"theme": "开箱",
"author_type": 1,
"placement": 1,
"marketing_target": 3,
"price": { "range": {
"min": 4999999,
"max": 4999999
} },
"fans": {
"min": 4999999,
"max": 4999999
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
biz_type: 1,
page_num: 1,
page_size: 34,
search_word: '面膜',
order_by: 'premium_imp_num',
date_range: 7,
sub_biz_type: 3,
category: '内容类目#美妆',
industry: '母婴',
note_type: 2,
content_type: 1,
theme: '开箱',
author_type: 1,
placement: 1,
marketing_target: 3,
price: {range: {min: 4999999, max: 4999999}},
fans: {min: 4999999, max: 4999999}
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'biz_type' => 1,
'page_num' => 1,
'page_size' => 34,
'search_word' => '面膜',
'order_by' => 'premium_imp_num',
'date_range' => 7,
'sub_biz_type' => 3,
'category' => '内容类目#美妆',
'industry' => '母婴',
'note_type' => 2,
'content_type' => 1,
'theme' => '开箱',
'author_type' => 1,
'placement' => 1,
'marketing_target' => 3,
'price' => [
'range' => [
'min' => 4999999,
'max' => 4999999
]
],
'fans' => [
'min' => 4999999,
'max' => 4999999
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square"
payload := strings.NewReader("{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}"
response = http.request(request)
puts response.read_bodyPGY content square leaderboards
PGY content square leaderboards
curl --request POST \
--url https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"biz_type": 1,
"page_num": 1,
"page_size": 34,
"search_word": "面膜",
"order_by": "premium_imp_num",
"date_range": 7,
"sub_biz_type": 3,
"category": "内容类目#美妆",
"industry": "母婴",
"note_type": 2,
"content_type": 1,
"theme": "开箱",
"author_type": 1,
"placement": 1,
"marketing_target": 3,
"price": {
"range": {
"min": 4999999,
"max": 4999999
}
},
"fans": {
"min": 4999999,
"max": 4999999
}
}
'import requests
url = "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square"
payload = {
"biz_type": 1,
"page_num": 1,
"page_size": 34,
"search_word": "面膜",
"order_by": "premium_imp_num",
"date_range": 7,
"sub_biz_type": 3,
"category": "内容类目#美妆",
"industry": "母婴",
"note_type": 2,
"content_type": 1,
"theme": "开箱",
"author_type": 1,
"placement": 1,
"marketing_target": 3,
"price": { "range": {
"min": 4999999,
"max": 4999999
} },
"fans": {
"min": 4999999,
"max": 4999999
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
biz_type: 1,
page_num: 1,
page_size: 34,
search_word: '面膜',
order_by: 'premium_imp_num',
date_range: 7,
sub_biz_type: 3,
category: '内容类目#美妆',
industry: '母婴',
note_type: 2,
content_type: 1,
theme: '开箱',
author_type: 1,
placement: 1,
marketing_target: 3,
price: {range: {min: 4999999, max: 4999999}},
fans: {min: 4999999, max: 4999999}
})
};
fetch('https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'biz_type' => 1,
'page_num' => 1,
'page_size' => 34,
'search_word' => '面膜',
'order_by' => 'premium_imp_num',
'date_range' => 7,
'sub_biz_type' => 3,
'category' => '内容类目#美妆',
'industry' => '母婴',
'note_type' => 2,
'content_type' => 1,
'theme' => '开箱',
'author_type' => 1,
'placement' => 1,
'marketing_target' => 3,
'price' => [
'range' => [
'min' => 4999999,
'max' => 4999999
]
],
'fans' => [
'min' => 4999999,
'max' => 4999999
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square"
payload := strings.NewReader("{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"biz_type\": 1,\n \"page_num\": 1,\n \"page_size\": 34,\n \"search_word\": \"面膜\",\n \"order_by\": \"premium_imp_num\",\n \"date_range\": 7,\n \"sub_biz_type\": 3,\n \"category\": \"内容类目#美妆\",\n \"industry\": \"母婴\",\n \"note_type\": 2,\n \"content_type\": 1,\n \"theme\": \"开箱\",\n \"author_type\": 1,\n \"placement\": 1,\n \"marketing_target\": 3,\n \"price\": {\n \"range\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n },\n \"fans\": {\n \"min\": 4999999,\n \"max\": 4999999\n }\n}"
response = http.request(request)
puts response.read_bodycode is 200.
Example
curl -X POST "https://api.aisa.one/apis/v1/tikhub/xiaohongshu/pgy/get_content_square" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{}' # see request schema below
Authorizations
AIsa API key. Get yours at https://aisa.one
Body
榜单 1=小红书热门 2=产品种草 3=电商推广 4=蒲公英合作 5=客资收集 6=电商热门 7=种草直达 8=应用推广/Leaderboard
1, 2, 3, 4, 5, 6, 7, 8 1
页码;每个榜固定只有 100 条/Page; each board has only 100 items
1 <= x <= 1001
每页数量,1-34(网页固定 34)/Page size, 1-34
1 <= x <= 3434
关键词,留空=看整榜;支持英文逗号分隔批量搜/Keyword, comma-separated for batch
100"面膜"
排序字段,留空=用该榜默认排序/Sort field, empty=board default
64"premium_imp_num"
统计窗口:近 3/7/14/30 日/Date window in days
3, 7, 14, 30 7
【仅榜 8】1=应用下载 2=小程序推广 3=应用唤起(默认)/Board 8 only
1, 2, 3 3
【仅榜 1】类目,格式「一级#二级」,如 "内容类目#美妆"/Board 1 only
64"内容类目#美妆"
【榜 2/3/4/5/6/7/8】所属行业名,取值集因榜而异/Industry, values differ per board
64"母婴"
内容类型 1=图文 2=视频/Content type
1, 2 2
内容来源 1=博主合作 2=明星合作 3=员工 5=买手 6=专业号 11=主理人 -1=用户/Content source
1, 2, 3, 5, 6, 11, -1 1
【榜 2/4/5/7/8】题材名/Theme
64"开箱"
【仅榜 4】1=蒲公英博主 2=明星/Board 4 only
1, 2 1
【榜 2/3/5/7/8】流量场域 1=发现 2=搜索 3=视频内流/Traffic placement
1, 2, 3 1
【仅榜 3】3=商品推广 8=直播推广/Board 3 only
3, 8 3
【仅榜 4】创作者报价/Creator price, board 4 only
Show child attributes
Show child attributes
【仅榜 4】创作者粉丝量区间/Creator fans range, board 4 only
Show child attributes
Show child attributes
Response
Successful response. 以实际调用为准 / Response structure varies; refer to the actual API response.