小红书解析

解析小红书视频/图集(live)

API 文档

  • 接口地址: https://apicx.asia/api/xhs
  • 返回格式: JOSN
  • 请求方式: GET
  • 请求示例: https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N

请求参数说明:

名称 必填 类型 说明
token string 登录获取token
urlstring请输入要解析的小红书分享链接

返回参数说明:

名称 类型 说明
code integer 返回的状态码
data object 返回的数据/数据对象
msg string 返回的消息
time string 请求时间
data.note_info.titlestringtitle
data.note_info.descstringdesc
data.note_info.userIdstringuserId
data.note_info.nicknamestringnickname
data.note_info.avatarstringavatar
data.note_info.user_xsecTokenstringuser_xsecToken
data.note_info.noteIdstringnoteId
data.images[]stringimages
data.videos[]array空数组

返回示例:

{
  "code": 200,
  "msg": "笔记信息提取成功",
  "time": "2025-12-01 12:31:15",
  "api_source": "API官网:apicx.asia",
  "data": {
    "note_info": {
      "title": "奔三|高阶美貌的尽头是打造顶级轮廓感",
      "desc": "#变美思路#皮贴骨#面部刮痧#面部提升#麦角硫因 如何打造顶级轮廓感? 美人在骨不在皮,骨相才是撑起高级脸的关键,分享照片被夸轮廓清晰+皮肤紧致不臃肿,不要以为全是先天大多都是靠后天逆袭,今天分享我通过饮食、内调、护肤等,掌握皮贴骨美学的小tips!尤其年龄增长真的很容易挂不住肉垮脸,胶原蛋白流失、面部肌肉松弛、脂肪移位,更要长期坚持 🧖♀️3步面部轮廓清晰法 1️⃣肩颈训练:含胸驼背会导致头部前倾,面部肌肉松弛,Mooki瑜伽,范李猿的肩颈自救 2️⃣小动作:时不时的抬头看天花板,舌头顶上颚,嘟嘴,小细节打开美颜开关 3️⃣面部刮痧:日式筋膜手法,双手握拳抵住颧骨下缘,向上推至太阳穴(对抗苹果肌下滑);拇指按压耳后沿下颌骨滑至下巴(收紧下颌);刮痧板+精华油每周2次,皮肉贴合飙升! … 🥬饮食调整(简化版) 1.早起一杯温水,促进代谢;夜间不喝水 2.减脂维持面部轮廓感,不提倡节食,液断,蛋断,主打的就是饮食均衡化,充足蛋白质可以增加饱腹感,维持肌肉量,避免减脂后面部松弛 3.午餐是一拳主食,一拳肉类,一拳蔬菜 4.晚饭在下午5点之前吃完,一拳蔬菜,一拳肉类,不吃主食 5.少吃(尽量不吃)零食,避免腌菜、腊肉、泡面、火锅等高盐食物;少奶茶,蛋糕等高糖食物;多吃芹菜、西兰花、豆腐,虾仁,鸡胸肉,鸡蛋、糙米饭、燕麦、藜麦 … 🔔内服麦角硫因 💠医美外护能改皮相,但筋膜层年轻态要靠内调,要知道皮肤衰老是自由基堆积,胶原流失,导致皮肤张力下降撑不起皮肤,所以清除自由基=抗衰,自由基清不掉,脸会越来越松垮、轮廓模糊、发黄长纹,疲惫相囊感明显 💠麦角硫因是先清自由基→再延长端粒→给细胞上翻新,辅助胶原生成,能长期抗衰防垮脸 💠一直坚持的fumvf麦角硫因,活性型好吸收的L-麦角硫因,我吃了一年多身体都没负担,而且用料完全不手抖,核心搭配抗衰贵妇成分PQQ,从深层滋养细胞扶起凹陷脸蛋,添加了6000mg的胶原蛋白肽,白番茄+葡萄籽糖氧双抗,紧致度和光泽度都能一步到位,苹果肌饱满,脸颊像带绷带的那种被紧紧的往上拽,面部平整度高了,遮瑕高光都不需要了,皮肤透亮的开了柔光滤镜 #垮脸#fumvf麦角硫因#变美#内调#女性保养#好皮肤#抗衰",
      "userId": "5bfa15025ec1260001154b54",
      "nickname": "ManDala 曼陀罗",
      "avatar": "https://sns-avatar-qc.xhscdn.com/avatar/63b77e77bee810bffd8e6b40.jpg",
      "user_xsecToken": "CBlIbsINsp8qoXjha8YJx2cnnDicc9xEfU4lfTAQEIrDU=",
      "noteId": "691eb5fc000000001e0381a5"
    },
    "images": [
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u004btn5jag4iqkttovhtg?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u0g4btn5jag4iqk3nf4es8?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u104btn5jag4iqkdp7i8og?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u1g4btn5jag4iqkqe0129o?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u204btn5jag4iqk2bd05c0?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u2g4btn5jag4iqk94t47v0?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u304btn5jag4iqkbkis668?imageView2/format/jpeg",
      "https://ci.xiaohongshu.com/notes_pre_post/1040g3k831p3lu7bi2u3g4btn5jag4iqk6u5r3m8?imageView2/format/jpeg"
    ],
    "videos": []
  },
  "cached_time": "2025-12-01 12:31:15"
}

错误码格式说明:

名称 类型 说明
200 string 返回状态码(成功)
500 string 返回的状态码(失败)

代码示例:


<?php
// 初始化cURL会话
$ch = curl_init();
// 设置请求URL,用户中心获取token,自行替换其他参数
curl_setopt($ch, CURLOPT_URL, "https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N");
// 设置请求头
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Authorization: YOUR_TOKEN'
));
// 返回响应而不是直接输出
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// 执行请求并获取响应
$response = curl_exec($ch);
// 关闭cURL会话
curl_close($ch);
// 将响应解析为JSON格式
$data = json_decode($response, true);
// 输出JSON数据
print_r($data);
?>
            

import requests

# 设置请求URL和头部,用户中心获取token,自行替换其他参数
url = "https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N"
headers = {
    'Authorization': 'YOUR_TOKEN'
}

# 发送GET请求
response = requests.get(url, headers=headers)
# 将响应解析为JSON格式
data = response.json()
# 输出JSON数据
print(data)
            

// 发送GET请求,用户中心获取token,自行替换其他参数
fetch("https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N", {
    method: "GET",
    headers: {
        "Authorization": "YOUR_TOKEN"
    }
})
.then(response => response.json()) // 将响应解析为JSON格式
.then(data => console.log(data)) // 输出JSON数据
.catch(error => console.error('Error:', error));
            

import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;

public class Main {
    public static void main(String[] args) throws Exception {
        // 创建URL对象,用户中心获取token,自行替换其他参数
        URL url = new URL("https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N");
        // 打开连接
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        // 设置请求方法
        conn.setRequestMethod("GET");
        // 设置请求头
        conn.setRequestProperty("Authorization", "YOUR_TOKEN");

        // 读取响应
        BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
        String inputLine;
        StringBuffer content = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            content.append(inputLine);
        }
        in.close();
        // 输出JSON数据
        System.out.println(content.toString());
    }
}
            

using System;
using System.Net.Http;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        using (HttpClient client = new HttpClient()) {
            // 设置请求头
            client.DefaultRequestHeaders.Add("Authorization", "YOUR_TOKEN");
            // 发送GET请求,用户中心获取token,自行替换其他参数
            HttpResponseMessage response = await client.GetAsync("https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N");
            // 将响应解析为字符串
            string responseBody = await response.Content.ReadAsStringAsync();
            // 输出JSON数据
            Console.WriteLine(responseBody);
        }
    }
}
            

require 'net/http'
require 'uri'

# 创建URI对象,用户中心获取token,自行替换其他参数
uri = URI.parse("https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N")
# 创建GET请求
request = Net::HTTP::Get.new(uri)
# 设置请求头
request["Authorization"] = "YOUR_TOKEN"

# 发送请求并获取响应
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end

# 输出JSON数据
puts response.body
            

package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    client := &http.Client{}
    // 创建GET请求,用户中心获取token,自行替换其他参数
    req, err := http.NewRequest("GET", "https://apicx.asia/api/xhs?token=你的token&url=http://xhslink.com/o/7j8gukR4S8N", nil)
    if err != nil {
        panic(err)
    }
    // 设置请求头
    req.Header.Add("Authorization", "YOUR_TOKEN")

    // 发送请求并获取响应
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    // 读取响应体
    body, err := ioutil.ReadAll(resp.Body)
    if err != nil {
        panic(err)
    }
    // 输出JSON数据
    fmt.Println(string(body))
}