# Xiaohongshu/小红书 - 获取笔记详情V4

所属目录：Xiaohongshu/小红书

文档地址：https://doc.getoneapi.com/355361331e0

> 此接口已废弃，请优先使用替代接口。

`POST https://api.getoneapi.com/api/xiaohongshu/fetch_video_detail_v4`

## 鉴权

在请求头中传递 Authorization: Bearer YOUR_API_KEY（必填）

## 请求参数

### Header 参数

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| Authorization | string | 是 | 在 Header 添加参数 Authorization，其值为在 Bearer 之后拼接 apikey<br><br>默认值： Bearer YOUR_API_KEY |
| Content-Type | string | 是 | 默认值： application/json |

### Body 参数 · application/json

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| noteId | string | 是 | 笔记ID<br>优先使用note_id，如果没有则使用share_text<br><br>示例值： 68bebd21000000001b03315d |
| share_text | string | 是 | 分享链接<br>支持APP和Web端分享链接 |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "noteId" : {
      "type" : "string",
      "title" : "笔记ID",
      "examples" : [ "68bebd21000000001b03315d" ],
      "description" : "优先使用note_id，如果没有则使用share_text"
    },
    "share_text" : {
      "type" : "string",
      "title" : "分享链接",
      "description" : "支持APP和Web端分享链接"
    }
  },
  "required" : [ "noteId", "share_text" ]
}
```

#### 示例

```json
{
  "noteId" : "",
  "share_text" : ""
}
```

## 返回响应

### 响应 200 · application/json

| 字段 | 类型 | 必填 | 说明 |
| --- | --- | --- | --- |
| code | integer | 是 |  |
| message | string | 是 |  |
| data | object | 是 |  |

#### JSON Schema

```json
{
  "type" : "object",
  "properties" : {
    "code" : {
      "type" : "integer"
    },
    "message" : {
      "type" : "string"
    },
    "data" : {
      "type" : "object",
      "properties" : { }
    }
  },
  "required" : [ "code", "message", "data" ]
}
```

## 请求示例代码

```sh
curl --globoff --request POST 'https://api.getoneapi.com/api/xiaohongshu/fetch_video_detail_v4' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "noteId" : "",
  "share_text" : ""
}'
```

