One public Facebook post
crawl4ai.facebook.post.detailOne public Facebook post as one row: id, URL, author, text, time posted, reactions in total and by type, comments, shares, photos and videos, and where it was posted. `post` is the post's facebook.com URL (/posts/, permalink.php, photo, videos, reel or share link). About 5-25 s; when the page fails, a slower second source answers (about 40 s). `session` (optional) = your c_user and xs cookies. You supply your own session. Crawl4AI uses it for this run only and does not store it. Your account and the site's terms are your responsibility. Columns: post_id, url, author_name, author_id, author_url, page_id, text, created_at, reactions, reactions_by_type, comments, shares, media, posted_to.
- 价格
- $0.00135/success按供应商原价
- 成功率
- 91.5%近 30 天 · 1,840 次
- 延迟 p50
- 39 秒p95 106 秒
- 最后验证
- —尚未验证
POSThttps://toolswitch.dev/v1/tools/crawl4ai.facebook.post.detail预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
这个工具没有参数,详见供应商文档 ↗ 供应商文档
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X POST 'https://toolswitch.dev/v1/tools/crawl4ai.facebook.post.detail' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"post":"https://www.facebook.com/NASA/posts/1110592997763013"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/crawl4ai.facebook.post.detail",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"post\":\"https://www.facebook.com/NASA/posts/1110592997763013\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.facebook.post.detail", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"post\":\"https://www.facebook.com/NASA/posts/1110592997763013\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 $0.00135/success 计费,已含服务费。