For AI

Answers

What does 获赞与收藏 on a Xiaohongshu profile count?

Short answer

It is a single total: the likes plus the saves (收藏) the account's notes have received. okdata's Xiaohongshu account profile returns that combined figure as likes, next to followers, following and note count, for $0.02; it does not return likes and saves separately. To split them, add up metrics.likes and metrics.favorites over the account's notes.

Open any Xiaohongshu profile and the third number under the name reads 获赞与收藏, "likes and collects" in the English app. It is one total: how many likes the account's notes have received plus how many times they have been saved (收藏). The two are added before you see them, so 3.6万 could be 30,000 likes and 6,000 saves, or the other way round. That matters when you compare creators. Marketers often weigh saves more heavily, since a save means someone wants to come back to the note, and a creator with a high total can still have a low save rate. Xiaohongshu does not publish an exact definition. The profile data it sends has the two parts as separate numbers, filed with the account's note statistics, and they add up to the figure shown.

What the API returns for a profile

Xiaohongshu account profile takes a user ID, a profile link or an xhslink.com share link and returns:

Field What it is
likes 获赞与收藏, the combined total
followers 粉丝
following 关注
posts Notes published
username 小红书号
bio, verified Profile text and the official badge
ext.ip_location The IP region shown on the profile (with view=full)

There is no separate field for likes or for saves on the profile. If Xiaohongshu sends a rounded display value such as 1.2万, it comes back as 12000, so treat large figures as approximate.

Rebuilding the split

Every note carries its own counts: account notes returns metrics.likes and metrics.favorites (saves) for each, newest first. Sum them over the pages you fetch. For an account with a few hundred notes that recovers the split; for a large back catalogue, the last 60 or 100 notes give a save ratio that reflects how the creator performs now, which is usually what you want anyway.

Task Calls Cost
Profile with the combined total 1 $0.02
Likes and saves of the latest 100 notes 5 $0.10
20 creators, profile plus 5 note pages each 120 $2.40

Example

import os, requests

API = "https://api.okdata.online"
H = {"Authorization": f"Bearer {os.environ['OKDATA_API_KEY']}"}
user_id = "5f2b7c1e0000000001006a3d"

profile = requests.get(API + "/v1/xiaohongshu/users/get", headers=H, timeout=60,
                       params={"id": user_id}).json()["data"]["item"]
likes = saves = 0
cursor = None
for _ in range(5):                                   # latest ~100 notes
    params = {"id": user_id, **({"cursor": cursor} if cursor else {})}
    body = requests.get(API + "/v1/xiaohongshu/users/notes/list", headers=H,
                        params=params, timeout=60).json()
    for n in body["data"]["items"]:
        likes += n["metrics"]["likes"] or 0
        saves += n["metrics"]["favorites"] or 0
    if not body["page"]["has_more"]:
        break
    cursor = body["page"]["next_cursor"]
print("获赞与收藏:", profile["likes"], "| recent likes:", likes, "saves:", saves)

Limits

  • Your own sum covers only the notes you read, and Xiaohongshu does not say how deleted or hidden notes affect the total, so the two rarely match exactly.
  • PGY, Xiaohongshu's creator marketplace, shows the same combined figure for creators; okdata returns it as ext.likes_and_saves on PGY creator detail.
  • For follower counts across a list of creators, see creator profile followers; which ID a lookup needs is in user ID vs 小红书号.

Sources

  1. Xiaohongshu user stats: stats.likes looks like the 获赞与收藏 total, and note counts can be rounded (catbus issue #7)github.com · read

Where people asked this (read 2026-11-12)

Updated

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp