V2版小红薯X-S,X-T,x-s-common算法 正常
更多API推荐>>
V2版小红薯上传视频X-S,X-T,x-s-common查询接口算法

接口地址: https://api.itfaba.com/xhs/getv2Xs

返回格式: JSON

请求方式: POST

请求示例: https://api.itfaba.com/xhs/getv2Xs?apiKey=testkey

直连路由服务地址1: https://api-1.itfaba.com/xhs/getv2Xs?apiKey=xxx

直连路由服务地址2: https://api-2.itfaba.com/xhs/getv2Xs?apiKey=xxx

注意:{apiKey}参数接口密钥登陆用户平台获取

请求参数说明:

名称 必填 类型 说明
path string 请求路径,例如:/api/sns/web/v2/comment/page?note_id=64787fa0000000001300fc57&cursor=
data string POST提交参数,填写JSON格式
cookie string 小红薯COOKIE

返回参数说明:

名称 类型 说明

返回示例:

{
	"result": 1,
	"info": "成功",
	"data": {
		"x-s-common": "2UQAPsHC+aIjqArjwjHjNsQhPsHCH0rjNsQhPaHCH0P1PUhAHjIj2eHjwjQgynEDJ74AHjIj2ePjwjQhyoPTqBPT49pjHjIj2ecjwjHUN0D1+jHVHdWMH0ijP/WhG0WE8B8jPAcEJdrlG0Y7PnzxG08DPnTlJBzk2BuhPopI20ZAPoPMPeZIPePlPeLlwaHVHdW9H0ijP/Gh+Aq7PALFw/HFPUHVHdW7H0ijnbSgg9pEadkYp9zMp/+y4LSxJ9Swprpk/r+t2fbg8opnaBl7nS+Q+DS187YQyg4knpYs4M+gLnSOyLiFGLY+4B+o/gzDPS8kanS7ynPUJBEjJbkVG9EwqBHU+BSOyLShanS7yn+oz0pjzASinD+Q+DSTa/pOzBqU/S4tyDEonflyzrp7/gkz4MSTz/+wpbpCnD4z+rExJBYyzbki/L4z+pSgag4+zrbhnp4Q2bDUngk8pbShnDzpPpSg//b+zBlk/pztJLECp/m8yf4hnp4pPFhULfSyJpbh/MzQPDETngYypFki/FzbPDMxnfT+yDp7n/Q++pkL/fSyJpQi/p4yybSLzfl8yfT7nDz0PbSgzgk+pFDl/D4+PFMT/fT+zMrA/D4ByrMCzfSwpbQx/dktySkozf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gzCGLzD8n8Cq/bC8sRSpM4BLrSh8nprLoz1aLL98Lzl4rS6Jb4+/9RnzFS989pkqgzMNMSd8gYxqnMQyFl7anSrLr4YJnkQ4fYTtFDhwrSk2dpspd4Vag8oz0zS4fprLA4SPgpFcFSe+7+rGAFRHjIj2eDjwjFlPeG7+eWMweP7NsQhP/Zjw08R",
		"x-t": "1687773549243",
		"x-s": "XYW_eyJzaWduU3ZuIjoiNTEiLCJzaWduVHlwZSI6IngxIiwiYXBwSWQiOiJ4aHMtcGMtd2ViIiwic2lnblZlcnNpb24iOiIxIiwicGF5bG9hZCI6ImI5ODg2NWJjNGZlZDEwMzQwYmE3NTUzZGQ4NjlhZDZhMGQ5YWIwMDAxYWIxY2YzYTYxZDU1YWM1MDliMTJmNzU0YjgxYWU3N2RiZmQxOTI2NmYxZWJhODE2MjZkMjEwY2M5ZTNiZmRhMWZhYTFlYjkwZDc0YWEzMWI1NGM3MmNkMGQ3NGFhMzFiNTRjNzJjZGFjNDg5YjlkYThjZTVlNDhmNGFmYjlhY2ZjM2VhMjZmZTBiMjY2YTZiNGNjM2NiNTMyNDdmMTViZWRhYjYwNzFiOTBlNWJjYmJkM2QwNTM1YzlhZGMyNGU2ZWI5N2FlMTg5NmY0MzNjNDA0YzAxNDI3YTg3NmFjYjE5Njg1ZDg4NWJhYmZhYzcxN2Q0ZGEzMTY2YjYwNTQwZjc4MDU4YzI0Y2Q2YTA0YzRjYmVhZGIxNjFjNDhlMTNhYjc4YTc1YTVhYjgzYjgyYmFhODZhOWJiYTVlYjQ5NjZjNDg1YTllZGIyZGM4OTllMGZiMDg1ZiJ9"
	}
}

错误码格式说明:

名称 类型 说明
code int 0:异常消息,1:正常,2:警告
result int 0:异常消息,1:正常

代码示例:

const request = require('request');
var ck='a1=xxxxxxx';
const options = {
  method: 'POST',
  url: 'https://api.itfaba.com/xhs/getv2Xs',
  qs: {apiKey: '你的APIKEY'},
  headers: {'content-type': 'application/x-www-form-urlencoded'},
  form: {
    path: '/api/galaxy/creator/note/user/posted?tab=0',
    data: '',
    cookie: ck
  }
};

request(options, function (error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});