curl --request POST \
--url https://api.aisa.one/v1/tasks/social.resolve_id \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "facebook",
"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.resolve_id",
"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>"
}
}社媒
社媒 URL、用户名与平台 ID 互转
已知 handle、平台用户 ID 或(YouTube 上)频道 URL 中的一个,需要其余几项时使用:用户 ID、handle 和主页 URL。也支持 Threads、Bluesky、Truth Social 和 Twitch(用 handle)、Facebook(用 handle、数字 ID 或主页 URL)、LinkedIn 公司主页(用 handle 或 URL)、抖音(用主页 URL)、微博(用 uid 或主页 URL)以及知乎(用 url token 或主页 URL)。
POST
https://api.aisa.one
/
v1
/
tasks
/
social.resolve_id
curl --request POST \
--url https://api.aisa.one/v1/tasks/social.resolve_id \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"platform": "facebook",
"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.resolve_id",
"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 账号
用主页 URL 解析微博账号
仅表内参数值有价格;未列出的值不会回退到基础价格。
成功交付才收费;正常查空不收费。
发送相同请求并带上
示例
以下请求可直接运行;请求面板中也可选择同样的示例。 用 handle 解析 NASA 的 Facebook 账号{
"input": {
"platform": "facebook",
"handle": "NASA"
}
}
{
"input": {
"platform": "linkedin",
"url": "https://www.linkedin.com/company/microsoft/"
}
}
{
"input": {
"platform": "weibo",
"url": "https://weibo.com/u/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 = 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。提示先核对结算时,应先查询原请求再决定是否重试;不能把待结算当作已退款。