userIdstringzorunlu
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.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
userIdstringzorunluKOL's user ID.
businessstringBusiness type.
Varsayılan: "DAILY_NOTE"
Olası değerler: DAILY_NOTE, COOPERATE_NOTE
noteTypestringType of note.
Varsayılan: "PHOTO_TEXT_AND_VIDEO"
Olası değerler: PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO
dateTypestringTime range for data.
Varsayılan: "DAY_30"
Olası değerler: DAY_30, DAY_90
advertiseSwitchstringAdvertisement filter.
Varsayılan: "ALL"
Olası değerler: ALL, ORGANIC_ONLY
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Xiaohongshu | $0.021429 çağrı başına | JSON |
Xiaohongshu | $0.021429 çağrı başına | JSON |
Xiaohongshu | $0.071429 çağrı başına | JSON |
Xiaohongshu | $0.021429 çağrı başına | JSON |
Xiaohongshu | $0.021429 çağrı başına | JSON |
Xiaohongshu | $0.021429 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.021429, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: userId (string). İsteğe bağlı: business (DAILY_NOTE, COOPERATE_NOTE arasından biri), noteType (PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO arasından biri), dateType (DAY_30, DAY_90 arasından biri) ve advertiseSwitch (ALL, ORGANIC_ONLY arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Xiaohongshu Pugongying Creator Core Metrics, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Xiaohongshu API erişimi için ayrıca başvuru yapmanız gerekmez.