SerpHubAPI
In-app search

Xiaohongshu search API

You want to know what people are actually posting about a product, a place or a trend — not what a web page says about it. This API searches Xiaohongshu notes directly and returns them as structured data you can rank, filter and feed into your own product.

What you get

Example request

curl https://api.serphubapi.com/v1/search \
  -H "X-API-Key: shapi_..." \
  -H "Content-Type: application/json" \
  -d '{"engine": "xiaohongshu", "type": "notes", "q": "露营装备", "num": 10}'

Response points: meta.service is xiaohongshu/notes, meta.credits_charged is what the call cost, and results arrive under results.notes.

Price

7 credits per successful live call · about $0.007 at the Starter rate

cache_first: half price. Cache hits, failed calls and empty results: free. Paid balance never expires. Full rates are on the pricing page.

Questions

What does a call return?

Notes matching your query, each with its title, text, author and engagement counts (likes, comments, collects). Results arrive under the notes key, in the same envelope as every other SerpHubAPI service.

What does it cost?

7 credits per successful live call — about $0.007 at the Starter rate. cache_first is half price; cache hits, failed calls and empty results are free.

Can I filter by time?

Yes. time_range accepts day or week for this service; other values are not sent.

How do I start?

Sign up for 1,000 free credits, copy your key from the console, and call POST /v1/search with engine xiaohongshu and type notes.