支持以下两种方式(任选其一):
Authorization: Bearer YOUR_API_KEY
"api_key": "YOUR_API_KEY"
| 参数名 | 类型 | 说明 |
|---|---|---|
api_id |
Int | 固定值: 1 |
api_key |
String | (可选)如果不使用Header鉴权,请在此传入 Key |
params.page |
number | 页码 |
params.keywords |
string | 关键词 |
curl -X POST "https://api.jianbenyun.com/api/run" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-xxxxxxxx" \
-d '{
"api_id": 1,
"params": {
"page": "页码",
"keywords": "关键词"
}
}'
如果您不习惯使用 Header,可以将 API Key 直接放在 Body 里:
{
"api_key": "sk-xxxxxxxx",
"api_id": 1,
"params": {
"page": "页码",
"keywords": "关键词"
}
}
| 参数名 | 类型 | 说明 |
|---|---|---|
has_more
|
string | 返回状态,成功为true |
items
|
string | |
|
└
url_default
(items.url_default)
|
string | 首图链接 |
{
"output": {
"has_more": true,
"items": [
{
"id": "692d51090000000019024395",
"display_title": "建议大家都去飞书上学产品经理!",
"url_default": "http://sns-webpic-qc.xhscdn.com/202601082314/6d2e08a508bbc64c3892392012c16979/1040g2sg31phucal2k2dg5p87l134gmd8la025eg!nc_n_webp_mw_1",
"collected_count": 628,
"comment_count": 912,
"liked": false,
"liked_count": 676,
"shared_count": 46,
"nick_name": "Mark布道者的AIGC-迈凯",
"url": "https://www.xiaohongshu.com/explore/692d51090000000019024395?xsec_token=ABNwnKf0b8SDvfjJ6SDEqkyPJdRZ1grHheDJlYMCI5T0o="
}
]
}
}