DEV Community

Cover image for Track Xiaohongshu (RedNote) note growth with snapshots in Python
EveryInfra for EveryInfra

Posted on Originally published at everyinfra.com

Track Xiaohongshu (RedNote) note growth with snapshots in Python

Xiaohongshu data analysis has to answer one question: how much did a note grow over a period of time? A screenshot of totals cannot answer it. On November 15, 2026, we took 14 public snapshots in three rounds with the EveryInfra Xiaohongshu API, for $0.077784 in total. One note showed 5 more comments in the author list than in the note detail in both paired reads, at 00:27 and at 02:40. A default-sort search kept only 6 of its 20 results one hour later. One account with 8 notes gained 38 net likes in 2.21 hours, and 17 of them went to the newest note.

Key points

  • In two paired reads (00:27–00:28 and 02:40), the author list showed 5 more comments than the note detail for one note. Two points cannot prove the cause, but you must already store each entry point in its own column and never subtract one from another.
  • The English keyword search kept 10 of its 20 results after 2.19 hours, and the default Chinese search kept 6 after one hour. Use a search as a picture of one moment, and track growth by note ID.
  • In 94 of 103 notes, the time in the first 8 ID characters and posted_at are at most 1 second apart (93 in the same second, 1 with a 1-second gap). In 9 notes posted_at is later, by up to 78.82 hours. Store both columns.
  • One account with 8 notes gained 38 net likes in 2.21 hours, and 3 notes did not change at all. Write each delta as an interval value.
  • The API gave share_count on some requests and not on others. In round 1 it was null in all 20 default-sort search results and present in all 20 most-liked results. In round 3 it was the other way around. Keep nulls as nulls, never 0.
  • Three snapshots a day for 30 days cost $0.50 for one account and $25.00 for 50 notes read by ID.

Illustration on a white background. A note card with a heart and a teal bookmark sits in the middle. Three magnifying glasses look at it from the left, the top and the right. Each lens shows a small stack of bars: two on the left, three at the top, four on the right, and the tallest stack is teal. Behind the card, three thin timelines carry small dots for three moments. The picture has no text.

One note, read from three entry points at three moments, can give three different counts. Record where and when you read each number.

The September sources, re-read on November 15

We first published this article on September 5, 2026. It relied on four sources. One was a forum post about a local dashboard tool called xhs-trail. The others were the README of that project and two documentation pages for pandas and SQLite. On November 15, 2026, from 00:30 to 00:38 Singapore time, we opened each source again.

The table shows what we found. We still did not install or audit the tool. We also did not log in to any creator dashboard. Statements about the creator export file come from the post and the README.

Claim in the September version What the source says on 2026-11-15 Status
A creator stores each daily export as a snapshot to see recent growth The V2EX post is still online. The author wants to know how much a note grew in the last 7 days and which old notes still grow. The tool imports one note list spreadsheet per day Still correct
The README says to set the data date at import, so old data does not land on today The README still says this. A file name with a suffix such as -260512 is read as 2026-05-12 Still correct, auto-detection added
Titles change, so do not join snapshots on titles The README FAQ says the tool uses the native note ID when you fill it in. Without the ID, it matches on title plus publish time Still correct, fallback added
pandas merge with validate="one_to_one" finds duplicate keys on both sides The pandas 3.1.1 page still has validate and indicator. It also warns that null keys on both sides match each other Still correct, null warning added
SQLite UPSERT relies on a uniqueness constraint The SQLite UPSERT page still says it works only for UNIQUE and PRIMARY KEY constraints Still correct
No live test with public data This time we used EveryInfra xiaohongshu/search, xiaohongshu/note and xiaohongshu/user_posts at three moments, 14 requests in total New

The README FAQ adds one more point. Version 1 of the tool supports one account. For more accounts, you make one folder and one database path per account. For a team that tracks several accounts, this is a warning.

Put the account in the unique key of the snapshot table. Otherwise, you cannot separate the accounts after a merge.

Xiaohongshu data analysis starts with two kinds of numbers

Xiaohongshu, also called RedNote outside China, gives you two kinds of note numbers. The first kind is what the author sees in the creator center and can export as a spreadsheet. The forum post lists impressions, views, likes, saves, comments and new followers. The second kind is the public count that any visitor sees on a note: likes, saves, comments, and on some entry points, shares. Impressions, views, new followers and watch time exist only in the first kind. You cannot calculate them from public data.

The two kinds also update in different ways. A June 2025 guide on Zhihu describes the creator center. Its note data covers the publish day to the end of yesterday. It says the data refreshes at about 15:00 the next day. It also says that notes older than six months no longer show an analysis page. This is a secondary source, and we did not log in to check it.

We use it only as a reminder. A row in the export has its own cut-off time. That cut-off is different from the time you click export and from the time you load the file. A public count has no such cut-off. It shows the value at the moment of your request.

The platform's own tools also give different numbers. The Pugongying help center is the creator marketplace that Xiaohongshu runs for brands. Question 8 on its custom order page says that reads and impressions use different counting rules. We took the page text from the help center API on November 15. In that text, the last update of this block is August 19, 2026. The page header shows a later update time, November 12 at 15:45, for the page as a whole.

Reads can be higher than impressions, because a visit through a shared link counts as a read but not as an impression. The report FAQ of Juguang, the ad platform, is more direct. Juguang counts a removed like and repeated clicks from one account again, but the app filters them out. If a user sees an ad note and then likes another note on the same profile, Juguang credits that like to the ad.

Screenshot of the Pugongying help center page about custom orders, in Chinese, with two teal boxes. The top box marks the update time under the page title, 2026-11-12 15:45:36. The bottom box marks the answer to question 8. In translation, it says that reads and impressions use different counting rules and do not form a funnel; a visit through a shared link counts as a read but not as an impression, so reads can be higher than impressions; use the Pugongying dashboard as the reference.

The original Pugongying help page, in Chinese. The teal boxes mark the update time and question 8. Captured on November 15, 2026, Singapore time. Screenshot of the Xiaohongshu Pugongying help center, custom order page

Source of the number What it shows Counting rule (source)
Creator center export Impressions, views, likes, saves, comments, new followers Up to the previous day, refreshed at about 15:00 the next day (Zhihu guide, secondary)
Pugongying Reads, impressions, engagement A share-link open counts as a read only, so reads can exceed impressions (help center, question 8)
Juguang Engagement on ad notes Counts removed likes and repeated clicks again; likes on other profile notes go to the ad (report FAQ)
App front end Likes, saves, comments Filters removed likes and repeated clicks (as the Juguang report FAQ says)
Public API Likes, saves, comments, shares on some entry points Value at the request moment; null means not public or not returned this time, not 0 (EveryInfra catalog, for likes and saves)

So each column in your table needs three labels. Write the tool or entry point. Write the cut-off time. Write the counting rule. An app screenshot, a Pugongying report, a Juguang report, a creator export and a public count use five different counting rules.

So one note can give five different readings. If you put readings from two sources in one column and subtract them, the result has no meaning. Our article on choosing a RedNote API compares what the official platform, open-source scripts and pay-per-call APIs return.

A fourth timestamp hides in the note ID

The September version asked you to keep three times apart. The first is the time the report covers. The second is the export time. The third is the import time. Public data gives one more time source: the note ID itself. A Xiaohongshu note ID is a string of 24 hexadecimal characters.

It has the same shape as the ObjectId in the MongoDB documentation. The first 4 bytes of an ObjectId hold the creation time in seconds since the Unix epoch. We do not know how Xiaohongshu makes its IDs. So we tested it. We turned the first 8 hex characters into seconds and compared the result with the posted_at field from the API.

Time Meaning Example in this article Source
Cut-off time The moment the numbers in a table cover up to About the end of the previous day for a creator export Creator export, help pages
Export time The moment someone clicks export None here, we did not sign in to a dashboard File creation time
Import time The moment the file enters your analysis store None here, we used no creator export Your import script
ID time Time decoded from the first 8 ID characters 6af3…: Nov 11, 03:11 UTC Note ID
posted_at Publish time from the platform 6af3…: Nov 14, 10:01 UTC API response
observed_at The moment we sent the request 00:27:17 Singapore time Request log

Horizontal bar chart. The 103 distinct notes from the three rounds are grouped by the gap between the time in the first 8 ID characters and posted_at: within 1 second 94 (dark grey; 93 in the same second, 1 with a 1-second gap), up to 6 hours later 4, 6 to 24 hours later 4, more than 24 hours later 1 (teal, 78.82 hours), earlier than the ID time 0.

The three rounds of 14 requests returned 103 different notes. For 93 of them, the ID time and posted_at fall in the same second. For note 65d9…, posted_at is 1 second later. So 94 notes are at most 1 second apart.

For the other 9, posted_at is later than the ID time, by 0.43 to 78.82 hours. Four are up to 6 hours later, four are 6 to 24 hours later, and one is 78.82 hours later. No note has a posted_at earlier than its ID time.

For the note with the 78.82-hour gap, the ID decodes to 03:11 UTC on November 11, 2026. Its posted_at is 10:01 UTC on November 14. A separate xiaohongshu/note request for the same note gives the same posted_at. The response has no updated_at field, so it does not show whether the note was edited.

Timeline diagram from November 11 to November 15, 2026, in UTC. Three times for note 6af3… (only the first 4 ID characters shown): the ID time from the first 8 characters, 03:11 on November 11; posted_at from the platform, 10:01 on November 14, in teal; and our request, 16:27 on November 14. Two bars below the axis: 78.82 hours from the ID time to posted_at, and 6.4 hours from posted_at to the request, in teal. The title says 3.6 days old by its ID and 6.4 hours old by posted_at.

The table lists the 9 notes where posted_at is later than the ID time, largest gap first. Row 1 is 6af3…. All other gaps are under 13 hours. The notes were posted between June and November 2026.

Row ID time (UTC) posted_at (UTC) Gap (hours)
1 2026-11-11 03:11 2026-11-14 10:01 78.82
2 2026-09-02 12:53 2026-09-03 01:51 12.96
3 2026-07-17 21:25 2026-07-18 09:30 12.07
4 2026-06-07 01:17 2026-06-07 11:23 10.09
5 2026-11-11 02:57 2026-11-11 11:02 8.09
6 2026-11-14 01:04 2026-11-14 04:10 3.10
7 2026-06-10 09:29 2026-06-10 11:29 1.99
8 2026-07-10 08:47 2026-07-10 09:48 1.00
9 2026-09-11 23:34 2026-09-12 00:01 0.43

More than one cause can explain these 9 notes. The author could save a draft and post it days later. The author could use scheduled posting. The platform could keep the ID when a note goes up again. Public data cannot tell these apart, so we report only what we saw.

Suppose you compare notes in their first 24 hours. The ID time and posted_at then give two different windows. By its ID time, the 78.82-hour note is three days old. By posted_at, it is less than one day old. We store both columns. We use posted_at for windows, and we flag notes where the two differ by more than one hour.

The account ID has the same shape. For the account we tracked, the first 8 characters decode to July 1, 2026 (UTC). Its first note went up on November 6. This number shows only when the ID was made. Do not quote it as a sign-up date. We mention it for a practical reason.

Store IDs as text. A spreadsheet can read a long ID as a number and change it to scientific notation. Microsoft's troubleshooting page says that Excel cuts long numbers to 15 digits of precision and shows them as values like 1.23E+15. It also reads a string with digits around the letter E as scientific notation. Set the ID column to text when you import, and the ID stays as it is.

Test design: three moments, three entry points

On November 15, 2026, Singapore time, we sent requests to the EveryInfra Xiaohongshu API in three rounds. We checked three things. Does one note give the same counts on different entry points? How much do the counts of one group of notes change in one or two hours, and does any count go down? How many results change when we run one keyword search again a few hours later? We kept the time, parameters, raw response and charge of each request.

Singapore time Capability Parameters Rows Charge (USD)
00:27:17 (Round 1) xiaohongshu/search Chinese keyword (Xiaohongshu data analysis), default sort 20 0.005556
00:27:48 (Round 1) xiaohongshu/note Note A (6af7…, search result 2) 1 0.005556
00:27:56 (Round 1) xiaohongshu/note Note 6af3… (78.82 h between ID time and posted_at) 1 0.005556
00:28:05 (Round 1) xiaohongshu/note Note 692d… (posted December 2025) 1 0.005556
00:28:15 (Round 1) xiaohongshu/user_posts Tracked account (ID hidden), page 1 8 0.005556
00:28:30 (Round 1) xiaohongshu/search Same keyword, sort=most_liked 20 0.005556
00:29:45 (Round 1) xiaohongshu/search "rednote analytics", default sort 20 0.005556
01:30:04 (Round 2) xiaohongshu/search Chinese keyword (Xiaohongshu data analysis), default sort 20 0.005556
01:30:17 (Round 2) xiaohongshu/user_posts Tracked account (ID hidden), page 1 8 0.005556
02:40:21 (Round 3) xiaohongshu/search Chinese keyword (Xiaohongshu data analysis), default sort 20 0.005556
02:40:33 (Round 3) xiaohongshu/user_posts Tracked account (ID hidden), page 1 8 0.005556
02:40:42 (Round 3) xiaohongshu/note Note A (6af7…, search result 2) 1 0.005556
02:40:53 (Round 3) xiaohongshu/search "rednote analytics", default sort 20 0.005556
02:41:05 (Round 3) xiaohongshu/search Same keyword, sort=most_liked 20 0.005556

The tracked account is a personal account. It posted 8 notes from November 6 to 14, 2026. One user_posts page returned all of them, with stop_reason set to end_of_list. We chose this account for two reasons. Its notes are new, so the counts move within hours.

Also, 8 notes is one week of posts for one person. That is close to the size of the export file in the September version. We do not show the creator's name, account ID or note titles. For notes from personal accounts, we show only the first 4 ID characters. We call the 8 account notes A to H, newest first. For search, we used the Chinese keyword for "Xiaohongshu data analysis", the same keyword sorted by most likes, and the English keyword "rednote analytics".

Test 1: one note, three entry points, one minute

At 00:27:17 we searched the Chinese keyword. The second result was a note with an ID that starts with 6af7, posted at 05:01 UTC on November 14. We call it note A. At 00:27:48, 31 seconds later, we read the same note with xiaohongshu/note. At 00:28:15, 27 seconds after that, we read the author's list with xiaohongshu/user_posts, and the note appeared again.

All three reads gave 85 likes and 85 saves. The comment count was 39 in the search and the note detail, and 44 in the author list. The note detail and the author list both gave 15 shares. This search result left the share field empty.

Note Entry point Singapore time Likes Saves Comments Shares
A Search 00:27:17 85 85 39 null
A Note detail 00:27:48 85 85 39 15
A Author's note list 00:28:15 85 85 44 15
A Author's note list 01:30:17 95 92 45 16
A Author's note list 02:40:33 102 103 45 16
A Note detail 02:40:42 102 103 40 16

The note detail (00:27:48) and the author list (00:28:15) are 27 seconds apart. The comment count was 39 against 44. Five new comments in 27 seconds is possible.

The author list could also count comments in a different way, for example with replies included. This one set of numbers cannot tell the two causes apart. In round 3 we tried the three entry points again. Note A was no longer on the first page of the default search, so we compared the other two entry points.

At 02:40:33 the author list showed 45 comments. Nine seconds later the note detail showed 40. Likes (102), saves (103) and shares (16) matched.

So in both paired reads (00:27–00:28 and 02:40), the author list showed 5 more comments than the note detail. Between the two reads, each entry point rose by 1. The same gap twice suggests a different counting rule for comments. Two points are not enough to prove it, so more rounds are necessary.

Screenshot of three live EveryInfra API responses, each cut down to the count fields and billing for note A. Only the first 4 ID characters, 6af7, are shown. Search at 00:27:17: comments 39, shares null. Note detail at 00:27:48: comments 39, shares 15. Author note list at 00:28:15: comments 44, shares 15. Likes and saves are 85 in all three, and each call cost $0.005556. Teal boxes mark comments, shares and the charge. The author account ID is hidden.

Live responses for one note from three entry points within 58 seconds. This search result has no share count, and the author list shows 5 more comments. Screenshot of a live EveryInfra API response, November 15, 2026, Singapore time

In round 1, eight more notes were read twice. Two were in a search and a note detail. Six were in two different searches. The two reads were within 3 minutes, and likes, saves and comments matched exactly.

The share count needs its own check. In round 1, all 20 default-sort search results had no share_count, and all 20 most-liked results had it. In rounds 2 and 3, all 20 default-sort results had it. In round 3, all 20 most-liked results had no share_count. For note 6ac9…, the share count went from 359 in round 1 to null in round 3.

So the same entry point with the same parameters can return the field on one request and not on the next. Do not write a rule such as "search has no share count". The EveryInfra catalog says, for likes and saves, that null means "not public or not returned this time" and does not mean 0. Treat shares the same way. Note A had a null share count in the round 1 search and 15 in the note detail. If you write the null as 0 and subtract, you get +15 shares that never happened.

Test 2: three snapshots of one account with 8 notes

We took the three account snapshots at 00:28:15, 01:30:17 and 02:40:33. The two intervals are 1.03 and 1.17 hours, and the first and last snapshots are 2.21 hours apart. All 8 notes were in all three snapshots. No note was added or removed. Over 2.21 hours the 8 notes gained 38 likes, 32 saves, 13 comments and 3 shares in total.

Interval (Singapore time) Length Likes Saves Comments Shares
00:28:15 → 01:30:17 1.03 h +22 +13 +11 +2
01:30:17 → 02:40:33 1.17 h +16 +19 +2 +1
00:28:15 → 02:40:33 2.21 h +38 +32 +13 +3

The two intervals and four counts give 64 deltas, and none of them is negative. Growth was concentrated. The newest note, note A, was 11.4 hours old at the first snapshot. It alone gained 17 likes and 18 saves, which is 45% of the account's net likes. Add note H with 10 and note D with 8, and 3 notes hold 35 of the 38 net likes. Three other notes did not change in any of the four counts.

If you look only at totals, the account's likes went from 2,530 to 2,568. That is a rise of 1.5%, and it hides all of these differences.

Horizontal bar chart of net likes over 2.21 hours for the 8 notes of one account, newest first, with only the first 4 ID characters: A 6af7… (11 h old) +17, in teal; B 6af5… (57 h) 0; C 6af3… (85 h) 0; D 6af2… (109 h) +8; E 6af1… (128 h) +1; F 6aee… (177 h) 0; G 6aee… (182 h) +2; H 6aed… (195 h) +10.

Note Age at first Likes (00:28 → 01:30 → 02:40) Saves first → last Comments first → last Shares first → last Net likes per hour
A 6af7… 11.4 h 85 → 95 → 102 85 → 103 44 → 45 15 → 16 7.71
B 6af5… 56.5 h 21 → 21 → 21 28 → 28 6 → 6 5 → 5 0.00
C 6af3… 84.6 h 22 → 22 → 22 18 → 18 16 → 16 6 → 6 0.00
D 6af2… 108.5 h 532 → 537 → 540 456 → 464 261 → 261 119 → 120 3.63
E 6af1… 128.2 h 125 → 126 → 126 42 → 42 149 → 149 11 → 11 0.45
F 6aee… 176.9 h 21 → 21 → 21 14 → 14 18 → 18 4 → 4 0.00
G 6aee… 182.4 h 315 → 316 → 317 330 → 333 129 → 130 78 → 78 0.91
H 6aed… 195.2 h 1,409 → 1,414 → 1,419 673 → 676 1,269 → 1,280 284 → 285 4.54

Scatter plot. The X axis shows hours since posting at the first snapshot, on a log scale from 10 to 1,000. The Y axis shows average net likes per hour over 2.21 hours. Note A: 11 hours, 7.71, in teal. Note H: 195 hours, 4.54. Note D: 109 hours, 3.63. Note G: 182 hours, 0.91. Note E: 128 hours, 0.45. Notes B, C and F: 0.

Put growth rate next to note age. The newest note, note A, gained 7.71 net likes per hour, far more than the others. But note H, 195 hours old, still gained 4.54 per hour. Notes B and C, 57 and 85 hours old, gained nothing. So the rate does not follow note age.

These are 8 points over one night-time interval, so check each note against its own snapshots. Note H was more than 8 days old and gained 11 comments in two hours, the most of the 8 notes. That is the kind of older, still-growing note that the xhs-trail author wanted to find.

Subtract cumulative counts and write the result as an interval

Public counts and the totals in a creator export are cumulative. Each one is the total up to a moment. Take two reads of the same note, from the same entry point, with the same counting rule. Their difference is the net change between the two moments. The September version used invented numbers to explain this. This time we use our own data.

The likes of note A were 85 at 00:28:15, 95 at 01:30:17 and 102 at 02:40:33. The first interval of 1.03 hours added 10. The second interval of 1.17 hours added 7. Over the full 2.21 hours the note gained 17, an average of 7.71 per hour. Suppose you keep only the first and last snapshots and spread 17 evenly over the hours. You then lose the slowdown from 9.67 per hour in the first interval to 5.98 in the second.

Two rules apply when you write this difference. First, it belongs to an interval, not to one moment. Do not put all of it on the date of the second read. Do not spread it evenly over each hour and then say that each hour grew by the same amount. If you need a rate, write it as "average net change per hour over an interval of X hours" and keep the real interval.

Second, it is a net value. Suppose 10 people liked a note and 2 people removed their likes. The count shows plus 8. Neither the API nor the dashboard shows you the 10 and the 2.

In pandas, group by note ID and sort by observed_at. Then diff gives the change between each pair of adjacent snapshots in one step. The documentation says that diff equals self - self.shift(periods). The first row of each group has no earlier snapshot, so its result is a missing value, and integer columns become floats because of it.

That row means "no earlier value". Show it as blank or as "first observation". Do not fill it with 0 to get integers back.

Some fields hold interval values from the start. An example is a "views in the last 7 days" column in a creator export. For such a field, today minus yesterday is the difference between two rolling windows. It is not the number of new views today.

To tell the two types apart, read the column header and the help page. If you cannot find a definition, compare two exports from consecutive days. A cumulative value seldom goes down from one day to the next. A rolling-window value often does.

Do not clip negative differences to zero. In our three rounds, the 8 account notes give 64 deltas over two intervals and four counts. None is negative. The notes that appear in both rounds of the three searches (25 search-note pairs, 23 distinct notes) also show no negative likes, saves or comments. Two hours is a short time, so this does not mean that negative deltas cannot happen. On September 23, 2026, the Pugongying help center updated its notice on fake engagement.

From August 22 to September 20, the platform took action against 76,000 accounts and 357,000 notes. It removed 170 million fake follows and 980 million fake likes and saves. When the platform removes fake data, cumulative counts go down. If you see a negative difference, first check that the note, the entry point and the counting rule are the same. Then keep the value as an observed net decrease. Do not invent a cause for the platform.

Test 3: an English keyword, searched again hours later

We searched "rednote analytics" at 00:29:45 and again at 02:40:53. After 2.19 hours, 10 of the 20 results were the same, and only 2 of the top 10. The 10 notes that stayed showed no change in likes, saves or comments.

The two Chinese searches moved even more. The default sort ran three times, at 00:27:17, 01:30:04 and 02:40:21. Round 2 kept 6 of the 20 results from round 1, and round 3 kept 7. Rounds 2 and 3 shared only 2 notes.

The most-liked sort kept 8 of 20 after 2.21 hours, and 5 of its top 10. So even a sort by likes is not a fixed ranking. The page itself rotates.

In the same hours, note A in the tracked account gained 17 likes. It did not appear on the first page of the default search in round 2 or round 3. If you measure growth from search results, you miss the notes that grow. The notes that stay on the page mostly do not move.

Search First → repeat (Singapore time) Gap Same of 20 Same of top 10 Shared notes with changed counts
Chinese keyword, default sort 00:27:17 → 01:30:04 1.05 h 6 3 0 of 6
Chinese keyword, default sort 00:27:17 → 02:40:21 2.22 h 7 4 0 of 7
Chinese keyword, most liked 00:28:30 → 02:41:05 2.21 h 8 5 1 of 8
"rednote analytics" 00:29:45 → 02:40:53 2.19 h 10 2 0 of 10

Line chart. The X axis shows the Singapore times of the three rounds: 00:27, 01:30 and 02:40. The Y axis shows notes that were also in round 1, out of 20. Chinese keyword, default sort: 20, then 6, then 7. Chinese keyword, most liked: 20, then 8. "rednote analytics", in teal: 20, then 10. The last two ran only in rounds 1 and 3.

A search result is not a snapshot of all notes. One search page has 20 results. The order changes, new notes push in, and one keyword gives a different sample at a different time. So do two things. First, store each search result as its own snapshot, with the request time, the keyword, the sort order and the page number.

Second, pick the note IDs that you want to follow. After that, read those notes by ID with xiaohongshu/note or with the author's user_posts list. A keyword search answers "what does a user see for this keyword at this moment". A read by ID answers "how much did these notes grow". Keep the two tables apart.

Our weekly share-of-voice report for Southeast Asian brands uses the first method. It searches fixed keywords at a fixed time each week and counts the notes that mention each brand. If you need the second method, reads by ID are simpler and easier to explain.

Change the sort, and you get a different sample

In round 1 we ran the Chinese keyword twice, once with the default sort and once sorted by most likes. We also ran the English keyword "rednote analytics" once. Each search returned 20 notes. We subtracted posted_at from the request time to get the age of each note. The three age distributions are very different.

Horizontal stacked bar chart with three bars of 20 notes each, split into five age bands. Chinese keyword, default sort: 5 notes under 2 days, 2 from 2 to 7 days, 1 from 7 to 30 days, 11 from 30 days to 1 year and 1 over 1 year. Chinese keyword, most liked: 11 from 30 days to 1 year and 9 over 1 year. "rednote analytics": 9 from 30 days to 1 year and 11 over 1 year. The under-2-days band is highlighted in teal.

In the default search, 5 of the 20 notes were less than 2 days old. The median age was 73.4 days. The notes had 1,215 likes in total, the top note had 275, and 3 notes had none. In the most-liked search, no note was younger than 30 days and 9 were older than a year. The median age was 328.5 days and the likes added up to 42,363.

The top note dates from May 2022 and has 27,833 likes and 32,303 saves. The API gives these counts as exact integers. All 20 results of the English keyword have Chinese text. 11 of them are older than a year, and the top one has 3,975 likes.

Round 1 search (20 notes each) Under 2 days Over 1 year Median age Likes in total Top note's likes Zero likes
Chinese keyword, default sort 5 1 73.4 days 1,215 275 3
Chinese keyword, most liked 0 9 328.5 days 42,363 27,833 0
"rednote analytics" 0 11 480.2 days 11,436 3,975 1

The sort parameter is part of the sample definition. Store it in the snapshot table with the keyword. Do not compare growth between default-sort and most-liked results in one column.

A most-liked search returns mostly old notes. It answers "what has been most popular on this topic over time". To see how fast new content picks up, use the default or newest sort. Then pass the note IDs you select to a regular read by ID.

Null is not zero: three kinds of missing data

When you compare two snapshots, each note falls into one of three groups. The note is in both snapshots, only in the first one, or only in the second one. Only notes in both snapshots, with the same identity, entry point and counting rule, go into a direct subtraction.

Case Example in our data What to do
In both snapshots The 8 account notes are in all three snapshots Subtract and store the result as an interval delta
Only in the first 35 absences from round 1 to round 3 in the three searches, for 32 distinct notes; note A was still readable by ID at 02:40:42, with 102 likes Do not treat it as 0 or as deleted; read it by ID again to confirm
Only in the second A new note, or a page you read for the first time Store the current reading only and leave the earlier value empty
Row present, cell empty share_count is empty in all 20 rows of the round 1 default search and of the round 3 most-liked search Keep the null; do not run fillna(0)

A note that is only in the first snapshot has several possible causes. The author deleted it. The author made it private. The filter was different.

The note fell off the page you read. In search snapshots, the last cause is the most frequent. Across our three searches, we counted 35 absences from round 1 to round 3. They cover 32 distinct notes, because 3 notes were missing from two searches.

We did not read the second page, so we cannot trace each one. We can trace note A. At 02:40:42 we read it by ID. The note was still there, with 102 likes. Absence alone does not prove that a note was deleted. It also does not reset its cumulative count to zero.

A note that is only in the second snapshot has no reliable earlier value. Show its current reading alone. Do not assume that it was zero before. Suppose the author posted a note between two snapshots, and you use zero as its earlier value. Then all of its likes since posting count as growth in your interval.

The third kind of missing data sits inside a cell. The row exists, but the value is empty. The empty share_count in the round 1 default search is an example. The pandas guide to missing data says that missing values propagate in arithmetic. So NaN minus any number gives NaN, and that is correct.

The problem starts when someone runs fillna(0) to make the table look clean. A second trap is in the join key. The pandas documentation warns that rows with a null key on both sides match each other, which is different from usual SQL behavior. Remove rows with an empty note ID before the join, or handle them on their own.

A third trap is in totals. DataFrame.sum uses skipna=True and min_count=0 by default, so the sum of an all-null column is 0. We ran .sum() with pandas 3.1.1 on the 20 null share_count values from the round 1 default search. The result was 0. It looks like "these 20 notes have 0 shares in total". With min_count=1, the result is null. When you add shares by account or keyword, pass min_count=1 or count the null rows first.

State this limit in the report. "This comparison covers the 8 notes that are in both snapshots" is more accurate than "growth of the whole account this week". Our multi-platform reputation monitoring blueprint uses the same rule. A gap in collection must not become a zero in the business numbers.

Join snapshots on the note ID and let validate check it

Titles change, and notes in one series often have similar titles. So join snapshots on the note ID. The xhs-trail README does the same. It uses the ID when it has one and falls back to title plus publish time only without one.

The script below produces every account snapshot number in this article. It runs with pandas 3.1.1 and the sqlite3 module of the Python standard library. The SQLite library on our machine is 3.53.1.

"""Store each note list as a snapshot, then compute deltas between snapshots.
Usage: uv run --with pandas python snapshot.py <snap1.json> <snap2.json> [...]"""
import json, sqlite3, sys
from datetime import datetime, timezone
import pandas as pd

METRICS = ["like_count", "collect_count", "comment_count", "share_count"]
db = sqlite3.connect("snapshots.db")
db.execute("""CREATE TABLE IF NOT EXISTS note_snapshot (
  note_id TEXT NOT NULL, source TEXT NOT NULL,
  observed_at TEXT NOT NULL,          -- time we sent the request, with offset
  posted_at TEXT, id_time TEXT,       -- platform publish time; time decoded from the ID
  like_count INT, collect_count INT, comment_count INT, share_count INT,
  UNIQUE (note_id, source, observed_at))""")

for path in sys.argv[1:]:
    run = json.load(open(path))
    observed = run["started_sgt"]                     # cut-off = request time, not import time
    source = f'{run["request"]["platform"]}/{run["request"]["action"]}'
    for r in run["response"]["results"]:
        id_time = datetime.fromtimestamp(int(r["id"][:8], 16), tz=timezone.utc).isoformat()
        db.execute("""INSERT INTO note_snapshot VALUES (?,?,?,?,?,?,?,?,?)
                      ON CONFLICT (note_id, source, observed_at) DO NOTHING""",
                   (r["id"], source, observed, r.get("posted_at"), id_time,
                    *[r.get(m) for m in METRICS]))
db.commit()

snaps = pd.read_sql("SELECT * FROM note_snapshot WHERE source = 'xiaohongshu/user_posts'", db)
times = sorted(snaps.observed_at.unique())
for a, b in zip(times, times[1:]):
    left, right = snaps[snaps.observed_at == a], snaps[snaps.observed_at == b]
    m = left.merge(right, on="note_id", how="outer", suffixes=("_a", "_b"),
                   validate="one_to_one", indicator=True)   # stop if one ID appears twice
    hours = (pd.Timestamp(b) - pd.Timestamp(a)).total_seconds() / 3600
    both = m[m._merge == "both"]
    print(f"{a} -> {b}  {hours:.2f} h  both {len(both)}  "
          f"first only {sum(m._merge == 'left_only')}  second only {sum(m._merge == 'right_only')}")
    for _, r in both.iterrows():
        d = {k: r[f"{k}_b"] - r[f"{k}_a"] for k in METRICS}   # cumulative minus cumulative = net change
        print(" ", r.note_id, d, "likes per hour", round(d["like_count"] / hours, 2))
Enter fullscreen mode Exit fullscreen mode

On the three account snapshots, the output has a header line for each interval. Here are those lines and the deltas for note H and note A. We cut the note IDs to the first 4 characters:

2026-11-15T00:28:15+08:00 -> 2026-11-15T01:30:17+08:00  1.03 h  both 8  first only 0  second only 0
  6aed… {'like_count': 5, 'collect_count': 1, 'comment_count': 10, 'share_count': 1} likes per hour 4.84
  6af7… {'like_count': 10, 'collect_count': 7, 'comment_count': 1, 'share_count': 1} likes per hour 9.67
2026-11-15T01:30:17+08:00 -> 2026-11-15T02:40:33+08:00  1.17 h  both 8  first only 0  second only 0
  6aed… {'like_count': 5, 'collect_count': 2, 'comment_count': 1, 'share_count': 0} likes per hour 4.27
  6af7… {'like_count': 7, 'collect_count': 11, 'comment_count': 0, 'share_count': 0} likes per hour 5.98
Enter fullscreen mode Exit fullscreen mode

The validate="one_to_one" check stops one problem. One note can appear twice in one snapshot, for example after a double import or after you mix two entry points in one table. A plain join then pairs 2 rows with 2 rows and gives 4. Both the sample and the growth look twice as large.

We imported the first account snapshot twice on purpose and joined it again. pandas raised a MergeError that said the merge keys are not unique in the left dataset. Without validate, each note gave 2 rows. The _merge column from indicator=True gives the three groups from the previous section.

If you use Polars join, the default validate value is m:m, which checks nothing, and null keys do not match by default. Both defaults differ from the script above, so check them again.

Store snapshots in one table with the time in the key

The table in the script has one uniqueness constraint. The note ID, the entry point and the request time together must be unique. If you import one file twice, each row of the second import hits this constraint, and ON CONFLICT ... DO NOTHING skips it.

The SQLite documentation says that UPSERT works only with UNIQUE and PRIMARY KEY constraints. So write the constraint in the table definition. A comment in your script does not protect anything.

We set observed_at to the time we sent the request, because a public count is the value at that moment. For a creator export, fill this column with the cut-off of the report, for example the end of the previous day. Put the export time and the import time in two other columns. When xhs-trail asks you to choose a data date at import, it asks for this column.

Two more details in the table definition are on purpose. First, note_id is TEXT. The SQLite page on data types says that a column declared INT or NUMERIC converts text that looks like a number. For example, the string '3.0e+5' becomes the integer 300000. A note ID is 24 hexadecimal characters, and a TEXT column keeps it as it is.

Second, the three key columns are NOT NULL. The CREATE TABLE page says that NULL values are distinct from all other values for uniqueness, including other NULLs. If observed_at could be null, you could import the same note many times and never hit the constraint. When you read the table back, the read_sql page warns that coerce_float is on by default and can round integer identifiers above 2^53. Text IDs avoid this problem.

Store every time with its offset. RFC 3339 defines a format such as 2026-11-15T00:27:17+08:00. The SQLite date functions read this ISO-8601 text and can add or subtract it. The API returns posted_at in UTC, and we log our request time in Singapore time.

Both values carry an offset, so a subtraction does not drift by 8 hours. In Python, use the zoneinfo module to change time zones. Do not add 8 hours by hand. The datetime documentation splits times into aware values, with a time zone, and naive values, without one. If you subtract a naive value from an aware one, Python raises an error.

A creator export in Excel has one more date trap. Excel has two date systems, 1900 and 1904. Microsoft's page says that one date differs by 1,462 days between the two systems. If a date column arrives as a number, check which system the workbook uses before you convert it.

Set two types at the moment you read an export into pandas. First, reading .xlsx needs openpyxl, and the latest version on November 15, 2026 is 3.1.5. The dtype parameter of read_excel can set the note ID column to string, so it never becomes a number. Second, pass utc=True when to_datetime converts a time column. The documentation says that inputs without a time zone are treated as UTC. Inputs with a time zone are converted to UTC.

So every result carries a time zone. If the export shows Beijing time without a zone, first attach Asia/Shanghai, then convert. If you pass such values straight to utc=True, they move by 8 hours.

If you move the snapshot store to DuckDB, store the request time as a TIMESTAMPTZ, the type with a time zone. If you move to PostgreSQL, its INSERT documentation uses the same ON CONFLICT ... DO NOTHING form as SQLite.

-- Net change of each note between two moments (run with SQLite 3.53.1)
SELECT a.note_id,
       b.like_count - a.like_count       AS like_delta,
       b.collect_count - a.collect_count AS collect_delta,
       round((julianday(b.observed_at) - julianday(a.observed_at)) * 24, 2) AS hours
FROM note_snapshot a
JOIN note_snapshot b
  ON a.note_id = b.note_id AND a.source = b.source
WHERE a.source = 'xiaohongshu/user_posts'
  AND a.observed_at = '2026-11-15T00:28:15+08:00'
  AND b.observed_at = '2026-11-15T02:40:33+08:00';
Enter fullscreen mode Exit fullscreen mode

This SQL gives the same deltas as the Python script, row by row. The result is in the Test 2 table. With hundreds of thousands of rows, you can move to the DuckDB AsOf join. We cite the docs for version 2.0, released on October 21, 2026. The AsOf join pairs each row with the latest observation up to a given time.

That helps when the two sides use different schedules, for example a daily creator export and hourly public counts.

The columns one snapshot table needs

Put the sections above together and you get the columns that a long-lived snapshot table needs.

Column Example What goes wrong without it
note_id 24 hexadecimal characters, stored as text (shortened to 6af7… in this article) You can join only on titles, and a renamed note splits into two
account_id Hidden in this article In a multi-account table you cannot tell which account owns a row
source xiaohongshu/user_posts Reads from different entry points share one column and create false deltas
query, sort, page Keyword, most_liked, page 1 Two searches have different sample definitions
observed_at 2026-11-15T00:28:15+08:00 A delta has no interval
exported_at, imported_at Only for creator exports Old data lands on the import date
posted_at 2026-11-14T05:01:46+00:00 Windows by note age have no start
id_time Time decoded from the first 8 ID characters You cannot see gaps from drafts or scheduled posts
Four counts 85, 85, 39, null A null becomes 0 and makes false growth

Display names, profile pictures, IP regions and note text do not help with count analysis. If you store them, you must manage them, as the section on limits below explains. You can keep the latest note title so that people can read the table. Do not use it as a join key.

How a creator export joins the same table

The tests above use public counts. A creator can load the export from the creator center into the same structure, with a few extra steps.

Start with the file name. Put the data date in the file name right after the export. xhs-trail reads a suffix such as -260512. The day of the export and the last day that the export covers are often different. With the data date in the name, nobody needs to remember it at import time.

Next, read the file. In pandas, read the note ID column as string and give the time columns a time zone. Then check for duplicate IDs. If one ID appears twice in one export, someone probably joined sheets by hand. After that check, write the rows to the snapshot table. Set observed_at to the end of the data date, and fill exported_at and imported_at with their own values.

Then map the columns. The export has Chinese column names, so map them to the English column names of the snapshot table first. Put the dashboard-only metrics, such as impressions, views and new followers, in separate columns. Do not put them in the same column as public likes and saves. You can place the dashboard likes and the public likes of one note side by side as a check. If they differ a lot, compare the cut-off times of the two sources before you decide anything.

Only then subtract. Join two exports with different data dates on the note ID. Subtract the cumulative columns, do not subtract the rolling-window columns, and record each result against its interval. The process is the same as for public counts.

Only the source column changes to "creator export".

Ratios: add first, then divide

To compare content, analysts often use a save rate or an engagement rate. Public data has no reads or impressions. So we use the ratio of saves to likes for the 8 notes of the account to show two ways to compute a ratio. In the first account snapshot (00:28:15), the 8 notes had 1,646 saves and 2,530 likes in total. Add first and divide, and you get 0.65.

Compute saves divided by likes for each note and take the mean, and you get 0.82. The gap of 0.17 has a clear source. The note with the most likes, note H with 1,409, has a ratio of only 0.48, and it carries the most weight in the sum. Note B has only 21 likes and a ratio of 1.33, and it carries the same weight as note H in the mean.

Horizontal bar chart of saves divided by likes for the 8 notes of one account, newest first: A 1.00, B 1.33, C 0.82, D 0.86, E 0.34, F 0.67, G 1.05, H 0.48. A solid teal line at 0.65 marks add first, then divide. A dashed dark grey line at 0.82 marks the mean of per-note ratios.

Method Calculation Result Question it answers
Add first, then divide 1,646 saves ÷ 2,530 likes 0.65 Saves to likes for the account as a whole
Mean of per-note ratios Saves ÷ likes for each of 8 notes, then the mean 0.82 Saves to likes for a typical note

The ratio of sums answers "what is the overall ratio of saves to likes for this account", and large notes carry more weight. The mean of ratios answers "what is the ratio for a typical note", and each note has the same weight. Note B with 21 likes then counts as much as note H with 1,409.

A report can show both, but it must not call both of them "the average save rate".

Pugongying and Juguang do not even use the same numerator for engagement. A summary by TheRedScroll on October 28, 2026 lists the tools. Pugongying divides likes plus saves plus comments by reads and leaves shares out. Juguang adds likes, saves, follows, comments and shares.

For the same note, the five-item rate is higher than the three-item rate. Write in the report which formula you use, three items or five.

What one snapshot costs

The EveryInfra Xiaohongshu API charges per call. In the catalog that we read on November 15, 2026, xiaohongshu/search, xiaohongshu/note and xiaohongshu/user_posts each cost $0.005556 per call. One user_posts call returns one page of an account's notes. Our account needed one page for all 8 notes. One search call returns one page of 20 results.

Horizontal bar chart of API fees for 3 snapshots a day over 30 days: one account with user_posts, 1 page, $0.50 (teal); one keyword, 1 search page, $0.50; 8 notes by ID, $4.00; 50 notes by ID, $25.00.

Method Requests per snapshot Cost per snapshot (USD) 3 snapshots a day for 30 days (USD)
One account, user_posts, 1 page 1 0.005556 0.50
One keyword, search, 1 page of 20 1 0.005556 0.50
8 notes by ID, note × 8 8 0.044448 4.00
50 notes by ID, note × 50 50 0.277800 25.00

All three rounds together used 14 requests. All 14 returned HTTP 200, and each response showed charged_usd of 0.005556. The total was $0.077784.

Reading each note by ID costs the most per note, so use it for a few key notes. To follow all notes of one account, page through user_posts. Impressions, views and new followers are available only in the creator's own export. No public API gives them.

What changed since September

We ran the scripts with pandas 3.1.1, the latest version on PyPI, released on November 4, 2026. The SQLite library behind Python's sqlite3 module was 3.53.1. On November 15, the SQLite release history showed 3.54.1, released on October 16, as the latest version. The table lists changes since September that affect a snapshot table.

Date Change and what it means for you
September 23, 2026 The Pugongying help center updated its notice on fake engagement. It reports 980 million fake likes and saves removed from August 22 to September 20. For you, this means that a negative difference between snapshots can be real. Keep it.
October 22, 2026 pandas 3.1.0 made read_csv two to three times faster on one thread. On November 4, pandas 3.1.1 fixed a regression: with the pyarrow back end, missing dates turned into the Unix epoch, 1970-01-01. The issue is GitHub #71743. It happens when astype or convert_dtypes(dtype_backend="pyarrow") converts to a pyarrow timestamp type. The converted result is correct, but the missing values in the original data are overwritten. For you, this means that if missing dates in your snapshot table become 1970, check your pandas version first.
November 7, 2026 Inter Milan opened official accounts on Bilibili and REDnote. The club's page gives REDnote about 350 million monthly active users and 600 million daily searches. For you, this means that more foreign brands now run REDnote accounts and need their own export and snapshot routine.

For brand teams outside China

A foreign brand that opens a REDnote account usually starts with the creator center of that account. The export from that dashboard is the only source of impressions and views for the brand's own notes. Public counts then fill the gaps. They show how competitor notes and creator notes about the brand grow over time. The two sources need separate tables. They also need separate labels in the report, because they use different counting rules.

Language is a second issue. Our English keyword "rednote analytics" returned 20 notes, and all 20 had Chinese titles or text. We cannot see how the platform matches the words, but the result is clear. If your team searches in English only, you can still get Chinese notes.

Plan for translation before you plan for counts. An English keyword can also return a different sample from the Chinese keyword with the same meaning. In our first round, the English search shared only 1 of its 20 notes with the default Chinese search. It also shared 1 note with the most-liked Chinese search.

Time zones are the third issue. A team in Europe or the Americas reads the creator export in its own time zone, while the platform cut-off follows China time. Our requests used Singapore time, which has the same offset as China time. The API returns posted_at in UTC. Write every time with its offset, and the subtraction stays correct for every office.

What snapshots cannot do

A public API does not give dashboard metrics. Impressions, views, new followers, completion rate and watch time exist only in the creator center of the account owner. For notes from other accounts, you have likes, saves, comments and shares. Do not use them to estimate views or impressions of another account.

A few hours of snapshots do not show a long-term trend. Our three rounds cover about 2.2 hours in the early morning. Daytime and evening patterns can be very different. To know whether a note still grows after two weeks, take daily snapshots for several weeks. The author of xhs-trail treats "older than 14 days and still growing" as the test for a long-tail note.

If an old note keeps growing, look at its topic and its comments again. Count changes alone do not prove which traffic source the note got.

Keep personal data to a minimum. A creator's display name, IP region and profile picture are personal information. Article 6 of the Personal Information Protection Law of China requires a clear and reasonable purpose and the smallest scope that meets it. For count analysis, the note ID and the counts are enough.

China's Regulations on Network Data Security Management, published on the CAC site in Chinese, add two duties. Article 18 covers automated tools that access or collect network data. Their users must assess the effect on the service and must not disrupt its normal operation. Article 24 says that unnecessary personal information that automated collection cannot avoid must be deleted or anonymized.

For snapshots, set the frequency by what the analysis needs. A round every few hours or once a day is enough. Drop fields such as display names and profile pictures before you store anything. If your team works from Singapore, the PDPC overview of the Personal Data Protection Act is the starting point for local duties.

For data on people in the European Union, Article 5 of the General Data Protection Regulation sets the same rule of data minimisation. The Xiaohongshu community rules forbid fake follows, likes, saves and comments made by programs, scripts or paid people. Reading public counts for analysis is a different activity, but any method that "boosts" a note breaks these rules.

Two related guides go further. Bulk Xiaohongshu comments shows how to collect all comments for a known list of notes. Sample integrity in social media research explains why each item needs its collection time. To try one call, follow the quick start and call xiaohongshu/note with your key. The Xiaohongshu API page lists all capabilities, and the Douyin API page covers the same kind of data on Douyin.

FAQ

How do I do Xiaohongshu data analysis?

First choose the question: a review of your own account, or a study of public notes from others. Then choose the source: the creator export or public counts. Take snapshots at fixed times.

For each snapshot, record the entry point, the request time and the counting rule. Join snapshots on the note ID and subtract cumulative counts to get the net change for each interval. Add before you divide for ratios. Leave missing values empty instead of writing 0.

Can I export Xiaohongshu note data?

According to the xhs-trail README, the creator center exports a note list spreadsheet for your own account. One export holds cumulative values at one moment. To see growth, you need at least two exports with different data dates. Join them on the note ID and subtract. Put the data date in the file name so the import does not file it under today.

Is there a public Xiaohongshu dataset?

We did not find an official dataset from the platform. You can build your own snapshot table from public counts with an API such as EveryInfra xiaohongshu/search and xiaohongshu/note. You can also build one from your own creator exports with a local tool such as xhs-trail, which uses the MIT license. Record the request time with each row, or the dataset cannot show change.

Is there a Xiaohongshu API for analytics?

We did not test the official open platform for this article. Pay-per-call APIs such as EveryInfra read public counts at $0.005556 per call. Our article on choosing a RedNote API compares the options. No API gives impressions or views for another account.

Why do like counts differ between search, the note page and the profile list?

In our test at 00:27–00:28 Singapore time on November 15, 2026, three entry points gave the same likes and saves for one note. The comment counts were 39 in the search, 39 in the note detail and 44 in the author list. At 02:40 we paired the note detail and the author list again and got 40 and 45. The gap was 5 both times, which suggests different counting rules, but two points cannot prove it. Store each entry point in its own column, and do not subtract one from another. Xiaohongshu's own help pages also say that Pugongying, Juguang and the app use different counting rules.

References

  1. xhs-trail: a local dashboard for Xiaohongshu note data (forum post), V2EX, read 2026-11-15, https://www.v2ex.com/t/1212145
  2. xhs-trail README, GitHub, read 2026-11-15, https://github.com/DeanThompson/xhs-trail
  3. pandas.DataFrame.merge (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.merge.html
  4. UPSERT, SQLite, read 2026-11-15, https://www.sqlite.org/lang_upsert.html
  5. A guide to Xiaohongshu creator data (secondary source, in Chinese), Zhihu, published 2025-06, https://zhuanlan.zhihu.com/p/1919524459599103778
  6. Custom brand deals FAQ (in Chinese), Xiaohongshu Pugongying help center, question 8 block updated 2026-08-19 (page header shows 2026-11-12), read 2026-11-15, https://pgy.xiaohongshu.com/help/detail?id=eb3150fa550d424459f8838a77c7e433&userType=4
  7. Report data FAQ (in Chinese), Xiaohongshu Juguang help center, read 2026-11-15, https://ad.xiaohongshu.com/api/light/help/doc/content?shortcutId=c0b80b06af593eff0d0f2680b9df6701
  8. ObjectId(), MongoDB Docs, read 2026-11-15, https://www.mongodb.com/docs/manual/reference/method/ObjectId/
  9. Keeping leading zeros and large numbers, Microsoft Learn, read 2026-11-15, https://learn.microsoft.com/en-us/office/troubleshoot/excel/long-numbers-incorrectly-in-excel
  10. pandas.DataFrame.diff (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.diff.html
  11. Notice on fake engagement enforcement (in Chinese), Xiaohongshu Pugongying help center, updated 2026-09-23, https://pgy.xiaohongshu.com/api/pgy/help/doc?shortcutId=cdf229e526f64dcf3375462b89eb63e8&role=4
  12. sqlite3 — DB-API 2.0 interface for SQLite databases, Python Docs, read 2026-11-15, https://docs.python.org/3/library/sqlite3.html
  13. polars.DataFrame.join, Polars Docs, read 2026-11-15, https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.join.html
  14. RFC 3339: Date and Time on the Internet: Timestamps, IETF / RFC Editor, published 2002-07, https://www.rfc-editor.org/rfc/rfc3339
  15. Date And Time Functions, SQLite, read 2026-11-15, https://www.sqlite.org/lang_datefunc.html
  16. zoneinfo — IANA time zone support, Python Docs, read 2026-11-15, https://docs.python.org/3/library/zoneinfo.html
  17. Date systems in Excel, Microsoft Support, read 2026-11-15, https://support.microsoft.com/en-us/office/date-systems-in-excel-e7fe7167-48a9-4b96-bb53-5612a800b487
  18. openpyxl 3.1.5, PyPI, published 2024-06-28, https://pypi.org/project/openpyxl/
  19. pandas.read_excel (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.read_excel.html
  20. pandas.to_datetime (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.to_datetime.html
  21. datetime — Basic date and time types, Python Docs, read 2026-11-15, https://docs.python.org/3/library/datetime.html
  22. Timestamp Types (2.0 docs), DuckDB, read 2026-11-15, https://duckdb.org/docs/2.0/sql/data_types/timestamp.html
  23. INSERT (PostgreSQL 18 docs), PostgreSQL, read 2026-11-15, https://www.postgresql.org/docs/current/sql-insert.html
  24. AsOf Join (2.0 docs), DuckDB, read 2026-11-15, https://duckdb.org/docs/2.0/guides/sql_features/asof_join.html
  25. Padding in China social media reports and metric differences (in Chinese), TheRedScroll, published 2026-10-28, https://www.theredscroll.com/zh/guandian/china-social-media-report-padding/
  26. EveryInfra data API catalog, EveryInfra, read 2026-11-15, https://api.everyinfra.com/api/v1/social/catalog
  27. pandas 3.1.1, PyPI, published 2026-11-04, https://pypi.org/project/pandas/
  28. Release History (3.54.1), SQLite, published 2026-10-16, https://www.sqlite.org/changes.html
  29. Announcing DuckDB 2.0.0, DuckDB, published 2026-10-21, https://duckdb.org/2026/10/21/announcing-duckdb-200.html
  30. What's new in 3.1.0, pandas, published 2026-10-22, https://pandas.pydata.org/docs/whatsnew/v3.1.0.html
  31. What's new in 3.1.1, pandas, published 2026-11-04, https://pandas.pydata.org/docs/whatsnew/v3.1.1.html
  32. BUG: astype to a pyarrow timestamp type overwrites NaT in the original data (#71743), GitHub, read 2026-11-15, https://github.com/pandas-dev/pandas/issues/71743
  33. Inter opens new official channels in China on Bilibili and REDnote, Inter, published 2026-11-07, https://www.inter.it/en/news/inter-new-official-channels-china-bilibili-rednote
  34. Personal Information Protection Law of the PRC (in Chinese), National People's Congress, published 2021-08-20, http://www.npc.gov.cn/npc/c2/c30834/202108/t20210820_313088.html
  35. Regulations on Network Data Security Management (in Chinese), Cyberspace Administration of China, published 2024-09-30, https://www.cac.gov.cn/2024-09/30/c_1729384452307680.htm
  36. PDPA Overview, PDPC Singapore, published 2023-11-03, https://www.pdpc.gov.sg/overview-of-pdpa/the-legislation/personal-data-protection-act
  37. Regulation (EU) 2016/679 (General Data Protection Regulation), EUR-Lex, published 2016-04-27, https://eur-lex.europa.eu/eli/reg/2016/679/oj
  38. Xiaohongshu community rules (in Chinese), Xiaohongshu, published 2021-12-17, https://www.xiaohongshu.com/crown/community/rules
  39. Working with missing data (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/user_guide/missing_data.html
  40. pandas.DataFrame.sum (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sum.html
  41. Datatypes In SQLite, SQLite, read 2026-11-15, https://www.sqlite.org/datatype3.html
  42. CREATE TABLE, SQLite, read 2026-11-15, https://www.sqlite.org/lang_createtable.html
  43. pandas.read_sql (3.1.1 docs), pandas, read 2026-11-15, https://pandas.pydata.org/docs/reference/api/pandas.read_sql.html

Originally published on the EveryInfra blog: Xiaohongshu Data Analysis: Measure Growth with Snapshots, Not Totals. This article was written with AI assistance; the numbers come from the API calls and sources linked above, and were checked before publishing.

EveryInfra is a pay-per-call data API for AI agents and developers: everyinfra.com.

Top comments (0)