# Xiaohongshu video extraction — direct media URLs

**Use case:** 

Extract direct .mp4 URLs, titles and authors from RedNote video posts, for content archives, ad verification and video-model training sets that need the source file. No login needed as long as each URL keeps its xsec_token (copy it from the browser or the app's share sheet); image notes are detected and never charged. With no URLs, this example samples 5 trending posts.

## Input

```json
{
  "mode": "video",
  "searchQuery": "skincare routine",
  "userUrl": "https://www.xiaohongshu.com/user/profile/5d5a56c10000000001000813",
  "userUrls": [
    "https://www.xiaohongshu.com/user/profile/56970f036a6a69031d3c6e15",
    "https://www.xiaohongshu.com/user/profile/5d7439b40000000001009f54"
  ],
  "postUrls": [],
  "maxResults": 30,
  "sortBy": "general",
  "filterByType": "all",
  "filterByMinLikes": 0,
  "includeComments": false,
  "maxComments": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "concurrency": 4,
  "blockResources": true,
  "liteMode": false,
  "sentimentAnalysis": false,
  "deltaMode": false,
  "deltaStateKey": "default",
  "networkCapture": true
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "text"
  },
  "authorName": {
    "label": "Author"
  },
  "likes": {
    "label": "Likes",
    "format": "number"
  },
  "type": {
    "label": "Type",
    "format": "text"
  },
  "mode": {
    "label": "Mode",
    "format": "text"
  },
  "images": {
    "label": "Images",
    "format": "array"
  },
  "profileUrl": {
    "label": "Profile URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "date"
  },
  "comments": {
    "label": "Comments",
    "format": "number"
  },
  "shares": {
    "label": "Shares",
    "format": "number"
  },
  "saves": {
    "label": "Saves",
    "format": "number"
  },
  "followers": {
    "label": "Followers",
    "format": "number"
  },
  "isVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "nickname": {
    "label": "Author",
    "format": "text"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "link"
  },
  "postId": {
    "label": "Post id"
  },
  "userId": {
    "label": "User id"
  }
}
```

## About this Actor

This example demonstrates how to use [RedNote Xiaohongshu Scraper — Posts, Comments, Profiles, Video](https://apify.com/zhorex/rednote-xiaohongshu-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhorex/rednote-xiaohongshu-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhorex/rednote-xiaohongshu-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
