GET /v1/xiaohongshu/explore
Xiaohongshu explore API: RED feed notes by topic channel
Returns one page of the Xiaohongshu (RED) explore feed, about 30 notes, each a feed card with its title, like count, cover and author (extra.is_partial is true). Send channel, such as homefeed_recommend or a topic channel like homefeed.food_v3. Each first page is a fresh draw, and next_cursor reads the pages after it.
- Price
- $0.0005 per 30 results
- Billing
- $0.0005/30
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/xiaohongshu/explore?channel=homefeed.food_v3&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/xiaohongshu/explore",
params={
"channel": "homefeed.food_v3",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
channel required | query | string | The explore channel: homefeed_recommend, or a topic channel such as homefeed.food_v3, homefeed.fashion_v3 or homefeed.cosmetics_v3. |
since | query | string | Not accepted on this operation: its items carry no timestamp, so since returns 400 before billing. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native Xiaohongshu cursor from a raw page answers 400. Result download cursors belong to the results route. |
page_size | query | integer | Native num, default 30. Billed per 30 unique returned items, one native page. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts Xiaohongshu (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | true returns the upstream JSON exactly as Xiaohongshu answered it instead of the normalized Page[Post]. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference.
{
"data": {
"items": [
{
"id": "64469b250000000013016860",
"shortcode": null,
"taken_at": null,
"kind": "image",
"product_type": null,
"caption": "探店/邯郸",
"hashtags": [],
"mentions": [],
"accessibility_caption": null,
"likes": 169,
"comments": null,
"views": null,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "5ea195610000000001000374",
"username": null,
"full_name": "Xxxx辛",
"is_verified": null,
"is_private": null,
"avatar_url": "https://sns-avatar-qc.xhscdn.com/avatar/6420eb8a1633662142007601.jpg",
"latest_story_at": null,
"extra": {}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": null,
"thumbnail_url": "https://sns-webpic-qc.xhscdn.com/202610280528/89629440de54abc7a8e61889221d9903/1000g0082d2f2am8gu0405n2b09sk3nmfiq8p8r0!nc_n_nwebp_mw_1",
"video_duration": null,
"media": [],
"media_urls": [],
"extra": {
"url": "https://www.xiaohongshu.com/explore/64469b250000000013016860",
"title": null,
"saves": null,
"shares": null,
"note_type": "normal",
"mentioned_users": [],
"is_partial": true,
"approximate_metrics": []
}
},
{
"id": "643662db000000001300e048",
"shortcode": null,
"taken_at": null,
"kind": "image",
"product_type": null,
"caption": "台北市政府|信義區高cp值日式義大利麵",
"hashtags": [],
"mentions": [],
"accessibility_caption": null,
"likes": 1952,
"comments": null,
"views": null,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "62188e0c000000001000c434",
"username": null,
"full_name": "欸欸,呷罷未",
"is_verified": null,
"is_private": null,
"avatar_url": "https://sns-avatar-qc.xhscdn.com/avatar/621a41fe317d48f2d83bae3f.jpg",
"latest_story_at": null,
"extra": {}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": null,
"thumbnail_url": "https://sns-webpic-qc.xhscdn.com/202610280528/78f5cbc327875aeed50d7c406daa22d2/1000g0082b36kqjcgm05g5ogoho641h1k1m8v0t8!nc_n_nwebp_mw_1",
"video_duration": null,
"media": [],
"media_urls": [],
"extra": {
"url": "https://www.xiaohongshu.com/explore/643662db000000001300e048",
"title": null,
"saves": null,
"shares": null,
"note_type": "normal",
"mentioned_users": [],
"is_partial": true,
"approximate_metrics": []
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-11-02T22:17:02.145828+00:00",
"count": 29,
"signed_in": false
}
],
"next_cursor": "eyJjdXJzb3IiOiI6MjkiLCJvcCI6ImV4cGxvcmUifQ",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": null,
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-27T21:28:43.794374+00:00",
"cost": "$0.0005",
"balance": "$9.9950",
"request_id": "req_fd901072f0e3141ef195de8005e37235"
}
}How it works
One explore page of about 30 notes, each a feed card with its title, like count, cover and author (extra.is_partial is true). Each first page is a fresh draw, and next_cursor reads the pages after it. Returns Page[Post] under data.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs.
A field Xiaohongshu does not carry is null, a list it does not carry is [], and Xiaohongshu-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Billing: $0.0005 per 30 unique returned items (one native page), rounded up to a minimum of one billing unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the Xiaohongshu account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |