Logo
News

XHS Analytics API: Automating Data Collection From Xiaohongshu

Date Published

Table Of Contents

What Is an XHS Analytics API — and Why Does It Matter?

The Two Paths to Xiaohongshu Data: Official APIs vs. Third-Party Solutions

Official Xiaohongshu API Access: What Brands Need to Know

Third-Party XHS Analytics APIs and Scraping Tools

What Data Can You Actually Collect From Xiaohongshu?

Key Use Cases for Automated XHS Data Collection

Compliance and Data Privacy: What International Brands Must Understand

Building Your XHS Data Strategy: Practical Next Steps

Automating Data Collection on Xiaohongshu: What International Brands Need to Know

If your brand is marketing on Xiaohongshu — or planning to — you already know that manual data collection doesn't scale. Manually checking post performance, copying engagement numbers into spreadsheets, and piecing together influencer reports across dozens of KOL campaigns is time-consuming, error-prone, and frankly inadequate for any brand taking China seriously.

This is where XHS analytics APIs come in. By connecting your systems directly to Xiaohongshu's data ecosystem — whether through official API channels or third-party programmatic tools — marketing and data teams can automate the collection of performance metrics, audience insights, content trends, and creator data at scale. The result is faster decisions, more consistent reporting, and a genuine competitive edge in one of the world's most complex social commerce environments.

But Xiaohongshu's data infrastructure is not like Instagram's or TikTok's. Access is more restricted, documentation is primarily in Mandarin, and the landscape of legitimate tools looks very different from what most Western marketing teams are used to. This guide walks through everything international brands need to understand — from official API access and third-party solutions to the data types available and the compliance considerations you can't afford to ignore.

What Is an XHS Analytics API — and Why Does It Matter? {#what-is-xhs-analytics-api}

An XHS analytics API (Application Programming Interface) is a programmatic connection point that allows external systems to request and receive data from Xiaohongshu's platform. Rather than logging in manually to pull reports, an API lets your dashboard, data warehouse, or marketing automation tool query information directly — on a schedule, in bulk, and in a structured format your systems can actually use.

For international brands on Xiaohongshu, this capability matters enormously. The platform generates rich behavioral data across every piece of content: how many users saved a note, how they discovered it, which demographics engaged most, and how performance trended over time. Without programmatic access to that data, brands are limited to what they can read off the screen — a fraction of the intelligence available. With API-driven collection, teams can build custom dashboards, automate KOL performance tracking, monitor brand mentions in real time, and feed Xiaohongshu data into broader multi-market reporting frameworks.

There is also a strategic dimension worth emphasizing. Xiaohongshu's algorithm is driven by engagement quality — saves, comments, shares, and follows carry more weight than raw views. Understanding which content signals are performing across your account and your competitors' requires consistent, granular data over time. That kind of longitudinal intelligence is only realistically achievable through automated collection. If you're working with expert Xiaohongshu marketing services or building an in-house capability, a solid data pipeline is the foundation everything else sits on.

---

The Two Paths to Xiaohongshu Data: Official APIs vs. Third-Party Solutions {#two-paths-to-xhs-data}

One of the most important — and most frequently misunderstood — decisions brands face is which type of data access to pursue. There are two fundamentally different pathways, and they suit different organizational profiles, timelines, and data needs.

Official Xiaohongshu APIs are access credentials granted directly by the platform to verified businesses, certified technology partners, and enterprise brands. These are the "keys to the kingdom" in terms of data accuracy and depth, but they come with a significant application process, platform relationship requirements, and ongoing compliance obligations. Official API access gives you first-party data: your own account analytics, content performance, audience demographics, and — for partner-tier integrations — broader platform data.

Third-party programmatic tools and scrapers represent the alternative path. These are services built by external vendors — ranging from established marketing technology platforms to specialized data providers — that extract publicly available Xiaohongshu data programmatically, without requiring official API credentials. They're faster to activate, often require no Chinese business entity, and can cover use cases like competitive monitoring and trend research that official APIs may not support for all tiers. The trade-off is that they rely on public data, may carry legal and terms-of-service risks, and are subject to platform changes that can disrupt data continuity.

For most international brands entering Xiaohongshu, the practical starting point is a combination of both: using the platform's built-in analytics tools and a verified third-party analytics partner for owned-channel reporting, while exploring official API access as your presence matures and data requirements grow more sophisticated.

---

Official Xiaohongshu API Access: What Brands Need to Know {#official-api-access}

Xiaohongshu's official API ecosystem is structured into tiers based on organizational type and use case. At the brand level, verified business accounts (often identified by a Blue V badge) receive access to analytics and management features through the platform's official infrastructure. At the partner and enterprise level, more comprehensive API access can be requested through Xiaohongshu's brand partnership program.

The application process is notably more involved than Western platforms. It typically requires a verified Xiaohongshu brand presence with established posting history, business documentation (which for international brands often means working through a Chinese entity or registered local partner), detailed use-case specifications, and a technical review by Xiaohongshu's team. The end-to-end process generally takes several weeks, and documentation is predominantly maintained in Mandarin — a meaningful barrier for teams without Chinese-language capability.

Authentication follows an OAuth 2.0 framework with platform-specific modifications. Access tokens are issued for defined periods and must be refreshed automatically; requests are signed using HMAC-SHA256 to verify origin and prevent replay attacks. Server-side credential management is non-negotiable — client-side exposure of API secrets is a significant security and compliance risk. For enterprise implementations managing multiple brand accounts or client portfolios, credential isolation between accounts is an architectural requirement, not just a best practice.

API tiers determine what data you can access and at what granularity. Brand-level integrations typically cover your own account performance data: post-level metrics such as views, likes, saves, comments, and shares; account-level statistics like follower growth and engagement rates; and audience demographics including age distribution, gender ratios, and geographic data. Partner-level access may extend to content discovery, trend data, and broader ecosystem intelligence. Rate limits vary by tier and endpoint, and Xiaohongshu enforces them strictly — well-designed integrations monitor quota consumption actively and implement intelligent queuing to avoid service interruptions.

For brands who find the official access process prohibitive in the short term, Xiaohongshu's native Creator Centre provides meaningful analytics directly within the app at no cost. It tracks engagement rates, follower growth, and content performance, and includes account health monitoring features. This is a sensible baseline while official API access is being pursued.

---

Third-Party XHS Analytics APIs and Scraping Tools {#third-party-tools}

For international brands that need data access faster than the official application process allows — or who need data types that official APIs don't provide at their access tier — the third-party ecosystem offers a range of options worth knowing.

XinHong Data is one of the most reputable third-party analytics tools specifically built for Xiaohongshu. It is owned by Newrank China and is verified by Xiaohongshu as an official platform partner, giving it a level of legitimacy that sets it apart from generic scrapers. It provides trend data, content performance insights, and creator analytics, and is widely used by brands and agencies operating in the China market. The limitation for international teams is that the tool is primarily in Chinese and requires a Chinese payment method to subscribe — again highlighting why working with a local partner or agency often makes practical sense.

Pugongying (蒲公英) is Xiaohongshu's official creator marketplace, and it provides structured data on KOL profiles, audience demographics, pricing, and campaign performance for brands running influencer collaborations through official channels. Third-party tools have been built on top of this data, enabling brands to pull creator demographics, ROI metrics, follower growth trends, and content performance into their own systems without manual extraction. When influencer campaigns run through Pugongying, the data trail becomes a powerful retargeting and attribution asset.

Beyond these XHS-native platforms, there are broader programmatic data solutions — including tools hosted on platforms like Apify — that can extract publicly available Xiaohongshu content: note titles, engagement counts, hashtags, creator profiles, and comment data. These tools can return structured data across keyword searches, topic feeds, trending content, and user profiles, and can export to JSON, CSV, or Excel for integration with your existing stack.

However, brands using third-party scraping tools need to operate with their eyes open. These solutions rely on public-facing platform data and do not have official API agreements with Xiaohongshu. Platform changes can break integrations without warning, and terms-of-service implications require careful legal review. Compliance obligations — including China's PIPL and any applicable regulations in your home jurisdiction — remain the brand's responsibility regardless of which vendor facilitates the data collection.

---

What Data Can You Actually Collect From Xiaohongshu? {#what-data-to-collect}

Understanding what data is available — and at what level of access — helps brands build realistic data strategies rather than overengineering pipelines for data they cannot actually obtain. Here is a practical breakdown of what automated collection can yield:

Content Performance Metrics are the most commonly sought data type and are accessible through both official brand APIs and most third-party tools. These include view counts, likes, saves (collects), comments, and shares at the individual note level. Saves are a particularly important signal on Xiaohongshu, as they indicate genuine purchase intent rather than passive consumption.

Account-Level Analytics cover follower counts and growth trajectories, aggregate engagement rates, reach statistics, and posting frequency data. Official brand APIs provide your own account data; third-party tools can approximate competitor account data based on publicly visible metrics.

Audience Demographics — age distribution, gender breakdown, geographic location — are accessible through official API integrations and through tools like Pugongying for creator-audience profiling. This data is invaluable for validating whether a KOL's audience actually matches your target consumer.

Content Discovery and Trend Data covers keyword search performance, trending hashtags, topic feed activity, and emerging content themes. This is primarily accessible through third-party tools and is critical for brands developing content strategy and keyword-optimized notes on the platform.

Creator and KOL Intelligence encompasses follower demographics, content category tags, engagement rates, pricing benchmarks, and historical performance. Pugongying-sourced tools provide structured access to this data at scale, enabling systematic influencer vetting rather than ad hoc research.

For brands developing industry-specific Xiaohongshu strategies, this data landscape looks different depending on the vertical. A beauty brand prioritizing KOL discovery needs robust creator data pipelines; a fashion brand tracking campaign performance needs post-level metrics tied to specific content pushes; an F&B brand monitoring brand sentiment needs comment and keyword monitoring at scale.

---

Key Use Cases for Automated XHS Data Collection {#use-cases}

Knowing that data automation is possible is one thing; knowing where it creates the most value for your team is another. The following use cases represent where international brands consistently see the highest return from investing in XHS API infrastructure.

Campaign Performance Reporting is the most immediate use case. Rather than manually compiling KPI decks after every influencer activation, automated data collection pulls post-level metrics across all campaign content — owned and earned — into a single reporting framework. This accelerates reporting cycles, reduces manual error, and creates a consistent methodology across campaigns that allows genuine performance comparison over time.

KOL Vetting and Ongoing Monitoring is where data automation genuinely changes the quality of influencer marketing decisions. Pre-campaign, structured creator data enables systematic screening at scale — filtering creators by audience demographics, engagement rate, content category, and historical performance rather than relying on manually assembled shortlists. Post-campaign, automated performance tracking captures the full engagement lifecycle of a KOL's content, not just the initial 24-hour spike.

Competitive Intelligence is a use case that many brands underinvest in. Third-party tools can monitor competitor brand accounts and track how content in your category is performing — which formats, topics, and creators are generating outsized saves and engagement. This kind of systematic competitive monitoring informs content strategy decisions with evidence rather than intuition.

Social Listening and Brand Monitoring allows brands to track mentions, sentiment, and consumer discourse around their products and category. Comment data extracted at scale, combined with keyword monitoring, surfaces UGC trends, emerging consumer concerns, and product feedback loops that would be invisible to manual monitoring.

Historical Data Warehousing is the long game. Building a structured database of historical Xiaohongshu performance data — content metrics, audience growth, trend signals — creates an intelligence asset that compounds over time. Seasonal patterns, algorithm shifts, and audience behavior changes become visible across months of consistent data, supporting forecasting and strategic planning in ways that platform dashboards simply cannot.

For brands working with AllXHS's free Xiaohongshu resources, the data frameworks and industry reports available can help contextualize the benchmarks your automated pipelines should be tracking against.

---

Compliance and Data Privacy: What International Brands Must Understand {#compliance}

Data privacy compliance is not optional, and the regulatory environment around Xiaohongshu data is genuinely complex for international brands. Two frameworks demand attention.

China's Personal Information Protection Law (PIPL), implemented in 2021, is China's comprehensive data privacy regulation. Its obligations extend beyond China's borders — if you are collecting data about Chinese users (which any brand scraping Xiaohongshu content technically is), PIPL applies to you regardless of where your organization is based. Key requirements include limiting data collection to what is necessary for stated business purposes, implementing appropriate security measures, and establishing lawful mechanisms for cross-border data transfers. Brands storing Xiaohongshu-sourced data on servers outside China need to understand their obligations under these cross-border transfer provisions.

Xiaohongshu's own Terms of Service and Community Guidelines add a platform-level compliance layer. Published content accessed through any API or scraping mechanism must be handled in accordance with the platform's terms, and any content published programmatically must go through appropriate content review processes before publication. Content that is acceptable in other markets may violate Chinese content regulations — politically sensitive material, misleading advertising claims, and certain lifestyle content categories are subject to strict platform moderation, and automated publishing workflows that bypass human review create real risk of account suspension.

For brands operating across multiple markets, maintaining Xiaohongshu-specific content approval workflows is non-negotiable. Automated data collection should also apply data minimization principles — collecting only what you actually need for defined business purposes, not building comprehensive data stores that exceed operational requirements. Given the evolving nature of China's regulatory environment, building compliance review into your data strategy from the start is far less costly than retrofitting it later.

---

Building Your XHS Data Strategy: Practical Next Steps {#data-strategy}

For most international brands, building a robust XHS analytics and automation capability is an iterative process rather than a single technical project. The starting point should match your current maturity level on the platform.

If you are in the early stages of your Xiaohongshu presence, focus first on maximizing what native tools provide: the Creator Centre for owned-account analytics, Pugongying for KOL research and campaign tracking, and verified third-party tools like XinHong Data for trend intelligence. These provide a meaningful data foundation without the complexity of a full API integration project.

As your presence and data needs mature, pursue official Brand API access through Xiaohongshu's partnership channels — ideally with support from a partner who has existing platform relationships and Chinese-language capability to navigate the process. Build your integration architecture around abstraction layers that centralize rate limit management, error handling, and credential rotation, making the integration resilient to the platform changes that are an inevitable feature of operating on any Chinese digital platform.

At scale, invest in a data warehouse that stores historical Xiaohongshu metrics alongside data from other channels. The real strategic value of XHS data automation is not in any single campaign report — it is in the accumulated intelligence that allows you to understand how your brand is performing in China's social commerce ecosystem over time, and to make investment decisions grounded in evidence.

The technical complexity of Xiaohongshu's API landscape is real, but it should not be a barrier. International brands that approach data collection strategically — starting with the right tools, building toward official access, and maintaining compliance discipline from day one — develop a genuine competitive advantage in one of the world's highest-value consumer markets. AllXHS's suite of industry-specific resources and expert consultation is designed to support exactly this kind of structured, intelligence-driven approach to Xiaohongshu marketing.

Getting Data-Driven on Xiaohongshu Starts With the Right Foundation

Automating data collection from Xiaohongshu is not just a technical upgrade — it is a strategic shift in how your brand understands and responds to one of the world's most dynamic social commerce platforms. Whether you are tracking KOL campaign performance, monitoring brand sentiment, benchmarking against competitors, or building longitudinal audience intelligence, a well-designed XHS analytics API strategy gives your team the data it needs to make faster, better decisions.

The path looks different depending on where your brand is in its Xiaohongshu journey. Early-stage brands can start with native tools and verified third-party platforms; established brands should be actively pursuing official API access and building durable data infrastructure. What matters most is that data collection is intentional, compliant, and structured to answer the questions that actually drive your marketing decisions — not just the ones that are easiest to pull from a dashboard.

---

Ready to Build a Smarter Xiaohongshu Data Strategy?

AllXHS is the #1 English-language resource hub for international brands marketing on Xiaohongshu. Whether you need expert guidance on setting up your data infrastructure, industry-specific performance benchmarks, or hands-on support navigating the platform's API ecosystem, our team is here to help.

**Get in touch with our Xiaohongshu experts today →**

Or explore our free Xiaohongshu resources and industry-specific marketing strategies to start building your data-driven China marketing foundation.