Creator Core Metrics
Retrieves Xiaohongshu Pugongying core data for a creator with business, note-type, date-range, and advertisement filters. Use it to compare creators within a selected analysis scope.
Parameters
| Name | Required | Type | Description | Example | Allowed values |
|---|---|---|---|---|---|
user_id |
Required | string | KOL's user ID. | 5f6f683f000000000101dd02 |
— |
business |
Optional | string | Business type. Available Values: - `DAILY_NOTE`: Daily notes - `COOPERATE_NOTE`: Cooperative notes | DAILY_NOTE |
DAILY_NOTECOOPERATE_NOTE |
note_type |
Optional | string | Type of note. Available Values: - `PHOTO_TEXT_AND_VIDEO`: Photo and Video - `PHOTO_TEXT`: Photo and Text - `VIDEO`: Video only | PHOTO_TEXT_AND_VIDEO |
PHOTO_TEXT_AND_VIDEOPHOTO_TEXTVIDEO |
date_type |
Optional | string | Time range for data. Available Values: - `DAY_30`: Last 30 days - `DAY_90`: Last 90 days | DAY_30 |
DAY_30DAY_90 |
advertise_switch |
Optional | string | Advertisement filter. Available Values: - `ALL`: All notes - `ORGANIC_ONLY`: Organic notes only | ALL |
ALLORGANIC_ONLY |
Code samples
curl -G "https://api.mofa-ai.com/v1/xiaohongshu_pgy/api_pgy_kol_data_core_data_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'user_id=5f6f683f000000000101dd02' \
--data-urlencode 'business=DAILY_NOTE' \
--data-urlencode 'note_type=PHOTO_TEXT_AND_VIDEO' \
--data-urlencode 'date_type=DAY_30' \
--data-urlencode 'advertise_switch=ALL'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/xiaohongshu_pgy/api_pgy_kol_data_core_data_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"user_id": "5f6f683f000000000101dd02",
"business": "DAILY_NOTE",
"note_type": "PHOTO_TEXT_AND_VIDEO",
"date_type": "DAY_30",
"advertise_switch": "ALL",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/xiaohongshu_pgy/api_pgy_kol_data_core_data_v1");
url.search = new URLSearchParams({
user_id: "5f6f683f000000000101dd02",
business: "DAILY_NOTE",
note_type: "PHOTO_TEXT_AND_VIDEO",
date_type: "DAY_30",
advertise_switch: "ALL",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
Example response
Captured 2026-11-07, took 1162 ms · Request parameters {"user_id": "5f6f683f000000000101dd02", "business": "DAILY_NOTE", "date_type": "DAY_30", "note_type": "PHOTO_TEXT_AND_VIDEO", "advertise_switch": "ALL"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "xiaohongshu_pgy.api_pgy_kol_data_core_data_v1",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"sumData": {
"cpe": 0,
"cpm": 0,
"cpv": 0.4944180205480129,
"imp": 195351,
"cpuv": 0,
"read": 101129,
"engage": 4271,
"dateKey": "2026-11-06",
"thirdUserNum": 0
},
"dailyData": [
{
"cpe": 0,
"cpm": 0,
"cpv": 0.23233714908377845,
"imp": 369081,
"cpuv": 0,
"read": 215204,
"engage": 11463,
"dateKey": "2026-10-09",
"thirdUserNum": 0
},
{
"cpe": 0,
"cpm": 0,
"cpv": 0.25171544072856517,
"imp": 359822,
"cpuv": 0,
"read": 198637,
"engage": 9566,
"dateKey": "2026-10-10",
"thirdUserNum": 0
},
"… +27"
]
},
"message": null,
"requestId": "2b61f20803544675bdf4fcae2d40ab8e",
"recordTime": "2026-11-08T07:59:09.723878384",
"requestParams": {
"body": null,
"query": {
"userId": "5f6f683f000000000101dd02",
"business": "DAILY_NOTE",
"dateType": "DAY_30",
"noteType": "PHOTO_TEXT_AND_VIDEO",
"advertiseSwitch": "ALL"
}
}
}
}