# 获取图文笔记详情

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v2/crawler/note/image:
    get:
      summary: 获取图文笔记详情
      deprecated: false
      description: >-
        获取图文笔记详情。


        返回笔记正文、图片列表（**无水印原图**）、话题标签、作者信息与互动数据（点赞/收藏/评论/分享数）。


        ### 参数


        | 参数 | 必填 | 形态 | 从哪来 |

        |---|---|---|---|

        | `note_id` | 是 | 24 位十六进制，如 `697c0eee000000000a03c308` | 笔记链接
        `xiaohongshu.com/explore/{note_id}` 的最后一段；或 `/search/notes` 结果里的 `id` |


        ### 示例


        ```bash

        curl
        'https://rnote.dev/api/v2/crawler/note/image?note_id=697c0eee000000000a03c308'      
        -H 'X-API-Key: sk-你的Key'

        ```


        ### 返回


        `$.data.data` 是一个**数组**，取第 0 项即笔记本体：


        ```python

        note = resp["data"]["data"][0]

        ```


        里面包含笔记标题与正文、图片地址列表、话题标签、作者昵称与头像、以及点赞/收藏/评论/分享计数。


        ### 注意


        - 视频笔记请用 `/note/video`；用错接口拿不到播放地址。

        - 笔记被删除或设为私密时取不到内容，`success` 为 `false`。
      operationId: get_image_note_detail_api_v2_crawler_note_image_get
      tags:
        - 小红书数据接口 V2
        - 小红书数据接口 V2
      parameters:
        - name: note_id
          in: query
          description: 笔记ID
          required: true
          example: 697c0eee000000000a03c308
          schema:
            type: string
            description: 笔记ID
            title: Note Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: string
          headers: {}
          x-apifox-name: ''
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          headers: {}
          x-apifox-name: ''
      security:
        - API Key: []
          x-apifox:
            schemeGroups:
              - id: oGvzKdhjVbNU1Yqa9SXjC
                schemeIds:
                  - API Key
            required: true
            use:
              id: oGvzKdhjVbNU1Yqa9SXjC
            scopes:
              oGvzKdhjVbNU1Yqa9SXjC:
                API Key: []
      x-apifox-folder: 小红书数据接口 V2
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7909900/apis/api-456970834-run
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
      x-apifox-orders:
        - detail
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          type: string
        ctx:
          type: object
          title: Context
          x-apifox-orders: []
          properties: {}
          x-apifox-ignore-properties: []
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
      x-apifox-orders:
        - loc
        - msg
        - type
        - input
        - ctx
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    API Key:
      type: apikey
      description: '在此输入 API Key (格式: sk-xxx)，所有 /api/v1/* 接口需要携带'
      in: header
      name: X-API-Key
    InternalKey:
      type: apikey
      description: 内部调用方服务密钥（机器平面），形如 `thk-int-{id}-{secret}`。
      in: header
      name: X-Internal-Key
    UserSession:
      type: apikey
      description: 终端用户会话令牌（门户平面），登录后由门户签发。
      in: header
      name: X-User-Session
    StaffSession:
      type: apikey
      description: 管理后台员工会话 cookie（管理平面），登录后种下。
      in: cookie
      name: admin_session
    Combination:
      group:
        - id: 1724839
        - id: 1724840
      type: combination
servers:
  - url: https://rnote.dev
    description: 正式环境
security: []

```
