Amagi API 文档 - v5.6.3
    正在准备搜索索引...

    变量 xiaohongshuApiUrls常量

    xiaohongshuApiUrls: {
        "首页推荐数据"(
            data?: Omit<
                {
                    methodType: "首页推荐数据";
                    cursor_score?: string;
                    num?: number;
                    refresh_type?: number;
                    note_index?: number;
                    category?: string;
                    search_key?: string;
                },
                "methodType",
            >,
        ): {
            apiPath: string;
            Url: string;
            Body: {
                cursor_score: string;
                num: number;
                refresh_type: number;
                note_index: number;
                category: string;
                search_key: string;
                image_formats: string[];
            };
        };
        "单个笔记数据"(
            data: Omit<
                { methodType: "单个笔记数据"; note_id: string; xsec_token: string },
                "methodType",
            >,
        ): {
            apiPath: string;
            Url: string;
            Body: {
                source_note_id: string;
                image_formats: string[];
                extra: { need_body_topic: string };
                xsec_source: string;
                xsec_token: string;
            };
        };
        "评论数据"(
            data: Omit<
                {
                    methodType: "评论数据";
                    note_id: string;
                    cursor?: string;
                    xsec_token: string;
                },
                "methodType",
            >,
        ): { apiPath: string; Url: string };
        "用户数据"(
            data: Omit<{ methodType: "用户数据"; user_id: string }, "methodType">,
        ): { apiPath: string; Url: string };
        "用户笔记数据"(
            data: Omit<
                {
                    methodType: "用户笔记数据";
                    user_id: string;
                    cursor?: string;
                    num?: number;
                },
                "methodType",
            >,
        ): { apiPath: string; Url: string };
        "表情列表"(
            data: Omit<{ methodType: "表情列表" }, "methodType">,
        ): { apiPath: string; Url: string };
        "搜索笔记"(
            data: Omit<
                {
                    methodType: "搜索笔记";
                    keyword: string;
                    page?: number;
                    page_size?: number;
                    sort?: SearchSortType;
                    note_type?: SearchNoteType;
                },
                "methodType",
            >,
        ): {
            apiPath: string;
            Body: {
                keyword: string;
                page: number;
                page_size: number;
                sort: SearchSortType;
                note_type: SearchNoteType;
                search_id: string;
                image_formats: string[];
            };
            Url: string;
        };
    } = ...

    小红书API地址配置

    类型声明

    • 首页推荐数据: function
      • 获取首页推荐数据的接口地址

        参数

        • data: Omit<
              {
                  methodType: "首页推荐数据";
                  cursor_score?: string;
                  num?: number;
                  refresh_type?: number;
                  note_index?: number;
                  category?: string;
                  search_key?: string;
              },
              "methodType",
          > = {}

          请求参数

        返回 {
            apiPath: string;
            Url: string;
            Body: {
                cursor_score: string;
                num: number;
                refresh_type: number;
                note_index: number;
                category: string;
                search_key: string;
                image_formats: string[];
            };
        }

        完整的接口URL

    • 单个笔记数据: function
      • 获取单个笔记数据的接口地址

        参数

        • data: Omit<
              { methodType: "单个笔记数据"; note_id: string; xsec_token: string },
              "methodType",
          >

          请求参数

        返回 {
            apiPath: string;
            Url: string;
            Body: {
                source_note_id: string;
                image_formats: string[];
                extra: { need_body_topic: string };
                xsec_source: string;
                xsec_token: string;
            };
        }

        完整的接口URL

    • 评论数据: function
      • 获取评论数据的接口地址

        参数

        • data: Omit<
              {
                  methodType: "评论数据";
                  note_id: string;
                  cursor?: string;
                  xsec_token: string;
              },
              "methodType",
          >

          请求参数

        返回 { apiPath: string; Url: string }

        完整的接口URL

    • 用户数据: function
      • 获取用户数据的接口地址

        参数

        • data: Omit<{ methodType: "用户数据"; user_id: string }, "methodType">

          请求参数

        返回 { apiPath: string; Url: string }

        完整的接口URL

    • 用户笔记数据: function
      • 获取用户笔记数据的接口地址

        参数

        • data: Omit<
              { methodType: "用户笔记数据"; user_id: string; cursor?: string; num?: number },
              "methodType",
          >

          请求参数

        返回 { apiPath: string; Url: string }

        完整的接口URL

    • 表情列表: function
      • 获取笔记表情列表的接口地址

        参数

        • data: Omit<{ methodType: "表情列表" }, "methodType">

          请求参数

        返回 { apiPath: string; Url: string }

        完整的接口URL

    • 搜索笔记: function
      • 搜索笔记的接口地址

        参数

        • data: Omit<
              {
                  methodType: "搜索笔记";
                  keyword: string;
                  page?: number;
                  page_size?: number;
                  sort?: SearchSortType;
                  note_type?: SearchNoteType;
              },
              "methodType",
          >

          请求参数

        返回 {
            apiPath: string;
            Body: {
                keyword: string;
                page: number;
                page_size: number;
                sort: SearchSortType;
                note_type: SearchNoteType;
                search_id: string;
                image_formats: string[];
            };
            Url: string;
        }

        完整的接口URL