userIdstringerforderlich
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.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
userIdstringerforderlichKOL's user ID.
businessstringBusiness type.
Standard: "DAILY_NOTE"
Mögliche Werte: DAILY_NOTE, COOPERATE_NOTE
noteTypestringType of note.
Standard: "PHOTO_TEXT_AND_VIDEO"
Mögliche Werte: PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO
dateTypestringTime range for data.
Standard: "DAY_30"
Mögliche Werte: DAY_30, DAY_90
advertiseSwitchstringAdvertisement filter.
Standard: "ALL"
Mögliche Werte: ALL, ORGANIC_ONLY
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Xiaohongshu | $0.021429 pro Aufruf | JSON |
Xiaohongshu | $0.021429 pro Aufruf | JSON |
Xiaohongshu | $0.071429 pro Aufruf | JSON |
Xiaohongshu | $0.021429 pro Aufruf | JSON |
Xiaohongshu | $0.021429 pro Aufruf | JSON |
Xiaohongshu | $0.021429 pro Aufruf | JSON |
Anleitungen:Best Xiaohongshu API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.021429 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: userId (string). Optional: business (eines von DAILY_NOTE, COOPERATE_NOTE), noteType (eines von PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO), dateType (eines von DAY_30, DAY_90) und advertiseSwitch (eines von ALL, ORGANIC_ONLY). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Xiaohongshu Pugongying Creator Core Metrics läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Xiaohongshu API beantragen.