Search Chinese news and social
justoneapi.x.search-v1Searches recent content across news, Weibo, WeChat, Zhihu, Douyin, Xiaohongshu, Bilibili, and Kuaishou with source and time filters.
- 价格
- $0.02952/success按供应商原价
- 成功率
- 100%近 30 天 · 12 次
- 延迟 p50
- 4.1 秒p95 8.6 秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.search-v1?source=ALL&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
end | 字符串 | 可选 | End time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request. | |
start | 字符串 | 可选 | Start time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request. | |
source | 字符串 | 可选 | Target social media platform for search filtering. Available Values: - `ALL`: All platforms - `NEWS`: News - `WEIBO`: Sina Weibo - `WEIXIN`: Weixin (WeChat) - `ZHIHU`: Zhihu - `DOUYIN`: Douyin (TikTok China) - `XIAOHONGSHU`: Xiaohongshu (Little Red Book) - `BILIBILI`: Bilibili - `KUAISHOU`: Kuaishou One of: ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU. | ALL |
keyword | 字符串 | 可选 | Search query string. Supports: - Multiple keywords (AND): keyword1 keyword2 - Multiple keywords (OR): keyword1~keyword2 - Excluded keywords (NOT): required_keyword -excluded_keyword | 人工智能 |
nextCursor | 字符串 | 可选 | Pagination cursor provided by the 'nextCursor' field in the previous response. | |
- 查询参数
end字符串可选End time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.
start字符串可选Start time of the search period (yyyy-MM-dd HH:mm:ss). Required for initial request.
source字符串可选Target social media platform for search filtering. Available Values: - `ALL`: All platforms - `NEWS`: News - `WEIBO`: Sina Weibo - `WEIXIN`: Weixin (WeChat) - `ZHIHU`: Zhihu - `DOUYIN`: Douyin (TikTok China) - `XIAOHONGSHU`: Xiaohongshu (Little Red Book) - `BILIBILI`: Bilibili - `KUAISHOU`: Kuaishou One of: ALL, NEWS, WEIBO, WEIXIN, ZHIHU, DOUYIN, XIAOHONGSHU, BILIBILI, KUAISHOU.
示例:
ALLkeyword字符串可选Search query string. Supports: - Multiple keywords (AND): keyword1 keyword2 - Multiple keywords (OR): keyword1~keyword2 - Excluded keywords (NOT): required_keyword -excluded_keyword
示例:
人工智能nextCursor字符串可选Pagination cursor provided by the 'nextCursor' field in the previous response.
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.search-v1?source=ALL&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.search-v1?source=ALL&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.search-v1?source=ALL&keyword=%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.02952/success 计费,已含服务费。