curl --request POST \
--url https://api.aisa.one/v1/tasks/social.get_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "x",
"url": "https://x.com/NASA/status/2125691860706333095"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"author": {
"display_name": "<string>",
"handle": "<string>",
"platform": "tiktok",
"url": "<string>",
"user_id": "<string>"
},
"comments": 123,
"content_type": "post",
"duration_seconds": 123,
"hashtags": [
"<string>"
],
"is_sponsored": true,
"language": "<string>",
"likes": 123,
"location": {
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"raw": "<string>",
"region": "<string>"
},
"media": [
{
"duration_seconds": 123,
"height": 123,
"thumbnail_url": "<string>",
"type": "image",
"url": "<string>",
"width": 123
}
],
"mentions": [
"<string>"
],
"music_title": "<string>",
"platform": "tiktok",
"post_id": "<string>",
"published_at": "<string>",
"saves": 123,
"shares": 123,
"text": "<string>",
"title": "<string>",
"url": "<string>",
"views": 123,
"extras": {}
},
"status": "found",
"task": "social.get_post",
"version": 2
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}社媒
获取帖子或视频详情与数据
已知 TikTok、YouTube、X、Reddit、Instagram、Facebook、LinkedIn、Threads、Bluesky、Pinterest、Telegram(公开频道的帖子)、Truth Social、Rumble、Snapchat(Spotlight)、抖音、快手、哔哩哔哩、小红书(笔记)、微博或知乎(回答或专栏文章)上公开帖子或视频的 URL,需要它的正文、作者、媒体和互动数据(播放、点赞、评论、分享)时使用。抖音、小红书和知乎不公开播放数;微博只有视频有播放数。
POST
https://api.aisa.one
/
v1
/
tasks
/
social.get_post
curl --request POST \
--url https://api.aisa.one/v1/tasks/social.get_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "x",
"url": "https://x.com/NASA/status/2125691860706333095"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"author": {
"display_name": "<string>",
"handle": "<string>",
"platform": "tiktok",
"url": "<string>",
"user_id": "<string>"
},
"comments": 123,
"content_type": "post",
"duration_seconds": 123,
"hashtags": [
"<string>"
],
"is_sponsored": true,
"language": "<string>",
"likes": 123,
"location": {
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"raw": "<string>",
"region": "<string>"
},
"media": [
{
"duration_seconds": 123,
"height": 123,
"thumbnail_url": "<string>",
"type": "image",
"url": "<string>",
"width": 123
}
],
"mentions": [
"<string>"
],
"music_title": "<string>",
"platform": "tiktok",
"post_id": "<string>",
"published_at": "<string>",
"saves": 123,
"shares": 123,
"text": "<string>",
"title": "<string>",
"url": "<string>",
"views": 123,
"extras": {}
},
"status": "found",
"task": "social.get_post",
"version": 2
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"request_id": "<string>",
"retry_hint": "never",
"retryable": true,
"param": "<string>",
"problems": [
"<string>"
],
"similar_tasks": [
"<string>"
],
"task_id": "<string>"
}
}上方请求和响应面板使用此 API 发布的 Schema。条件必填和参数组合限制属于请求契约;组合筛选条件或账号身份前,请查看完整 Schema。
Microsoft 在 LinkedIn 上的公司动态
用 BV 号链接获取哔哩哔哩视频
用 weibo.com 链接获取微博帖子
仅表内参数值有价格;未列出的值不会回退到基础价格。
成功交付才收费;正常查空不收费。
发送相同请求并带上
示例
以下请求可直接运行;请求面板中也可选择同样的示例。 NASA 在 X 上的帖子{
"input": {
"platform": "x",
"url": "https://x.com/NASA/status/2125691860706333095"
}
}
{
"input": {
"platform": "linkedin",
"url": "https://www.linkedin.com/posts/microsoft_msignite-activity-7529683750469681152-seh_"
}
}
{
"input": {
"platform": "bilibili",
"url": "https://www.bilibili.com/video/BV1M1421t7hT"
}
}
{
"input": {
"platform": "weibo",
"url": "https://weibo.com/1722594714/RpkFitVsb"
}
}
计费
| 输入 | 计价单位 | 价格 (USD) |
|---|---|---|
| /input/platform = bilibili | 每次成功请求 | 0.002 |
| /input/platform = bluesky | 每次成功请求 | 0.028 |
| /input/platform = douyin | 每次成功请求 | 0.002 |
| /input/platform = facebook | 每次成功请求 | 0.028 |
| /input/platform = instagram | 每次成功请求 | 0.028 |
| /input/platform = kuaishou | 每次成功请求 | 0.004 |
| /input/platform = linkedin | 每次成功请求 | 0.028 |
| /input/platform = pinterest | 每次成功请求 | 0.028 |
| /input/platform = reddit | 每次成功请求 | 0.028 |
| /input/platform = rumble | 每次成功请求 | 0.028 |
| /input/platform = snapchat | 每次成功请求 | 0.028 |
| /input/platform = telegram | 每次成功请求 | 0.028 |
| /input/platform = threads | 每次成功请求 | 0.028 |
| /input/platform = tiktok | 每次成功请求 | 0.028 |
| /input/platform = truthsocial | 每次成功请求 | 0.056 |
| /input/platform = weibo | 每次成功请求 | 0.002 |
| /input/platform = x | 每次成功请求 | 0.028 |
| /input/platform = xiaohongshu | 每次成功请求 | 0.0443 |
| /input/platform = youtube | 每次成功请求 | 0.028 |
| /input/platform = zhihu | 每次成功请求 | 0.002 |
X-AISA-Cost-Mode: quote,获取与输入对应的报价;报价不执行任务,也不预扣资金。实际执行时预扣预计请求费用,按上述规则结算。用 X-AISA-Max-Price-USD 设置价格上限。
执行任务时使用 Idempotency-Key。错误时查看 error.code、error.request_id、error.retryable 和 error.retry_hint。提示先核对结算时,应先查询原请求再决定是否重试;不能把待结算当作已退款。