# Content performance sampling workflow

Content performance sampling workflow. Follow concrete contracts, examples and reviewable steps using Douyin, Xiaohongshu (RedNote), Bilibili.

Canonical page: https://datanavoapi.com/en/skills/viral/

This is a local simulation. Program-generated samples are not live platform data and do not establish provider availability.

## Inputs, goal and deliverable

Define the candidate set and ranking criteria, and retain a lower-performing comparison sample.

Inputs consist of explicit platforms, keywords or object identifiers. Preserve the samples, request IDs, classifications and unresolved questions in the deliverable. The task does not schedule itself or paginate indefinitely.

## Step-by-step plan

| Step | Capability | Input | Output |

| --- | --- | --- | --- |

| 1 | douyin.videos.trending | board | post / items |

| 2 | xiaohongshu.pgy.notes.trending | board, window | post / items |

| 3 | bilibili.videos.trending | Contract defaults | post / items |

- [Douyin trending videos](https://datanavoapi.com/en/apis/douyin/videos/trending/)
- [Xiaohongshu PGY trending notes](https://datanavoapi.com/en/apis/xiaohongshu/pgy/notes/trending/)
- [Bilibili popular videos](https://datanavoapi.com/en/apis/bilibili/videos/trending/)

## Reusable task prompt

Ask the client to present a plan before you confirm each execution. This prompt bounds the sample; it does not call an external service for you.

```text
Goal: Content performance sampling workflow
Use only DataNavoAPI local demo/simulated mode.
Planned capabilities: douyin.videos.trending → xiaohongshu.pgy.notes.trending → bilibili.videos.trending
Describe inputs and output fields and propose a bounded request count first.
Execute explicitly, retaining request IDs. Stop on failures or unknown outcomes.
Return a table, missing fields and sampling limits; never present fictional samples as market facts.
```

## Plan, run and export

This bounded example has 3 steps. Successful customer simulation costs 6 TEST; anonymous demo costs zero. Provide each required identifier before generating a fixed plan; search results do not expand the request list automatically.

Use data.items[].id for the matching platform and object detail, account IDs for account content and comment IDs for replies. Check object types before reusing an ID. Fixture IDs do not establish a real relationship. The workbench exports per-step JSON and source-labelled CSV.

| Workbench field | Meaning | Example |

| --- | --- | --- |

| step1_board | 步骤 1 · board | low_fan |

| step2_board | 步骤 2 · board | hot |

| step2_window | 步骤 2 · window | 7d |

```json
{
  "schemaVersion": 1,
  "templateId": "viral",
  "runId": "00000000-0000-4000-8000-000000000001",
  "inputs": {
    "step1_board": "low_fan",
    "step2_board": "hot",
    "step2_window": "7d"
  },
  "maxTotalCredits": 6,
  "estimatedCredits": 6,
  "priceVersion": "test-credit-v1",
  "steps": [
    {
      "id": "step-1",
      "title": "抖音视频榜",
      "capability": "douyin.videos.trending",
      "params": {
        "board": "low_fan"
      },
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-1"
    },
    {
      "id": "step-2",
      "title": "小红书蒲公英内容广场热门笔记",
      "capability": "xiaohongshu.pgy.notes.trending",
      "params": {
        "board": "hot",
        "window": "7d"
      },
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-2"
    },
    {
      "id": "step-3",
      "title": "B站综合热门",
      "capability": "bilibili.videos.trending",
      "params": {},
      "maxCredits": 2,
      "idempotencyKey": "wf:00000000-0000-4000-8000-000000000001:step-3"
    }
  ]
}
```

- [Open this task in the workbench](https://datanavoapi.com/tools/workflow-runner/?template=viral)
- [Download Skill instructions](https://datanavoapi.com/downloads/skills/viral.md)

## Review and stop conditions

- Each conclusion links back to a sample and request ID.
- Pagination stops at the agreed bound.
- Missing fields remain missing rather than being invented by the model.
- External writes, scheduled monitoring and automatic top-ups are not enabled by this workflow.

## Related pages

- [Douyin trending videos](https://datanavoapi.com/en/apis/douyin/videos/trending/)
- [Xiaohongshu PGY trending notes](https://datanavoapi.com/en/apis/xiaohongshu/pgy/notes/trending/)
- [Bilibili popular videos](https://datanavoapi.com/en/apis/bilibili/videos/trending/)
- [Post fields](https://datanavoapi.com/en/docs/objects/post/)
- [Which Bilibili content, account and comment APIs are available?](https://datanavoapi.com/en/answers/bilibili-data-apis/)
- [How do I inspect Douyin videos from smaller creators?](https://datanavoapi.com/en/answers/douyin-low-fan-viral-videos/)
- [Can public engagement counts establish a video completion rate?](https://datanavoapi.com/en/answers/douyin-video-completion-rate/)
- [How do I derive topic ideas from a RedNote sample?](https://datanavoapi.com/en/answers/xiaohongshu-hit-topic-ideas/)

[中文](https://datanavoapi.com/skills/viral/)
