curl --request POST \
--url https://api.aisa.one/v1/tasks/social.get_profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "tiktok",
"handle": "nasa"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"account_type": "personal",
"avatar_url": "<string>",
"bio": "<string>",
"category": "<string>",
"created_at": "<string>",
"display_name": "<string>",
"engagement_rate": 123,
"external_url": "<string>",
"followers": 123,
"following": 123,
"handle": "<string>",
"language": "<string>",
"last_posted_at": "<string>",
"likes_count": 123,
"location": {
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"raw": "<string>",
"region": "<string>"
},
"platform": "tiktok",
"posts_count": 123,
"private": true,
"url": "<string>",
"user_id": "<string>",
"verified": true,
"extras": {}
},
"status": "found",
"task": "social.get_profile",
"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、Instagram、Threads、Bluesky、Truth Social、Twitch、Snapchat、Telegram(公开频道)、Facebook(公共主页或个人主页,也可以用数字 ID 或 URL)或 LinkedIn(公司主页,也可以用 URL)上的 handle(YouTube 也可以是频道 ID 或 URL),抖音主页 URL,微博 uid 或主页 URL,或知乎 url token 或主页 URL,需要账号的公开资料和主要数据(粉丝、关注、帖子数、获赞数)时使用。
POST
https://api.aisa.one
/
v1
/
tasks
/
social.get_profile
curl --request POST \
--url https://api.aisa.one/v1/tasks/social.get_profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "tiktok",
"handle": "nasa"
}
}
'{
"meta": {
"approximate_fields": [
"<string>"
],
"delivered": true,
"missing_fields": {}
},
"result": {
"account_type": "personal",
"avatar_url": "<string>",
"bio": "<string>",
"category": "<string>",
"created_at": "<string>",
"display_name": "<string>",
"engagement_rate": 123,
"external_url": "<string>",
"followers": 123,
"following": 123,
"handle": "<string>",
"language": "<string>",
"last_posted_at": "<string>",
"likes_count": 123,
"location": {
"city": "<string>",
"country": "<string>",
"latitude": 123,
"longitude": 123,
"raw": "<string>",
"region": "<string>"
},
"platform": "tiktok",
"posts_count": 123,
"private": true,
"url": "<string>",
"user_id": "<string>",
"verified": true,
"extras": {}
},
"status": "found",
"task": "social.get_profile",
"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。
用公司主页 URL 获取 Microsoft 的 LinkedIn 主页
用数字 user_id 获取微博账号
仅表内参数值有价格;未列出的值不会回退到基础价格。
成功交付才收费;正常查空不收费。
发送相同请求并带上
示例
以下请求可直接运行;请求面板中也可选择同样的示例。 用 handle 获取 NASA 的 TikTok 主页{
"input": {
"platform": "tiktok",
"handle": "nasa"
}
}
{
"input": {
"platform": "linkedin",
"url": "https://www.linkedin.com/company/microsoft/"
}
}
{
"input": {
"platform": "weibo",
"user_id": "1722594714"
}
}
计费
| 输入 | 计价单位 | 价格 (USD) |
|---|---|---|
| /input/platform = bluesky | 每次成功请求 | 0.028 |
| /input/platform = douyin | 每次成功请求 | 0.002 |
| /input/platform = facebook | 每次成功请求 | 0.028 |
| /input/platform = instagram | 每次成功请求 | 0.028 |
| /input/platform = linkedin | 每次成功请求 | 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 = twitch | 每次成功请求 | 0.028 |
| /input/platform = weibo | 每次成功请求 | 0.002 |
| /input/platform = x | 每次成功请求 | 0.028 |
| /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。提示先核对结算时,应先查询原请求再决定是否重试;不能把待结算当作已退款。