xiaohongshuApiUrls: {
homeFeed(
data?: Omit<
{
methodType: "homeFeed";
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[];
};
};
noteDetail(
data: Omit<
{ methodType: "noteDetail"; 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;
};
};
noteComments(
data: Omit<
{
methodType: "noteComments";
note_id: string;
cursor?: string;
xsec_token: string;
},
"methodType",
>,
): { apiPath: string; Url: string };
userProfile(
data: Omit<
{ methodType: "userProfile"; user_id: string },
"methodType",
>,
): { apiPath: string; Url: string };
userNoteList(
data: Omit<
{
methodType: "userNoteList";
user_id: string;
cursor?: string;
num?: number;
},
"methodType",
>,
): { apiPath: string; Url: string };
emojiList(
data: Omit<{ methodType: "emojiList" }, "methodType">,
): { apiPath: string; Url: string };
searchNotes(
data: Omit<
{
methodType: "searchNotes";
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;
};
} = ...
类型声明
homeFeed: function
homeFeed( data?: Omit< { methodType: "homeFeed"; 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: "homeFeed";
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
noteDetail: function
noteDetail( data: Omit< { methodType: "noteDetail"; 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: "noteDetail"; 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
参数
- data: Omit<
{
methodType: "noteComments";
note_id: string;
cursor?: string;
xsec_token: string;
},
"methodType",
>
返回 { apiPath: string; Url: string }
完整的接口URL
userProfile: function
userProfile( data: Omit<{ methodType: "userProfile"; user_id: string }, "methodType">,): { apiPath: string; Url: string } 参数
- data: Omit<{ methodType: "userProfile"; user_id: string }, "methodType">
返回 { apiPath: string; Url: string }
完整的接口URL
userNoteList: function
userNoteList( data: Omit< { methodType: "userNoteList"; user_id: string; cursor?: string; num?: number; }, "methodType", >,): { apiPath: string; Url: string } 参数
- data: Omit<
{
methodType: "userNoteList";
user_id: string;
cursor?: string;
num?: number;
},
"methodType",
>
返回 { apiPath: string; Url: string }
完整的接口URL
emojiList: function
emojiList( data: Omit<{ methodType: "emojiList" }, "methodType">,): { apiPath: string; Url: string } 参数
- data: Omit<{ methodType: "emojiList" }, "methodType">
返回 { apiPath: string; Url: string }
完整的接口URL
searchNotes: function
searchNotes( data: Omit< { methodType: "searchNotes"; 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;} 参数
- data: Omit<
{
methodType: "searchNotes";
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
小红书API地址配置