userIdstringwymagane
KOL's user ID.
https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-dataGet 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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Returns core performance metrics for one Xiaohongshu Pugongying creator: a daily series and a summary row. It needs the creator's userId and accepts optional filters for business type, note type, date range, and ad scope.
cpm and cpe under the same filters before choosing who to book.imp, read, and engage to spot spikes or drops over 30 or 90 days.advertiseSwitch to ORGANIC_ONLY and comparing it with the ALL result.business between COOPERATE_NOTE and DAILY_NOTE.curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId": "5a73c5fa4eacab4c4ccc9778"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
userId | string | Yes | KOL's user ID. |
advertiseSwitch | string | No | Advertisement filter. |
business | string | No | Business type. |
dateType | string | No | Time range for data. |
noteType | string | No | Type of note. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"dailyData": [
{
"cpe": 0.45091447660934664,
"cpm": 14.582954416499165,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-10-04",
"engage": 332868,
"imp": 10292496,
"read": 1783903,
"thirdUserNum": 0
}
],
"sumData": {
"cpe": 0.5016533982432853,
"cpm": 20.009503630677656,
"cpuv": 0,
"cpv": 0,
"dateKey": "2026-11-02",
"engage": 299081,
"imp": 7498187,
"read": 1557364,
"thirdUserNum": 0
}
}
| Field | Meaning |
|---|---|
dailyData[] | One row per day in the selected range. Use it to build a time series. |
dailyData[].dateKey | Date of the row in YYYY-MM-DD format. |
dailyData[].imp / sumData.imp | Impressions for that day, and for the summary row. |
dailyData[].read / sumData.read | Reads for that day, and for the summary row. |
dailyData[].engage / sumData.engage | Engagement count for that day, and for the summary row. |
dailyData[].cpe / sumData.cpe | Cost per engagement. Compare it across creators under the same filters. |
dailyData[].cpm / sumData.cpm | Cost per thousand impressions. Compare it across creators under the same filters. |
dailyData[].cpv / sumData.cpv | Cost per view. It is 0 in the sample response. |
dailyData[].cpuv / sumData.cpuv | Cost per unique viewer. It is 0 in the sample response. |
sumData | Summary row for the whole selected scope. It uses the same metric keys as dailyData[]. |
userId is the creator's Pugongying ID, a 24-character hex string such as 5a73c5fa4eacab4c4ccc9778. Find it with Xiaohongshu Pugongying Creator Search.business DAILY_NOTE, noteType PHOTO_TEXT_AND_VIDEO, dateType DAY_30, and advertiseSwitch ALL.$0.021429 per successful call. Failed calls are not charged.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"userId": "5a73c5fa4eacab4c4ccc9778",
"business": "DAILY_NOTE",
"dateType": "DAY_30",
"noteType": "PHOTO_TEXT_AND_VIDEO",
"advertiseSwitch": "ALL"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
userIdstringwymaganeKOL's user ID.
businessstringBusiness type.
Domyślnie: "DAILY_NOTE"
Możliwe wartości: DAILY_NOTE, COOPERATE_NOTE
noteTypestringType of note.
Domyślnie: "PHOTO_TEXT_AND_VIDEO"
Możliwe wartości: PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO
dateTypestringTime range for data.
Domyślnie: "DAY_30"
Możliwe wartości: DAY_30, DAY_90
advertiseSwitchstringAdvertisement filter.
Domyślnie: "ALL"
Możliwe wartości: ALL, ORGANIC_ONLY
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Xiaohongshu | $0.021429 za wywołanie | JSON |
Xiaohongshu | $0.021429 za wywołanie | JSON |
Xiaohongshu | $0.071429 za wywołanie | JSON |
Xiaohongshu | $0.021429 za wywołanie | JSON |
Xiaohongshu | $0.021429 za wywołanie | JSON |
Xiaohongshu | $0.021429 za wywołanie | JSON |
Przewodniki:Best Xiaohongshu API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
$0.021429 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: userId (string). Opcjonalne: business (jedna z opcji: DAILY_NOTE, COOPERATE_NOTE), noteType (jedna z opcji: PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO), dateType (jedna z opcji: DAY_30, DAY_90) i advertiseSwitch (jedna z opcji: ALL, ORGANIC_ONLY). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Xiaohongshu Pugongying Creator Core Metrics działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Xiaohongshu.