Xiaohongshu (RedNote) user timeline API
Based on the 2026-10-25 specification snapshot
Quick answer
POST /xhs/users/task with author_id, startDate and endDate (all required, dates as YYYY-MM-DD) starts a task that collects a public Xiaohongshu account's notes in that range. Poll GET /xhs/users/task/{task_id}; once DONE it returns the account ID, a profile object, the timelines and the task metadata. timelines is either a list or an object with data and pagination, and timeline polls take no paging parameters. Data is collected by web crawlers from content publicly published on Xiaohongshu.
What teams use it for
- Follow what a brand's official account or a creator published over a campaign period.
- Keep a dated record of a public account's notes for research.
- Compare how often several accounts in one category post within the same window.
Endpoints
Base URL: https://api.infominer.io/api/v2. Send your API key in the auth-header request header.
| Method | Path | What it does |
|---|---|---|
| POST | /xhs/users/task |
Creates a public account timeline task for an account ID and date range. |
| GET | /xhs/users/task/{task_id} |
Polls a timeline task; once DONE it returns the profile and the note timeline. |
Request parameters
POST /xhs/users/task
| Parameter | In | Type | Required | Default / allowed | Description |
|---|---|---|---|---|---|
author_id |
body | string | Yes | Account ID of the public account. | |
endDate |
body | string | Yes | End date (YYYY-MM-DD). | |
startDate |
body | string | Yes | Start date (YYYY-MM-DD). |
GET /xhs/users/task/{task_id}
| Parameter | In | Type | Required | Default / allowed | Description |
|---|---|---|---|---|---|
task_id |
path | string | Yes | Task ID returned when the task was created. |
Response fields
| Data | Fields | Endpoint |
|---|---|---|
| Public account timeline | id, profile, timelines, task | GET /xhs/users/task/{task_id} |
Code examples
curl: create the task
curl -X POST https://api.infominer.io/api/v2/xhs/users/task \
-H "auth-header: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"author_id": "0000000000000001", "startDate": "2026-06-01", "endDate": "2026-06-30"}'
curl: poll the task by ID
curl "https://api.infominer.io/api/v2/xhs/users/task/$TASK_ID" \
-H "auth-header: YOUR_API_KEY"
Python (requests): create, poll, read
import time
import requests
BASE_URL = "https://api.infominer.io/api/v2"
HEADERS = {"auth-header": "YOUR_API_KEY"}
# 1. Create the task
resp = requests.post(
f"{BASE_URL}/xhs/users/task",
headers=HEADERS,
json={
"author_id": "0000000000000001",
"startDate": "2026-06-01",
"endDate": "2026-06-30",
},
timeout=30,
)
resp.raise_for_status()
task = resp.json()
# 2. Poll until the task leaves INIT / RUNNING
for _ in range(120):
resp = requests.get(
f"{BASE_URL}/xhs/users/task/{task['id']}",
headers=HEADERS,
timeout=30,
)
resp.raise_for_status()
result = resp.json()
status = result.get("status") or result.get("task", {}).get("status")
if status not in ("INIT", "RUNNING"):
break
time.sleep(15)
else:
raise SystemExit("task still running; poll it again later")
if status == "FAILED":
raise SystemExit("task failed")
if status != "DONE":
print("task ended with status", status, "- results may be incomplete")
# 3. Read the profile and the timeline
print(result.get("profile"))
timelines = result.get("timelines")
rows = timelines.get("data", []) if isinstance(timelines, dict) else (timelines or [])
print(len(rows), "posts")
Sample response
Illustrative data written by hand: accounts are sample_user_n and IDs are obviously fake. Fields follow the 2026-10-25 specification snapshot; the sample shows a subset, and the full list is in the table above.
Task creation response (illustrative data). The snapshot does not enumerate the fields inside profile and timelines, so confirm them with trial data.
{
"id": "00000000-0000-4000-8000-000000000001",
"author_id": "0000000000000001",
"startDate": "2026-06-01",
"endDate": "2026-06-30",
"status": "INIT",
"tm": 1780272000
}
Limits and notes
- author_id, startDate and endDate are all required.
- timelines is returned either as a list or as an object with data and pagination.
- Only content publicly published on Xiaohongshu is collected.
- How far back timelines go and refresh frequency are confirmed per project scope.
More Xiaohongshu (RedNote) API pages
- Note search
- Comments and replies
- User timeline
Request a trial
In the request form below, mention Xiaohongshu and tell us the keywords or categories to search, whether you need comments and second-layer replies, and the expected volume. We confirm the scope and reply with the arrangements for the trial and API key.
Fill in the form to request a trial. We confirm the scope and reply with trial and integration arrangements.
Fill in the request formFAQ
- Can I collect notes from a private account?
- No. Only content publicly published on Xiaohongshu is collected.
- Does the timeline include comments?
- The timeline task collects the account's notes. To collect comments, create a comment task for each note URL with the Xiaohongshu comments API.
- Is there paging on the timeline result?
- The poll takes no paging parameters. timelines is returned either as a list or as an object with data and pagination.
- How is the data collected? Is this the official Xiaohongshu API?
- By web crawlers, from content publicly published on Xiaohongshu. LargitData is not affiliated with Xiaohongshu and this is not Xiaohongshu's own API. Whether this suits your use depends on the purpose and jurisdiction and is for your legal team to assess; we can provide a description of sources and collection methods.