userIdstringobrigatório
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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
userIdstringobrigatórioKOL's user ID.
businessstringBusiness type.
Padrão: "DAILY_NOTE"
Valores possíveis: DAILY_NOTE, COOPERATE_NOTE
noteTypestringType of note.
Padrão: "PHOTO_TEXT_AND_VIDEO"
Valores possíveis: PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO
dateTypestringTime range for data.
Padrão: "DAY_30"
Valores possíveis: DAY_30, DAY_90
advertiseSwitchstringAdvertisement filter.
Padrão: "ALL"
Valores possíveis: ALL, ORGANIC_ONLY
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Xiaohongshu | $0.021429 por chamada | JSON |
Xiaohongshu | $0.021429 por chamada | JSON |
Xiaohongshu | $0.071429 por chamada | JSON |
Xiaohongshu | $0.021429 por chamada | JSON |
Xiaohongshu | $0.021429 por chamada | JSON |
Xiaohongshu | $0.021429 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.021429 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: userId (string). Opcionais: business (um de DAILY_NOTE, COOPERATE_NOTE), noteType (um de PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO), dateType (um de DAY_30, DAY_90) e advertiseSwitch (um de ALL, ORGANIC_ONLY). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Xiaohongshu Pugongying Creator Core Metrics funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Xiaohongshu separadamente.