MiniH3
EnglishTools

Xiaohongshu link to video URL

中文

POSThttps://api.minih3.dev/v1/tools/fetch-xhs-v1

This call is billed to your account. Price: $0.02 per call, charged only on success

Purpose: give a Xiaohongshu video-note share link; get a downloadable video URL plus metadata (duration, author, metrics). Billing id: minih3-tool-fetch-xhs-v1, $0.02 per call. Video notes only; an image note returns 400 not_a_video and a missing note 400 video_not_found. Neither is charged. Web links must include xsec_token (copy the full address bar).
The media_url is valid for 24 hours and goes straight into shotlist or breakdown. Charged only when the URL is returned; not-found and copy failures are free. You can paste the whole share text copied from the app; we pull the link out of it. A link from another platform returns 400 unsupported_platform naming the right endpoint.

Parameters

NameInTypeRequiredDescription
urlbodystringyes

A Xiaohongshu share link (xhslink.com or xhslink.cn short link, or xiaohongshu.com/explore/… with xsec_token) or share text

Code samples

curl -X POST "https://api.minih3.dev/v1/tools/fetch-xhs-v1" \
  -H "Authorization: Bearer $MINIH3_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "http://xhslink.com/a/AbCdEfGh"
}'

Try it

Kept in this browser tab only (sessionStorage) and sent straight to api.minih3.dev; it never reaches this site.

Enter your key to send.

Responses

200

Media URL and metadata

{
  "media_url": "https://…",
  "expires_at": 1793281040,
  "meta": {
    "platform": "xhs",
    "video_id": "6720d1a2000000001b0123ab",
    "duration_seconds": 32.8,
    "width": 720,
    "height": 1280
  }
}

400

Error

404

Error

502

Error