# Xiaohongshu Pugongying Creator Core Metrics API

> Get 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.

Source: https://www.sandbase.ai/model/xiaohongshu/pgy-v2/data-core-data
API reference: https://www.sandbase.ai/model/xiaohongshu/pgy-v2/data-core-data/docs

## Facts

- Provider: Xiaohongshu
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data`
- Price: $0.03 per call
- Capabilities: api, xiaohongshu, social media
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `userId` | string | yes |  |
| `business` | string | no | DAILY_NOTE, COOPERATE_NOTE |
| `noteType` | string | no | PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO |
| `dateType` | string | no | DAY_30, DAY_90 |
| `advertiseSwitch` | string | no | ALL, ORGANIC_ONLY |

## FAQ

### How do I use the Xiaohongshu Pugongying Creator Core Metrics API?

Send a POST request to https://api.sandbase.ai/v1/api/xiaohongshu/pgy-v2/data-core-data with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Xiaohongshu Pugongying Creator Core Metrics API cost?

$0.03 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Xiaohongshu Pugongying Creator Core Metrics API accept?

Required: userId (string). Optional: business (one of DAILY_NOTE, COOPERATE_NOTE), noteType (one of PHOTO_TEXT_AND_VIDEO, PHOTO_TEXT, VIDEO), dateType (one of DAY_30, DAY_90) and advertiseSwitch (one of ALL, ORGANIC_ONLY). The Parameters table and the Playground on this page list every field.

### What does the Xiaohongshu Pugongying Creator Core Metrics API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Xiaohongshu developer account or API key?

No. Xiaohongshu Pugongying Creator Core Metrics runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Xiaohongshu API access separately.

## README

### Xiaohongshu Pugongying Creator Core Metrics API

Get 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.

The response is the platform's original data structure.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "xiaohongshu/pgy-v2/data-core-data", "userId": "5a73c5fa4eacab4c4ccc9778"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `userId` | string | Yes | KOL's user ID. |
| `business` | string | No | Business type. |
| `noteType` | string | No | Type of note. |
| `dateType` | string | No | Time range for data. |
| `advertiseSwitch` | string | No | Advertisement filter. |

#### Pricing

Flat price per call. Failed calls and empty results are not charged.
