工具详情
为 X 候选账号补充来源与用户名变更线索
按用户名、主页链接或用户 ID 查询平台提供的来源信息,再关联回研究名单或合作候选表。了解哪些字段有用,以及它们不能证明什么。
在 Apify 查看价格与运行
由 Arjun 开发与维护
准备把一个 X 账号加入研究名单或合作候选表时,你可能需要补充它的平台来源信息和用户名变更线索。这个工具把 X 返回的相关字段集中到一条账号记录,减少来回打开不同页面的工作。
准备:账号用户名、主页链接或数字用户 ID。拿到:可用的账号来源、地区信号、用户名变更计数与时间,以及公开资料。接下来:把这些线索关联回已有候选表,记录需要进一步了解的事项。
从一个已知账号开始
在 Apify 的 JSON 输入编辑器粘贴下方配置,把 apify 换成你要查询的公开账号。先检查单个结果是否满足需求,再增加输入。
先用这份输入开始
{
"screenNames": [
"apify"
]
}如果上一步已经拿到 user_id,可以改用 {"userIds":["3510729917"]} 这样的输入格式;数字 ID 要保留为字符串。这个数字只是格式示例,不声称它与上面的账号对应。
screenNames 与 userIds 至少提供一种。不要为了核查一个候选账号,把它的所有粉丝都送进来源查询。运行前查看产品当前价格和费用设置。
完整输入参数
| 参数与类型 | 必填与默认值 | 含义与限制 |
|---|---|---|
screenNamesstring[] |
Schema 可选无默认值
| 用户名、@用户名或 X/Twitter 主页链接。至少提供 screenNames 或 userIds 一种。等价用户名格式会规范化去重。 |
userIdsstring[] |
Schema 可选无默认值
| 数字用户 ID 字符串。ID 不随用户名变化;无效与重复值会被忽略。 |
把来源信号当作待核实的信息
| 你关心的内容 | 查看字段 | 如何解释 |
|---|---|---|
| 能否关联回原来的账号? | user_id、screen_name、profile_url |
用 user_id 关联,用户名用于显示。账号改名后,不要按旧用户名或返回顺序拼接数据。 |
| X 提供了哪些来源信息? | account_based_in、account_source、account_location_accurate |
保留平台原值和可用性。地区信号不是实际居住地、国籍或身份认证。 |
| 用户名是否发生过变化? | username_changes_count、username_last_changed_at |
用于记录平台给出的变更线索,不是完整的历次用户名清单;改名本身不代表异常。 |
| 是否成功取得资料? | status、error |
把成功结果与不可用、暂停或请求失败状态分开;没有资料时保留未知。 |
该工具不做身份核验、不自动判断“真假账号”,也不证明对方适合合作。最终判断仍需结合公开内容、原始页面和你的具体业务需求。时间戳、空值和原始 profile 字段应按实际返回保留。
按结果类型查看完整记录
保留样例记录本身的全部字段,不把其他类型或未出现的可选字段补进来。真实记录、历史样例与文档示意分别标注;它们都不是实时数据。
内容记录:文档示意
记录 JSON
{
"status": "success",
"requested_screen_name": "apify",
"requested_user_id": "",
"user_id": "3510729917",
"screen_name": "apify",
"name": "Apify",
"profile_url": "https://x.com/apify",
"account_based_in": "United States",
"account_source": "Web",
"created_country_accurate": true,
"account_location_accurate": true,
"verification_type": "Business",
"affiliate_username": "ExampleOrg",
"affiliation_name": "Example Org",
"affiliation_url": "https://x.com/ExampleOrg",
"affiliation_badge_url": "https://pbs.twimg.com/profile_images/example_bigger.jpg",
"account_label": null,
"professional_type": "Business",
"professional_categories": [
{
"id": 713,
"name": "Technology",
"icon_name": "IconBriefcaseStroke"
}
],
"username_changes_count": 1,
"username_last_changed_at": "2022-09-26T05:44:58.550Z",
"username_last_changed_at_msec": 1664171098550,
"account_created_at": "2008-03-10T14:27:04Z",
"description": "Web scraping and browser automation platform.",
"location": "",
"website_url": "https://apify.com",
"bio_links": [
"https://apify.com"
],
"followers_count": 10000,
"following_count": 500,
"tweets_count": 3000,
"media_count": 600,
"likes_count": 2000,
"listed_count": 300,
"verified": false,
"blue_verified": true,
"protected": false,
"possibly_sensitive": false,
"business_affiliates_count": 0,
"creator_subscriptions_count": 0,
"profile_image_url": "https://pbs.twimg.com/profile_images/example_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/example",
"pinned_tweet_ids": [
"1234567890123456789"
],
"profile_interstitial_type": null,
"default_profile_image": false,
"can_media_tag": true,
"withheld_scope": null,
"withheld_description": null,
"profile": {
"account_based_in": "United States",
"source": "Web",
"created_country_accurate": true,
"rest_id": "3510729917",
"username_changes": {
"count": "1",
"last_changed_at_msec": "1664171098550"
},
"user_created_at": "Mon Mar 10 14:27:04 +0000 2008",
"user_name": "Apify",
"user_screen_name": "apify",
"location_accurate": true,
"verification": {
"verified": false,
"verified_type": "Business"
},
"professional": {
"professional_type": "Business",
"category": [
{
"id": 713,
"name": "Technology",
"icon_name": "IconBriefcaseStroke"
}
]
},
"pinned_tweet_ids_str": [
"1234567890123456789"
],
"can_media_tag": true
}
}状态记录:not_found
记录 JSON
{
"requested_screen_name": "unknown_user",
"requested_user_id": "",
"user_id": "",
"screen_name": "unknown_user",
"status": "not_found",
"error": "X user @unknown_user was not found."
}状态记录:request_failed
记录 JSON
{
"requested_screen_name": "example_user",
"screen_name": "example_user",
"status": "request_failed",
"error": "AboutAccountQuery failed after 5 attempts: connection timed out."
}完整输出字段参考
查看全部 49 个字段路径
| 字段 | Schema 类型 | 含义 |
|---|---|---|
status | string | 该记录的业务状态;结合记录类型阅读,不能把失败或无结果状态当作成功数据。success invalid_input not_found suspended request_failed partial |
requested_screen_name | string | 请求时使用的用户名 |
requested_user_id | string | 请求时使用的用户 ID |
user_id | string | 用户 ID |
screen_name | string | 返回账号的用户名,可能随时间改变。 |
name | string | 显示名称 |
profile_url | string | 账号主页链接 |
account_based_in | string | 平台返回的账号地区信号 |
account_source | string | 平台返回的账号来源 |
created_country_accurate | boolean | 来源提供的国家准确性标记 |
account_location_accurate | boolean | null | 来源提供的账号地区准确性标记 |
verification_type | string | null | 认证类型 |
affiliate_username | string | null | 关联机构账号用户名 |
affiliation_name | string | null | 关联机构名称 |
affiliation_url | string | null | 关联机构链接 |
affiliation_badge_url | string | null | 关联机构徽标链接 |
account_label | string | null | 账号标签 |
professional_type | string | null | 专业账号类型 |
professional_categories | object[] | 专业账号分类 |
username_changes_count | integer | null | 平台返回的用户名变更次数 |
username_last_changed_at | string | null | 最近用户名变更时间 |
username_last_changed_at_msec | integer | null | 最近用户名变更时间戳(毫秒) |
account_created_at | string | null | 账号创建时间 |
description | string | 账号简介 |
location | string | 自填地区 |
website_url | string | 网站链接 |
bio_links | string[] | 简介中的链接 |
followers_count | integer | null | 粉丝数 |
following_count | integer | null | 关注账号数 |
tweets_count | integer | null | 累计帖子数 |
media_count | integer | null | 媒体帖子数 |
likes_count | integer | null | 赞数 |
listed_count | integer | null | 返回账号被加入列表的计数。 |
verified | boolean | 来源认证标记 |
blue_verified | boolean | 蓝标状态 |
protected | boolean | 受保护账号标记 |
possibly_sensitive | boolean | 来源敏感内容标记 |
business_affiliates_count | integer | null | 商业附属账号数量 |
creator_subscriptions_count | integer | null | 创作者订阅数量 |
profile_image_url | string | 头像链接 |
profile_banner_url | string | 横幅链接 |
pinned_tweet_ids | string[] | 置顶帖子 ID |
profile_interstitial_type | string | null | 账号提示类型 |
default_profile_image | boolean | null | 是否使用默认头像。 |
can_media_tag | boolean | null | 媒体标记权限 |
withheld_scope | string | null | 来源限制范围 |
withheld_description | string | null | 来源限制说明 |
error | string | 无法获取资料时的错误说明。 |
profile | object | 来源账号对象 |
把查询结果放回实际工作
合作筛选案例介绍如何先找到候选账号,再按需要增加来源信息;公开 Lists 整理案例说明如何先去重,避免重复查询同一个账号。
本工具由 Arjun 独立开发,运行与计费在你的 Apify 账户完成。