Our own visit statistics are always on. Google Analytics, which helps us understand how people use our public pages (not your signed-in workspace), is enabled only with your permission. See our Privacy policy.

POST

API health

Status data for this API is temporarily unavailable, so its recent state is unknown. This does not mean it is down.

Read buyer reviews of a Xiaohongshu store product by its 24-character product_id, in default or newest order. Each review has full text, a 5-point rating, service and delivery ratings, helpful votes, reply count, buyer photos, review tags, the variant bought and the review date. Reviewer IDs, names and avatars are never returned. Up to 20 per page.

Price $5.56 per 1,000 requests ($0.005556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

Please help me write a data collection script with the EveryInfra Xiaohongshu Reviews endpoint (xiaohongshu/reviews).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to xiaohongshu and action to reviews, and put the parameters inside params.
- Required parameters:
  - product_id: The 24-character product ID from a product_search row's id, or a product link https://www.xiaohongshu.com/goods-detail/<ID>. A malformed ID is rejected before any charge.
- Optional parameters:
  - page_token: Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. A page holds up to 20 reviews and is one call.
  - sort: Review order: default (the store's default ranking, the same as omitting it) or newest (newest first). Keep the same value while paging. (allowed: default / newest)
- Returns a list of records. Main fields of each record: id, product_id (The product the review belongs to (revi…), text (Note body or comment text), rating, rating_scale, service_rating (The buyer's service rating out of 5 (re…), logistics_rating (The buyer's delivery rating out of 5 (r…), like_count (Like count), reply_count, images (Image links), tags (Tag list: on note, the note's topic tags), sku (The variant the buyer bought (reviews),…); 14 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=xiaohongshu.
- Example request body:
{
  "platform": "xiaohongshu",
  "action": "reviews",
  "params": {
    "product_id": "6a4629ef7d09bf0001a45876"
  }
}
- Price: $5.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesxiaohongshuPlatform identifier, fixed value.
actionbodystringYesreviewsCapability identifier, fixed value.
product_idbody.paramsstringYes-The 24-character product ID from a product_search row's id, or a product link https://www.xiaohongshu.com/goods-detail/<ID>. A malformed ID is rejected before any charge.
page_tokenbody.paramsstringNo-Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. A page holds up to 20 reviews and is one call; the last page has no next_page_token.
sortbody.paramsstring (enum)No-Review order: default (the store's default ranking, the same as omitting it) or newest (newest first). Keep the same value while paging.Allowed valuesdefaultnewest

Code samples

bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "xiaohongshu",
  "action": "reviews",
  "params": {
    "product_id": "6a4629ef7d09bf0001a45876"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

Field preview

No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.

json
{
  "id": "req_…",
  "platform": "xiaohongshu",
  "action": "reviews",
  "results": [
    {
      "id": …,
      "product_id": …,
      "text": …,
      "rating": …,
      "rating_scale": …,
      "service_rating": …,
      "logistics_rating": …,
      "like_count": …,
      "reply_count": …,
      "images": …,
      "tags": …,
      "sku": …,
      "posted_date": …,
      "next_page_token": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}

Response fields

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
product_idThe product the review belongs to (reviews), the same as the product_id in the request.
textNote body or comment text. note and hashtag return the full body; search and user_posts may return a truncated excerpt (up to about 60 and 100 characters respectively). Call note with the note ID for the full text.
ratingRating. The scale varies by platform: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards.
rating_scaleMaximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating.
service_ratingThe buyer's service rating out of 5 (reviews); absent when the buyer gave none.
logistics_ratingThe buyer's delivery rating out of 5 (reviews); absent when the buyer gave none.
like_countLike count. On note and comment results, the likes on that item; on profile, the total likes the account's notes have received. null means not public or not returned this time, not zero.
reply_countReplies, usually replies to a comment. null means not disclosed.
imagesImage links. On note, hashtag, search and user_posts, every image of the note in order. On comment results (comments, comments_batch, sub_comments), the images attached to the comment, stickers included; an empty array means none. null means this item was not returned this time.
tagsTag list: on note, the note's topic tags; on profile, the personal tags shown on the profile page (such as star sign or region); on reviews, the review tags the store attaches, such as good quality, absent when there are none. As written.
skuThe variant the buyer bought (reviews), as the product page writes it, each as name: value, several joined by a semicolon, such as color: white; size: M.
posted_dateReview date (reviews, YYYY-MM-DD, Beijing time). The store shows only text such as 06-12 or 3 days ago, which is converted to a date in Beijing time; absent when it cannot be read. Reviewer IDs, names and avatars are never returned.
next_page_tokenPage token (search, comments, sub_comments, user_posts, search_users, hashtag): pass it back unchanged as page_token, with the other parameters the same, to fetch the next page.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

Errors and billing

401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors