Overview

Manually collecting and tracking Xiaohongshu post data is tedious and error-prone. This automation scrapes specified post URLs, extracts key content and interaction metrics, then writes structured rows into a Google Sheet—eliminating manual copy-paste and enabling scalable, accurate data aggregation.

The Impact

  • Automate data collection. Batch-scrape multiple Xiaohongshu posts without manual intervention.
  • Ensure data accuracy. Extract structured fields like title, author, and interaction counts reliably.
  • Centralize reporting. Append or update rows in Google Sheets for seamless analysis.
  • Throttle requests. Insert delays to avoid API rate limits and ensure smooth operation.

Who This Is For

  • Content Operations Teams managing batch aggregation of social media posts for reporting.
  • Data Analysts monitoring campaign KPIs through daily interaction data scraping.
  • Brand Managers tracking competitors’ or influencers’ post performance over time.
  • Social Media Strategists automating trend analysis from Xiaohongshu content metrics.

How It Works

1
  1. Iterate URLs
  2. Loop through each Xiaohongshu post URL provided in the input list.
2
  1. Fetch Post Data
  2. Send authenticated GET requests using the ApiToken to retrieve raw JSON data for each post.
3
  1. Extract and Parse Fields
  2. Parse JSON to extract title, description, publication time, location, author nickname, and interaction metrics.
4
  1. Write to Google Sheets
  2. Append or update the extracted data as a new row in the specified Google Sheet using authorized credentials.
5
  1. Throttle Requests
  2. Insert a delay after each write operation to prevent API rate limit issues and ensure stable workflow execution.

What You'll Need

Before using this template, make sure you have:

  • A list of valid Xiaohongshu post URLs to scrape (one full URL per line).
    Google Sheets spreadsheet created with a target worksheet containing headers: Post Title, Body Summary, Publication Time, Location, Author's Nickname, Collects, Comments, Likes, Shares.
    Google OAuth credentials configured for write access to your Google Sheets.
    A valid ApiToken for Xiaohongshu API access, obtained from your API provider or third-party scraping service.
    Spreadsheet ID and target SheetName identified from your Google Sheets setup.

How to Use

  1. Step 1. Prepare URLs
  2. Compile the full list of Xiaohongshu post URLs you want to scrape.

  3. Step 2. Set Up Google Sheet
  4. Create or confirm your Google Sheet and worksheet with the required headers in the correct order.

  5. Step 3. Configure Credentials
  6. Ensure Google OAuth credentials are set up to authorize writing to your spreadsheet.

  7. Step 4. Input Parameters
  8. Fill in your ApiToken, list of RedBookUrls, SpreadsheetId, and SheetName into the workflow inputs.

  9. Step 5. Execute and Verify
  10. Run the workflow and verify that extracted post data is appended correctly to your Google Sheet.

FAQs

How does the workflow handle multiple post URLs?
It loops through each URL in the RedBookUrl list, processing posts one by one with throttling delays to avoid overloading the API.
What data fields are extracted from each Xiaohongshu post?
Title, body summary, publication time, location, author nickname, and interaction metrics including collects, comments, likes, and shares.
How does the workflow ensure it does not exceed API rate limits?
A delay of 1 second is inserted after each data write to Google Sheets, spacing out requests to the Xiaohongshu API.
Can this workflow update existing rows or only append new data?
It supports both appending new rows and updating existing ones based on the configured logic in the Google Sheets integration node.
Was This Page Helpful?

More Workflows for Inspiration

🔍
Fetch and Send Product Hunt Latest Products to Slack
Automatically fetch latest Product Hunt entries and push summaries directly to Slack channels.
Learn more >
📧
Fetch Latest Emails and Send to Slack
Automatically retrieve recent emails and broadcast their content in Slack channels for faster team response.
Learn more >
💬
Multi-model Intelligent Customer Service Assistant
Automate polite, solution-driven customer replies with layered model fallback for quality and cost control.
Learn more >