Truth Social user posts by username
scrapecreators.x.v1-truthsocial-user-postsFetches a paginated list of posts from a Truth Social user, returning text, id, created_at, url, content, account info, media_attachments, card link previews, replies_count, reblogs_count, and favourites_count.
- 价格
- $0.00188/call按供应商原价
- 成功率
- —暂无成功率数据暂无成功率数据
- 延迟 p50
- ——
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 查询参数 | ||||
trim | 布尔 | 可选 | Set to true for a trimmed down version of the response | false |
handle | 字符串 | 可选 | Truth Social username | realDonaldTrump |
user_id | 字符串 | 可选 | Truth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint. | 107780257626128497 |
next_max_id | 字符串 | 可选 | Used to paginate to next page | 107780257626128497 |
- 查询参数
trim布尔可选Set to true for a trimmed down version of the response
示例:
falsehandle字符串可选Truth Social username
示例:
realDonaldTrumpuser_id字符串可选Truth Social user id. Use this for faster response times. Trumps is 107780257626128497. It is the 'id' field in the profile endpoint.
示例:
107780257626128497next_max_id字符串可选Used to paginate to next page
示例:
107780257626128497
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
预览
curl -X GET 'https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/scrapecreators.x.v1-truthsocial-user-posts?handle=realDonaldTrump", {
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.00188/call 计费,已含服务费。