Mmcp.market

xiaohongshu-search-full skill

by browser-act·browser-act/skills·6.0k stars·MIT

Search Xiaohongshu (XHS / RedNote) notes by keyword with full field extraction including body text, topics/tags, image list URLs, video stream URL, publish timestamp, and all engagement stats (likes, collects, comments, shares). Supports all page filter options: sort order (general, latest, most liked, most commented, most collected), note type (image-text, video), publish time range (within 1 day, 1 week, 6 months), search scope (seen, unseen, followed), and location distance (same city, nearby). Use when user mentions search xiaohongshu notes, xhs keyword search, rednote note search, search xiaohongshu posts, scrape xhs search results, xiaohongshu note discovery, rednote content search, collect xhs notes by keyword, xiaohongshu topic search, xhs note body text, xiaohongshu video notes, xiaohongshu image notes, rednote post filter, xhs search with filters, xiaohongshu full note data, xhs note details from search, extract rednote posts, xiaohongshu content monitoring, xhs search scrape.

A100/100content scan

Is the xiaohongshu-search-full skill safe?

Clean: nothing in its files matched our rules. We read 3 files in the folder on 2026-09-28.

No findings.

Install the xiaohongshu-search-full skill

A skill is a folder. Copy it into your agent's skills folder and the agent loads it when the task matches its description.

git clone --depth 1 https://github.com/browser-act/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/solutions/social-listening/xiaohongshu-search-full ~/.claude/skills/xiaohongshu-search-full
available in every project

In the Claude apps, zip the folder and upload it from the Skills settings. The folder on GitHub

The instructions your agent would load

SKILL.md as published, without the frontmatter. Read it on GitHub

Xiaohongshu — Search Notes (Full Fields)

keyword + filters → note list with full metadata (title, body, images, video URL, tags, stats) + detail enrichment

Language

All process output to user (progress updates, process notifications) follows the user's language.

Objective

Search Xiaohongshu notes by keyword, apply page filter options, and extract the maximum available fields from both the search results list and individual note detail pages.

Prerequisites

  • Browser opened to https://www.xiaohongshu.com/search_result/?keyword={keyword}
  • User is logged in (avatar or username visible in the left sidebar)

Phase 0: Collect User Inputs

First action: check whether the search keyword is already present in the user's message.

Keyword is present (e.g., "搜索 BrowserAct", "search for AI tools", "/xiaohongshu-search-full blockchain") → use it directly, skip to Pre-execution Checks.

Keyword is NOT present → STOP. Do NOT output "ready" or proceed with any execution. Ask the user for the keyword:

  • If the AskUserQuestion tool is available → call it immediately with:
  • Question 1 (required): "请问您想在小红书上搜索什么关键词?"
  • Question 2 (optional): pages needed (default: first page only)
  • Question 3 (optional): filters — sort order, note type, publish time range
  • If AskUserQuestion is NOT available → output the following text and wait for the user's reply before doing anything else:

"请问您想搜索什么关键词?(如需指定页数或筛选条件,也可一并告知)"

Do NOT guess, infer, or assume any keyword. Wait for the user's explicit reply.

Pre-execution Checks

1. Tool Readiness

If browser-act has been confirmed available in the current session → skip this step.

Invoke browser-act via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.

2. Login Verification

If login status for Xiaohongshu has been confirmed in the current session → skip this step.

Otherwise: open https://www.xiaohongshu.com and observe the left sidebar:

  • User avatar or "Me" entry visible → logged in, continue execution
  • "Login" button visible → not logged in, inform the user that login is required, use remote-assist to let the user scan the QR code

User refuses or cannot log in → terminate execution.

Capability Components

This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the scripts/ directory, invoked via python scripts/xxx.py {params} | browser-act --session eval --stdin.

Below are all atomic capabilities discovered and verified during the exploration phase, listed by command template with parameters. Simply invoke them as needed — no need to read scripts/*.py source code or re-verify. Only inspect scripts when execution fails for troubleshooting. Combine freely as needed during execution.

DOM: extract search feeds list (preferred method)

Navigate to the search page, then read the rendered note list directly from Vue state. This is the preferred method because it reflects exactly what the page renders — including exact-match notes that the search API omits due to semantic expansion.

  1. navigate https://www.xiaohongshu.com/search_result/?keyword={keyword}
  2. wait stable
  3. (optional) Apply filters — see AI Workflow: apply filters below
  4. python scripts/extract-search-feeds.py | browser-act --session eval --stdin — retrieves all page results. Do NOT pass --keyword for a full keyword search (title + body); see AI Workflow: keyword search (title + body match) below. Pass --keyword {keyword} only when title-only pre-filtering is explicitly required.

Parameters:

  • --keyword {keyword} (optional): plain text keyword — when passed, items contains only title-matched notes and keyword_count is populated. Omit to get all rendered notes (required for body-text matching).

Output example:

{
  "total_count": 40,
  "keyword_count": 3,
  "has_more": true,
  "items": [
    {
      "id": "6a422f88000000001603cdd3",
      "xsec_token": "ABbCLyAhrP9qgixS_rCW...",
      "note_url": "https://www.xiaohongshu.com/explore/6a422f88000000001603cdd3?xsec_token=ABbCLy...%3D&xsec_source=pc_search",
      "type": "video",                           // "normal" = image-text, "video" = video note
      "title": "note title text here",
      "publish_date": "06-29",                   // human-readable date string (not exact timestamp)
      "cover_url": "http://sns-webpic-qc.xhscdn.com/...",
      "liked_count": "3",
      "collected_count": "7",
      "comment_count": "0",
      "shared_count": "0",
      "author_nickname": "author nickname here",
      "author_id": "670caaaa000000001d0239d1",
      "author_avatar": "https://sns-avatar-qc.xhscdn.com/..."
    }
  ]
}
  • total_count: all notes rendered by the page (includes semantically expanded results)
  • keywordcount: notes whose title** fuzzy-matches the keyword (Levenshtein edit distance ≤ 20% of keyword length, min 1 edit)
  • items: the fuzzy-filtered list (only notes whose title fuzzy-matches the keyword)
  • keyword_count: null means no --keyword was passed and items = all notes

Fuzzy matching details: --keyword uses Levenshtein edit distance with threshold max(1, floor(kw.length * 0.2)) per sliding window over each word in the title. This catches typos, capitalization variants (e.g., linfox → LinkFox, linxfox), and minor spelling differences within the threshold.

Note: hasmore indicates whether more pages exist. body text (desc), topics (tagList), video stream URL, and exact publish timestamp (ms) are NOT in this response — use the detail component below to obtain them. When --keyword is passed, matching is title-only (fuzzy); for title + body matching, omit --keyword and follow AI Workflow: keyword search (title + body match)** below.

Error handling: if error: true, verify wait stable completed and the page is not a login gate. Reload and retry once.

AI Workflow: keyword search (title + body match)

Run this workflow whenever a keyword is provided. It finds all notes where the keyword appears in either the title OR the body text (desc).

Step 1 — Extract all page results (no --keyword flag):

python scripts/extract-search-feeds.py | browser-act --session <name> eval --stdin

→ allitems list (totalcount items, no pre-filtering)

Step 2 — Title filter (in-memory, no extra requests):

  • titlematches = items where keyword fuzzy-matches title (use same Levenshtein threshold as --keyword: max(1, floor(len(keyword) 0.2)) edits per word, case-insensitive, exact substring first)
  • candidates = remaining items (ALL items not matched by title fuzzy match)
  • Inform user: "Found {len(title_matches)} title match(es). Checking body text of {len(candidates)} candidates..."
  • CRITICAL: When titlematches == 0, do NOT stop. Zero title matches means body-text checking is MORE important, not less — the keyword may appear only in the body. Proceed to Step 3 unconditionally unless totalcount == 0.

Step 3 — Body-text check (detail page per candidate, skip only if candidates is empty): For each item in candidates:

  1. browser-act --session navigate https://www.xiaohongshu.com/explore/{id}?xsectoken={xsectoken}&xsecsource=pcsearch
  2. browser-act --session wait stable
  3. python scripts/extract-note-detail.py {id} | browser-act --session eval --stdin
  4. If keyword fuzzy-matches (case-insensitive, same Levenshtein threshold) in desc → add to body_matches
  5. Wait 2–3 seconds before next request.

Step 4 — Report:

  • finalresults = titlematches + body_matches (in original page order, deduplicated by id)
  • Inform user: "{len(titlematches)} title match(es) + {len(bodymatches)} body-only match(es) = {total} notes containing '{keyword}' (from {total_count} page results)"
  • Clearly label each result: matchtype: "title" or matchtype: "body"

Edge cases:

  • titlematches == 0 AND bodymatches == 0 → inform user: no notes found containing {keyword} in title or body text; suggest checking login status or trying a different keyword
  • total_count == 0 → inform user: no results at all; suggest checking login or trying a different keyword

Network Capture: search notes list (fallback method)

Use as fallback only when the DOM feeds extraction above fails. Navigate to the search page and read results from the so.xiaohongshu.com API response captured in browser traffic.

Important limitation: the search API applies semantic expansion — for niche or brand-specific keywords, exact-match notes may be absent or pushed to later pages in the API response even when they appear prominently in the rendered page. Always prefer the DOM feeds method above.

  1. navigate https://www.xiaohongshu.com/search_result/?keyword={keyword}
  2. wait stable
  3. (optional) Apply filters — see AI Workflow: apply filters below
  4. network requests --type xhr,fetch --filter so.xiaohongshu
  5. Identify the request with URL containing /api/sns/web/v2/search/notes
  6. network request
  7. Parse responsebody JSON — field paths: data.items[n].id, data.items[n].xsectoken, data.items[n].notecard.displaytitle, data.items[n].notecard.interactinfo.*

Note: data.has_more indicates whether more pages exist.

Error handling: If no request matching /api/sns/web/v2/search/notes is found, check that wait stable completed and the page is a search result page (not a login gate). Reload the page and retry once.

DOM: extract note detail (body, topics, video URL, exact timestamp)

Navigate to the note detail page and extract enriched fields from the Vue SSR state:

  1. navigate https://www.xiaohongshu.com/explore/{noteid}?xsectoken={xsectoken}&xsecsource=pc_search
  2. wait stable
  3. python scripts/extract-note-detail.py {note_id} | browser-act --session eval --stdin

More skills from browser-act/skills

  • A1688-product-detailExtracts comprehensive wholesale product data from 1688.com product detail pages: title, tiered pricing, SKU variants with dimensions/weight, product images, seller info, shop scores, buyer protection, cross-border flags, product attributes, coupon/promotion data, and review stats. Use when user mentions 1688, 1688.com, wholesale China, alibaba wholesale, B2B China sourcing, Chinese wholesale scraper, 1688 product scrape, 1688 offer, 1688 detail, extract 1688 data, pull 1688 listings, get wholesale price, 1688 supplier info, factory stats 1688, 1688 SKU variants, 1688 product attributes, 1688 shop score, DSR score 1688, 1688 buyer protection, 1688 cross-border, 1688 dropship. Also applies to: scraping bulk product data from 1688 by offer ID list, monitoring 1688 supplier metrics, extracting 1688 pricing tiers for resale analysis.
  • Aairbnb-listing-detailFetches complete Airbnb listing details for a given numeric listing ID via the internal GraphQL API, returning title, room type, description, amenities, photos, coordinates, city, house rules, highlights, ratings, review count, bedroom configuration, and property overview. Use when user mentions Airbnb listing details, Airbnb property info, Airbnb room details, get Airbnb listing data, Airbnb amenities list, Airbnb house rules, Airbnb property description, Airbnb detail page scraper, Airbnb rooms detail, Airbnb property page data, Airbnb listing info, fetch Airbnb room details, pull Airbnb listing.
  • Aairbnb-search-listingExtracts Airbnb accommodation search results from a destination query via SSR-embedded data, returning listing ID, URL, name, coordinates, rating, price, photos, and badge info for each result, plus pagination cursors for multi-page retrieval. Use when user mentions Airbnb search results, Airbnb listings, vacation rental search, short-term rental listings, scrape Airbnb, get Airbnb data, find rentals on Airbnb, Airbnb destination search, Airbnb property list, Airbnb stays search, Airbnb accommodation results, pull Airbnb listings, collect Airbnb search data, Airbnb scraper, Airbnb search page extraction, Airbnb search by destination.
  • Aamazon-alexa-qaAmazon Alexa for Shopping Q&A automation: submits questions to Amazon's Alexa/Rufus AI shopping assistant and collects response text; supports optional keyword search context (navigate to search results page before asking for category-specific answers). Use when user mentions Amazon Alexa, Rufus, Amazon shopping assistant, Amazon AI chat, ask Amazon, Amazon Q&A, automate Alexa questions, Rufus chatbot, Amazon assistant automation, collect Alexa responses, bulk question submission to Amazon, keyword search context, category research. Also applies to extracting Amazon product recommendations from conversational AI, automating repeated queries to Amazon's AI shopping feature, collecting Alexa shopping responses at scale, or market research within a specific product category.
  • Aamazon-asin-lookup-api-skillThis skill helps users extract structured product details from Amazon using a specific ASIN (Amazon Standard Identification Number). Use this skill when the user asks to get Amazon product details by ASIN, lookup Amazon product title and price using ASIN, extract Amazon product ratings and reviews count for a specific ASIN, check Amazon product availability and current price, get Amazon product description and features via ASIN, enrich product catalog with Amazon data using ASIN, monitor Amazon product price changes for specific ASINs, retrieve Amazon product brand and material information, fetch Amazon product images and specifications by ASIN, validate Amazon ASIN and get product metadata.
  • Aamazon-best-selling-products-finder-api-skillThis skill helps users extract structured best-selling product data from Amazon via the BrowserAct API. Agent should proactively apply this skill when users express needs like search for best selling products on Amazon, extract Amazon product data based on keywords, find top rated Amazon products, monitor Amazon competitor prices and sales, discover trending products on Amazon marketplace, extract Amazon product titles prices and ratings, gather Amazon product sales volume for market research, search Amazon best sellers in specific region, collect Amazon product reviews and promotion details, analyze Amazon product availability and badges, get Amazon product data for market analysis.
  • Aamazon-bestseller-listingAmazon Best Sellers listing scraper: extract product cards from any Amazon Best Sellers (zgbs) or /gp/bestsellers/ category page — returns rank (position on chart), asin, title, url, image, imageAlt, price, stars, reviewCount, ratingRaw per item, plus category metadata (categoryName, categoryFullName, categoryUrl) and pagination state (currentPage, hasNextPage, nextPageUrl). Works across all Amazon regional TLDs (amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.fr, amazon.it, amazon.es, amazon.ca, amazon.com.au, amazon.in, etc.). Use when user mentions Amazon Best Sellers, Amazon bestsellers, Amazon top 100, Amazon zgbs, Amazon /zgbs/, Amazon /gp/bestsellers/, Amazon Best Sellers Rank, Amazon BSR, Amazon top ranked products, Amazon top-selling products, Amazon chart, Amazon category ranking, Amazon best sellers by category, Amazon best sellers electronics, Amazon best sellers kitchen, Amazon best sellers toys, scrape Amazon bestsellers, extract Amazon top 100, Amazon rank scraper, Amazon best seller list, Amazon leaderboard, Amazon trending products, discover trending Amazon products, Amazon niche discovery, Amazon top ranked ASINs. Also applies to competitive intelligence via ranking snapshots, spotting up-and-coming products, sourcing bestseller ASINs for further enrichment, tracking rank changes over time, and building bestseller-per-category datasets.
  • Aamazon-buy-box-monitor-api-skillThis skill helps users extract basic product details other sellers prices and seller ratings from Amazon via ASIN automatically using the BrowserAct API. Agent should proactively apply this skill when users express needs like query Amazon buy box information, monitor Amazon product prices, extract Amazon product details by ASIN, check other sellers prices on Amazon, get Amazon seller ratings and feedback count, monitor buy box ownership for a specific ASIN, track Amazon fulfillment methods for competitors, compare Amazon product prices across different sellers, retrieve Amazon buy box availability status, analyze Amazon seller profile details.
  • Aamazon-competitor-analyzerScrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.
  • Aamazon-listing-competitor-analysis-skillThis skill helps users analyze Amazon competitor listings by ASIN and produce structured competitive intelligence plus strategic opportunity points for their own go-to-market. The Agent should proactively apply this skill when users want to analyze a competitor Amazon listing by ASIN, understand what a top-ranked product does right in content keywords or visuals, find market gaps and unmet buyer needs, turn competitor research into opportunity maps for their brand, identify keyword placement patterns on rival listings, extract SEO insights from Amazon product pages, reverse-engineer competitor bullet and title strategies, mine competitor reviews for buyer psychology, compare seller and A plus content patterns, run gap analysis before launching a new SKU, research why a listing wins conversion signals, synthesize whitespace you can own versus the diagnosed listing, or say just look at this ASIN with a competitive or optimization angle.
  • Aamazon-product-api-skillThis skill helps users extract structured product listings from Amazon, including titles, ASINs, prices, ratings, and specifications. Use this skill when users want to search for products on Amazon, find the best selling brand products, track price changes for items, get a list of categories with high ratings, compare different brand products on Amazon, extract Amazon product data for market research, look for products in a specific language or marketplace, analyze competitor pricing for keywords, find featured products for search terms, get technical specifications like material or color for product lists.
  • Aamazon-product-detailAmazon product detail page scraper: extract full product data from any open Amazon product detail URL (any /dp/{asin} or /gp/product/{asin} page across all Amazon regional TLDs) — returns asin, url, title, brand, price, listPrice, stars, reviewsCount, starsBreakdown (5/4/3/2/1 star percentages), answeredQuestions, inStock, inStockText, delivery, fastestDelivery, returnPolicy, breadCrumbs, features (bullet points), description, bookDescription, thumbnailImage, highResolutionImages, galleryThumbnails, productOverview (Brand/Model/etc.), attributes (tech spec table), attributesMapped (flat key-value), bestsellerRanks (rank + category + url), variantAttributes (currently selected color/size/style), variantAsins, seller (name + id + url), isAmazonChoice, amazonChoiceText, monthlyPurchaseVolume, hasAPlusContent, hasBrandStory, aiReviewsSummary, reviewsLink, productPageReviews (sample), videosCount, locationText, loadedCountryCode. Works on amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.fr, amazon.it, amazon.es, amazon.ca, amazon.com.au, amazon.in, amazon.com.mx, amazon.com.br, amazon.nl, amazon.se, amazon.sg, amazon.ae, amazon.sa, amazon.pl, amazon.tr, amazon.eg. Use when user mentions Amazon product page, Amazon /dp/, Amazon dp URL, Amazon ASIN scraper, Amazon product detail, Amazon PDP, Amazon product data, Amazon product info, Amazon product fields, Amazon product attributes, Amazon full field extraction, Amazon per-ASIN enrichment, Amazon rating breakdown, Amazon stars breakdown, Amazon bestseller rank, Amazon BSR, Amazon variants, Amazon variant ASINs, Amazon color size options, Amazon feature bullets, Amazon A+ content, Amazon brand story, Amazon AI review summary, Amazon bought in past month, Amazon monthly sales volume, Amazon Amazon's Choice badge, Amazon seller info, scrape Amazon product, enrich Amazon ASIN, Amazon ASIN details, Amazon product review data. Also applies to bulk ASIN enrichment from a list of URLs, competitive product research, brand catalog audits, price and stock monitoring per ASIN, and building a normalized product dataset from a list of Amazon URLs.

All agent skills → · MCP servers