必读事项
获取 API Key01
计费与账户
- 仅请求成功时扣费,失败和异常均不扣费。
- 接口资源已升级,支持更低延迟与更高并发。
- 账户连续超过 1 个月未使用会被清理,且无法找回。
02
请求与重试
- 正常情况下接口为秒级响应;触发平台风控时,等待几十秒属于正常现象。
- 客户端请求超时时间建议设置为 60 秒以上。
服务繁忙 返回该提示时直接重试,该状态属于正常情况。
03
HTTP 状态码
200请求成功
400参数错误,请检查必填参数
401认证失败,请检查 API Key
402余额不足,请联系管理员充值
403账户被封禁,请联系管理员
500服务器错误,请稍后重试
▶
GET
/api/get_note_detail
笔记详情
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_detail"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "68663c5e000000000d027a20"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_detail_video
视频笔记详情
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 视频笔记ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_detail_video"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a0ae55400000000350212e6"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_note
笔记搜索
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词,如:猫粮 |
| page | integer | 是 | 第几页,如:1 |
| page_size | integer | 否 | 每页数量,默认20 |
| sortType | string | 否 | 排序:general(综合) / time_descending(最新) / popularity_descending(最多点赞) / comment_descending(最多评论) / collect_descending(最多收藏) |
| filterNoteType | string | 否 | 笔记类型:不限 / 视频笔记 / 普通笔记 / 直播笔记 |
| filterNoteTime | string | 否 | 发布时间:不限 / 一天内 / 一周内 / 半年内 |
| filterNoteRange | string | 否 | 搜索范围:不限 / 已看过 / 未看过 / 已关注 |
| searchId | string | 否 | 翻页必传,首次请求不传,使用返回的 searchId |
| sessionId | string | 否 | 翻页必传,首次请求不传,使用返回的 sessionId |
| filter_hot | string | 否 | 筛选标签,精细化搜索,如:可购买、品牌、测评、家具 |
翻页说明:首次请求返回 searchId 和 sessionId,翻页时必须携带。不同关键词不要复用 searchId/sessionId。
在线测试
查看 Python 代码(含翻页)
import requests
url = "https://api.galaxysapi.com/api/search_note"
headers = {"Authorization": "YOUR_KEY"}
search_id = ""
session_id = ""
for page in range(1, 4):
params = {
"keyword": "猫粮",
"page": str(page),
"page_size": "",
"sortType": "general",
"filterNoteType": "",
"filterNoteTime": "",
"filterNoteRange": "",
"filter_hot": "",
"searchId": search_id,
"sessionId": session_id,
}
resp = requests.get(url, params=params, headers=headers)
result = resp.json()
# 获取翻页参数(下一页必传)
search_id = result.get("searchId", "")
session_id = result.get("sessionId", "")
print(f"第{page}页, 余额: {result.get('balance')}")
print(f" searchId: {search_id}")
print(f" sessionId: {session_id}")
▶
GET
/api/get_note_comment
一级评论
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| start | string | 否 | 分页游标 |
| sortStrategy | string | 否 | 评论排序方式:1=默认,2=最新评论,3=点赞最多 |
在线测试
查看 Python 代码
import requests, json
url = "https://api.galaxysapi.com/api/get_note_comment"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "NOTE_ID", "sortStrategy": "2", "start": ""}
# 首次 start 留空,翻页时使用上次响应中的游标
while True:
resp = requests.get(url, params=params, headers=headers, timeout=30).json()
outer = resp.get("data")
if isinstance(outer, str): outer = json.loads(outer)
body = (outer or {}).get("data") or {}
comments = body.get("comments") or []
print("本页评论数:", len(comments))
# cursor 是 JSON 字符串(如 {"cursor":"xxx","index":1,"pageArea":"UNFOLDED"}),
# 翻页只需要传里面的 cursor 值,不要把整串 JSON 传回去
raw_cursor = body.get("cursor")
next_cursor = ""
if isinstance(raw_cursor, str) and raw_cursor.strip().startswith("{"):
try:
next_cursor = json.loads(raw_cursor).get("cursor", "")
except Exception:
next_cursor = ""
elif raw_cursor:
next_cursor = raw_cursor
# has_more 有时在最后一页仍为 true,但游标已经提取不出值——视为已翻完,避免死循环
if not body.get("has_more") or not next_cursor:
break
params["start"] = next_cursor
▶
GET
/api/get_note_sub_comment
二级评论
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| comment_id | string | 是 | 评论ID |
| start | string | 否 | 分页游标 |
在线测试
查看 Python 代码
import requests, json
url = "https://api.galaxysapi.com/api/get_note_sub_comment"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "NOTE_ID", "comment_id": "COMMENT_ID", "start": ""}
# 首次 start 留空,翻页时使用上次响应中的游标
while True:
resp = requests.get(url, params=params, headers=headers, timeout=30).json()
outer = resp.get("data")
if isinstance(outer, str): outer = json.loads(outer)
body = (outer or {}).get("data") or {}
comments = body.get("comments") or []
print("本页二级评论数:", len(comments))
# cursor 是 JSON 字符串,翻页只需要传里面的 cursor 值,不要把整串 JSON 传回去;
# num 不一定严格生效(常见每页5~8条),has_more 也可能在数据没取完时提前变 false,
# 建议以一级评论的 sub_comment_count 作为期望条数来判断是否已经拿全
raw_cursor = body.get("cursor")
next_cursor = ""
if isinstance(raw_cursor, str) and raw_cursor.strip().startswith("{"):
try:
next_cursor = json.loads(raw_cursor).get("cursor", "")
except Exception:
next_cursor = ""
elif raw_cursor:
next_cursor = raw_cursor
if not body.get("has_more") or not next_cursor:
break
params["start"] = next_cursor
▶
GET
/api/get_user_info
用户信息
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_info"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5659223450c4b4595d6c312c"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/user_note_list
用户作品列表
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| cursor | string | 否 | 分页游标 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/user_note_list"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5659223450c4b4595d6c312c", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/tag_notes
话题标签笔记
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| pageId | string | 是 | 话题页面ID,24位十六进制 |
| sort | string | 否 | 排序:hot 最热,time 最新。默认 hot |
| cursor | string | 否 | 分页游标,首次留空;翻页时原样回传上一次响应里的 cursor |
在线测试
查看 Python 代码
import json
import requests
url = "https://api.galaxysapi.com/api/tag_notes"
headers = {"Authorization": "YOUR_KEY"}
# 首次请求:cursor 留空
params = {
"pageId": "5c014b045b29cb0001ead530",
"sort": "hot"
}
resp = requests.get(url, params=params, headers=headers, timeout=60)
result = resp.json()
print(json.dumps(result, ensure_ascii=False, indent=2))
# 翻页请求:原样回传上一次响应里的 cursor
data = result.get("data", {})
if data.get("has_more") and data.get("cursor"):
next_params = {**params, "cursor": data["cursor"]}
next_resp = requests.get(url, params=next_params, headers=headers, timeout=60)
print(json.dumps(next_resp.json(), ensure_ascii=False, indent=2))
▶
GET
/api/get_note_detail_web
小红书笔记详情(Web)
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_detail_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a2942320000000016025071"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_id_by_red_id
小红书红薯号转用户ID(Web)
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| red_id | string | 是 | 小红书红薯号,仅支持纯数字 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_id_by_red_id"
headers = {"Authorization": "YOUR_KEY"}
params = {"red_id": "266766718"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_detail_v1
小红书笔记详情V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| node_type | string | 否 | 笔记类型:images=图文笔记(默认)/ video=视频笔记,图文笔记不要传video,否则可能返回随机数据 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_detail_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a2942320000000016025071", "node_type": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_info_v1
小红书用户信息V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_info_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5b7445a64115e0000101b952"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/user_note_list_v1
小红书用户作品列表V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| cursor | string | 否 | 分页游标,首次留空,翻页传上页最后一条笔记的 cursor |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/user_note_list_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5b7445a64115e0000101b952", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_note_v1
小红书笔记搜索V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | string | 否 | 页数,默认 1 |
| page_size | string | 否 | 每页数量,默认20 |
| sort | string | 否 | 排序:general=综合(默认),time_descending=最新,popularity_descending=最多点赞,comment_descending=最多评论,collect_descending=最多收藏,english_preferred=英文优先 |
| note_type | string | 否 | 笔记类型:不传=全部,video=只看视频笔记,image=只看图文笔记,live=只看直播笔记 |
| note_range | string | 否 | 搜索范围:不限(默认)/已看过/未看过/已关注 |
| note_time | string | 否 | 发布时间:不限(默认)/一天内/一周内/一个月内/一年内 |
| search_id | string | 否 | 搜索标识,翻页时使用 |
| session_id | string | 否 | 会话标识 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_note_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {
"keyword": "旅游",
"page": "",
"page_size": "",
"sort": "",
"note_type": "",
"note_range": "",
"note_time": "",
"search_id": "",
"session_id": "",
}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_comment_v1
小红书一级评论V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| num | string | 否 | 每页数量,默认15 |
| sort | string | 否 | 排序:默认/最新/最多点赞 |
| cursor | string | 否 | 翻页游标 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_comment_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6718e886000000001b02c67c", "num": "", "sort": "", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_sub_comment_v1
小红书二级评论V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| comment_id | string | 是 | 上级评论ID(来自一级评论的 id) |
| num | string | 否 | 返回数量 |
| cursor | string | 否 | 分页游标 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_sub_comment_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6718e886000000001b02c67c", "comment_id": "6722db7d000000001a0127c4", "num": "", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/xhs_goods_detail_web
小红书商品详情(Web)
0.07 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| goods_id | string | 是 | 商品ID 或商品短链 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/xhs_goods_detail_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"goods_id": "682162d0791e9400151e7200"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_user_web
小红书用户搜索(Web)
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 关键词 |
| page | int | 否 | 页数,默认 1 |
| search_id | string | 否 | 搜索标识,页数 >1 时必传 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_user_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "旅游"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_note_web
小红书笔记搜索(Web)
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | int | 否 | 页数,第一页为 1 |
| note_type | int | 否 | 笔记类型:1=图文,2=视频 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_note_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "旅游", "page": "", "note_type": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/update_xsec_token_web
小红书更新xsec_token(App)
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/update_xsec_token_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a02c5a4000000003700dff0"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_comment_web
小红书一级评论(Web)
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| xsec_token | string | 是 | 首次用更新 xsec_token 接口返回值;翻页用上一次本接口返回值 |
| cursor | string | 否 | 分页游标,首次为空 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_comment_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a02c5a4000000003700dff0", "xsec_token": "MBW1R-1ysYzoHhvurSSzhy6iMCe7FesKtW5KjxJ38a1to=", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_sub_comment_web
小红书笔记二级评论(Web)
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID |
| xsec_token | string | 是 | 使用一级评论接口返回的 data.xsec_token;二级评论翻页时使用上一次二级评论响应返回的 data.xsec_token |
| cursor | string | 是 | 上级评论的 sub_comment_cursor |
| root_comment_id | string | 是 | 上级评论的 ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_sub_comment_web"
headers = {"Authorization": "YOUR_KEY"}
params = {
"note_id": "6a06c2ec000000003701c99d",
"xsec_token": "ABquNzf-DSV20_H_bT2lY342maQVlTemDU6kpj36WU2eE=",
"cursor": "6a101bce000000002900db80",
"root_comment_id": "6a100c7400000000280356c0"
}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_posts_web
达人商品笔记列表(Web)
0.05 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| page | int | 否 | 页数,首页为 1 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_posts_web"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5b7445a64115e0000101b952", "page": "1"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_user_v1
小红书用户搜索V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | int | 否 | 页码,从 1 开始,默认 1 |
| fans_count | string | 否 | 粉丝数筛选:all(不限,默认)或区间如 0-10 |
| user_type | string | 否 | 用户类型:all(不限,默认)/ regular_user(普通用户)/ personal_verification(个人认证)/ business_verification(企业认证) |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_user_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "咖啡", "page": 1, "fans_count": "all", "user_type": "all"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/user_followers_v1
小红书用户粉丝列表V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户ID |
| cursor | string | 否 | 分页游标,首次留空,翻页传上页响应的 cursor |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/user_followers_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "602e9d1e000000000101db3f", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_products_v1
小红书商品搜索V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | int | 否 | 页码,默认1 |
| sort | string | 否 | 综合、销量、价格升序、价格降序 |
| filters_tags | string | 否 | 多项用逗号分隔:退货包运费、七天无理由、24小时发货、现货 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_products_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {
"keyword": "手机壳",
"page": 1,
"sort": "综合",
"filters_tags": "现货,七天无理由",
}
resp = requests.get(url, params=params, headers=headers, timeout=30)
print(resp.json())
▶
GET
/api/get_product_detail_v1
小红书商品详情V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sku_id | string | 是 | 商品SKU ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_product_detail_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {"sku_id": "69f43e1064eb4100015cc162"}
resp = requests.get(url, params=params, headers=headers, timeout=30)
print(resp.json())
▶
GET
/api/get_product_reviews_v1
小红书商品评论V1
0.03 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| new_sku_id | string | 是 | 商品SKU ID |
| sort_strategy_type | string | 否 | 综合、最新;默认综合 |
| page | int | 否 | 页码,从0开始,默认0 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_product_reviews_v1"
headers = {"Authorization": "YOUR_KEY"}
params = {
"new_sku_id": "69f43e1064eb4100015cc162",
"sort_strategy_type": "综合",
"page": 0,
}
resp = requests.get(url, params=params, headers=headers, timeout=30)
print(resp.json())
▶
GET
/api/search_products_rnote
小红书商品搜索(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | int | 否 | 页码,从1开始,默认1 |
| search_id | string | 否 | 搜索ID(分页用),首次为空 |
| source | string | 否 | 来源,默认 explore_feed |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_products_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "手机壳", "page": 1, "search_id": "", "source": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_product_detail_rnote
小红书商品详情(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sku_id | string | 是 | 商品 SKU ID |
| source | string | 否 | 来源,默认 mall_search |
| pre_page | string | 否 | 上一页来源,默认 mall_search |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_product_detail_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"sku_id": "69f43e1064eb4100015cc162", "source": "", "pre_page": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_product_reviews_rnote
小红书商品评论(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sku_id | string | 是 | 商品 SKU ID |
| page | int | 否 | 页码,从0开始 |
| sort_strategy_type | int | 否 | 排序策略,0=默认 |
| share_pics_only | int | 否 | 仅看有图,0=全部 |
| from_page | string | 否 | 来源页面,默认 score_page |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_product_reviews_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"sku_id": "69f43e1064eb4100015cc162", "page": 0, "sort_strategy_type": "", "share_pics_only": "", "from_page": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_info_rnote
小红书用户信息(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户 ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_info_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "61b46d790000000010008153"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_notes_rnote
用户作品列表(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 用户 ID |
| cursor | string | 否 | 分页游标,首次留空,翻页传上页最后一条笔记的 cursor |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_notes_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "61b46d790000000010008153", "cursor": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_topic_info_rnote
小红书话题详情(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page_id | string | 是 | 话题页面 ID |
| source | string | 否 | 来源,默认 normal |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_topic_info_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"page_id": "5c1cc866febed9000184b7c1", "source": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_image_note_detail_rnote
小红书图文笔记详情(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记 ID |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_image_note_detail_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "697c0eee000000000a03c308"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_video_note_detail_rnote
小红书视频笔记详情(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 二选一 | 笔记 ID(与 share_text 二选一,优先用此项) |
| share_text | string | 二选一 | 小红书分享链接(与 note_id 二选一),支持 APP/Web |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_video_note_detail_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "697c0eee000000000a03c308", "share_text": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_user_faved_notes_rnote
小红书用户收藏笔记(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 二选一 | 用户 ID(与 share_text 二选一,优先用此项) |
| share_text | string | 二选一 | 小红书分享链接(与 user_id 二选一),支持 APP/Web |
| cursor | string | 否 | 分页游标,首次留空,翻页传上页最后一条笔记的 note_id |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_user_faved_notes_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "5a8cf39111be10466d285d6b", "cursor": "", "share_text": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_topic_feed_rnote
小红书话题笔记列表(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| page_id | string | 是 | 话题页面 ID |
| sort | string | 否 | 排序:trend(最热,默认)、time(最新) |
| cursor_score | string | 否 | 分页游标分数,翻页时传入 |
| last_note_id | string | 否 | 上一页最后一条笔记 ID |
| last_note_ct | string | 否 | 上一页最后一条笔记创建时间 |
| session_id | string | 否 | 会话 ID,翻页保持一致 |
| first_load_time | string | 否 | 首次加载时间戳,翻页保持一致 |
| source | string | 否 | 来源,默认 normal |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_topic_feed_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"page_id": "5c1cc866febed9000184b7c1", "sort": "trend", "cursor_score": "", "last_note_id": "", "last_note_ct": "", "session_id": "", "first_load_time": "", "source": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_notes_rnote
小红书笔记搜索(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | string | 否 | 页码,从 1 开始 |
| sort_type | string | 否 | 排序:general/time_descending/popularity_descending/comment_descending/collect_descending/english_preferred |
| note_type | string | 否 | 笔记类型:不限/视频笔记/普通笔记/直播笔记 |
| time_filter | string | 否 | 发布时间:不限/一天内/一周内/半年内 |
| search_id | string | 否 | 搜索 ID,翻页传入首次搜索返回值 |
| search_session_id | string | 否 | 搜索会话 ID,翻页传入首次搜索返回值 |
| source | string | 否 | 来源,默认 explore_feed |
| ai_mode | string | 否 | AI 模式:0=关闭(默认),1=开启 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_notes_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "美食推荐", "page": "1", "sort_type": "general", "note_type": "", "time_filter": "", "search_id": "", "search_session_id": "", "source": "", "ai_mode": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/search_users_rnote
小红书用户搜索(rNote)
0.09 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| page | string | 否 | 页码,从 1 开始 |
| search_id | string | 否 | 搜索 ID,翻页传入首次搜索返回值 |
| source | string | 否 | 来源,默认 explore_feed |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/search_users_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "美食博主", "page": "1", "search_id": "", "source": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_comments_rnote
小红书笔记评论(rNote)
0.1 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 二选一 | 笔记 ID(与 share_text 二选一,优先用此项) |
| share_text | string | 二选一 | 小红书分享链接(与 note_id 二选一),支持 APP/Web |
| cursor | string | 否 | 分页游标,首次留空 |
| index | string | 否 | 评论索引,首次传0 |
| pageArea | string | 否 | 折叠状态:UNFOLDED(展开)或FOLDED(折叠) |
| sort_strategy | string | 否 | 排序策略:latest_v2(最新)、like_count(点赞数)、default(默认) |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_comments_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a325a5c000000002201727c", "share_text": "", "cursor": "", "index": "", "pageArea": "", "sort_strategy": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/get_note_sub_comments_rnote
小红书笔记二级评论(rNote)
0.1 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| comment_id | string | 是 | 一级评论 ID(指定获取这条评论下的子评论) |
| note_id | string | 二选一 | 笔记 ID(与 share_text 二选一,优先用此项) |
| share_text | string | 二选一 | 小红书分享链接(与 note_id 二选一),支持 APP/Web |
| cursor | string | 否 | 分页游标,首次留空 |
| index | string | 否 | 分页索引,首次传1 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/get_note_sub_comments_rnote"
headers = {"Authorization": "YOUR_KEY"}
params = {"comment_id": "6a326740000000002a007c6a", "note_id": "6a325a5c000000002201727c", "share_text": "", "cursor": "", "index": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_video_detail
抖音视频详情
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| aweme_id | string | 是 | 抖音作品/文章 ID(纯数字) |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_video_detail"
headers = {"Authorization": "YOUR_KEY"}
params = {"aweme_id": "7448118827402972455"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_short_url
获取抖音短链
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| url | string | 是 | 需要转换的完整抖音链接 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_short_url"
headers = {"Authorization": "YOUR_KEY"}
params = {"url": "https://www.douyin.com/video/7653615515386072360"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_video_comments
抖音视频评论
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| aweme_id | string | 是 | 抖音作品 ID(纯数字) |
| cursor | string | 否 | 翻页游标,默认 0 |
| count | string | 否 | 每页数量,默认 20 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_video_comments"
headers = {"Authorization": "YOUR_KEY"}
params = {"aweme_id": "7448118827402972455", "cursor": "0", "count": "20"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_comment_replies
抖音视频二级评论
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| item_id | string | 是 | 抖音作品 ID(纯数字) |
| comment_id | string | 是 | 一级评论 ID(纯数字) |
| cursor | string | 否 | 翻页游标,默认 0 |
| count | string | 否 | 每页数量,默认 20 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_comment_replies"
headers = {"Authorization": "YOUR_KEY"}
params = {"item_id": "7448118827402972455", "comment_id": "7448331808838320959", "cursor": "0", "count": "20"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_user_profile
抖音用户信息
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sec_user_id | string | 是 | 用户 sec_user_id |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_user_profile"
headers = {"Authorization": "YOUR_KEY"}
params = {"sec_user_id": "MS4wLjABAAAAY3J1P0y5w7hzttTyvZiLjhMu3iOzF-1yFi6yNtXVHzkmVGFIx7T8s-nRmGNusfh1"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_user_fans
抖音用户粉丝列表
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sec_user_id | string | 是 | 用户 sec_user_id |
| max_time | string | 否 | 翻页时间戳,首次传 0,后续使用上次响应值 |
| count | integer | 否 | 每页数量,默认 20,建议保持不变 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_user_fans"
headers = {"Authorization": "YOUR_KEY"}
params = {"sec_user_id": "MS4wLjABAAAA9y04iBlVdeMQqTJbqsQZKb-tqWqWW29jPVJqideHT70", "max_time": "0", "count": "20"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/douyin_user_videos
抖音用户作品列表
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| sec_user_id | string | 是 | 用户 sec_user_id |
| max_cursor | string | 否 | 翻页游标,默认 0 |
| count | string | 否 | 每页数量,默认 20(不超过 20) |
| sort_type | string | 否 | 排序:0=最新(默认),1=最热 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_user_videos"
headers = {"Authorization": "YOUR_KEY"}
params = {"sec_user_id": "MS4wLjABAAAAY3J1P0y5w7hzttTyvZiLjhMu3iOzF-1yFi6yNtXVHzkmVGFIx7T8s-nRmGNusfh1", "max_cursor": "0", "count": "20", "sort_type": "0"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
POST
/api/douyin_general_search
抖音综合搜索
0.15 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词 |
| cursor | string | 否 | 翻页游标,首次传 0 |
| sort_type | string | 否 | 排序:0=综合,1=最多点赞,2=最新发布 |
| publish_time | string | 否 | 发布时间:0=不限,1=最近一天,7=最近一周,180=最近半年 |
| filter_duration | string | 否 | 视频时长:0=不限,0-1=1分钟内,1-5=1-5分钟,5-10000=5分钟以上 |
| content_type | string | 否 | 内容类型:0=不限,1=视频,2=图片,3=文章 |
| search_id | string | 否 | 搜索 ID,翻页时从上次响应获取 |
| backtrace | string | 否 | 翻页回溯标识,翻页时从上次响应获取 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/douyin_general_search"
headers = {"Authorization": "YOUR_KEY"}
body = {"keyword": "猫咪", "cursor": "0", "sort_type": "0", "content_type": "0", "publish_time": "", "filter_duration": "", "search_id": "", "backtrace": ""}
resp = requests.post(url, json=body, headers=headers)
print(resp.json())
▶
GET
/api/pgy_author_info
蒲公英作者信息
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_author_info"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_author_data_performance
蒲公英作者数据表现
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
| business | int | 否 | 0=日常笔记(默认),1=合作笔记 |
| note_type | int | 否 | 1=图文,2=视频,3=图文+视频(默认) |
| advertise_switch | int | 否 | 0=自然流量(默认),1=全流量(含投流) |
| date_type | int | 否 | 1=近30天(默认),2=近90天 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_author_data_performance"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d", "business": 0, "note_type": 3, "advertise_switch": 0, "date_type": 1}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_author_growth_performance
蒲公英作者成长表现
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_author_growth_performance"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_author_notes_list
蒲公英作者笔记列表
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
| page | int | 否 | 页码,从 1 开始,默认 1 |
| note_type | int | 否 | 1=图文,2=视频,3=合作笔记,4=全部(默认) |
| order_type | int | 否 | 1=最新(默认),2=阅读最多,3=互动最多 |
| advertise_switch | int | 否 | 0=自然流量(默认),1=全流量 |
| is_third_platform | int | 否 | 是否第三方平台数据,0=否(默认),1=是 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_author_notes_list"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d", "page": 1, "note_type": 4, "order_type": 1, "advertise_switch": "", "is_third_platform": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_author_promotion_cost
蒲公英作者推广成本估算
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_author_promotion_cost"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_blogger_list
蒲公英达人列表
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| keyword | string | 是 | 搜索关键词(达人昵称/小红书号/内容关键词) |
| page_num | int | 否 | 页码,从 1 开始,默认 1 |
| page_size | int | 否 | 每页数量,默认由上游决定 |
| search_type | int | 否 | 0=号/昵称精确搜索,1=综合搜索(默认) |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_blogger_list"
headers = {"Authorization": "YOUR_KEY"}
params = {"keyword": "美妆", "page_num": 1, "search_type": 1, "page_size": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_core_metrics
蒲公英核心指标
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
| business | int | 否 | 0=日常笔记(默认),1=合作笔记 |
| note_type | int | 否 | 1=图文,2=视频,3=图文+视频(默认) |
| date_type | int | 否 | 1=近30天(默认),2=近90天 |
| advertise_switch | int | 否 | 0=自然流量(默认),1=全流量 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_core_metrics"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d", "business": 0, "note_type": 3, "date_type": 1, "advertise_switch": ""}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_data_overview
蒲公英数据概览
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
| business | int | 否 | 0=按规模(默认),1=按成本 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_data_overview"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d", "business": 0}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_fans_growth
蒲公英粉丝增长
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
| date_type | int | 否 | 1=近30天(默认),2=近60天 |
| increase_type | int | 否 | 1=总量(默认),2=增量 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_fans_growth"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d", "date_type": 1, "increase_type": 1}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_fans_tags
蒲公英粉丝标签
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| user_id | string | 是 | 小红书用户ID,24位十六进制 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_fans_tags"
headers = {"Authorization": "YOUR_KEY"}
params = {"user_id": "556aceba484fb624f84be04d"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())
▶
GET
/api/pgy_note_detail
蒲公英笔记详情
0.04 元/次
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| note_id | string | 是 | 笔记ID,24位十六进制 |
在线测试
查看 Python 代码
import requests
url = "https://api.galaxysapi.com/api/pgy_note_detail"
headers = {"Authorization": "YOUR_KEY"}
params = {"note_id": "6a325a5c000000002201727c"}
resp = requests.get(url, params=params, headers=headers)
print(resp.json())