Twitter账号信息API旨在为需要访问准确和最新数据的用户提供Twitter账号信息。只需提供用户名,该API便会返回与该个人资料相关的广泛结构化信息。它非常适合社交监测集成、在线声誉分析、影响者搜索引擎、身份验证或数字行为研究。
该API提供关键数据,如用户名、全名、个人简介、个人资料照片、账户创建日期、位置、外部链接、关注者数量、发布的推文数量、验证状态(包括传统验证和“企业验证”)、账户类型(个人或专业)以及其他有用指标,如加入列表的次数或被推荐推文的数量。它还识别用户是否属于认证组织或是否启用了高级功能,如自定义时间线或活跃订阅。
要使用此端点,您必须在参数中指定用户名
账户数据 - 端点功能
| 对象 | 描述 |
|---|---|
username |
[必需] Enter a username |
{"rest_id":"44196397","affiliates_highlighted_label":{"label":{"url":{"url":"https://twitter.com/X","urlType":"DeepLink"},"badge":{"url":"https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"},"description":"X","userLabelType":"BusinessLabel","userLabelDisplayType":"Badge"}},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":false,"created_at":"Tue Jun 02 20:12:29 +0000 2009","default_profile":false,"default_profile_image":false,"description":"","entities":{"description":{"urls":[]}},"fast_followers_count":0,"favourites_count":157921,"followers_count":222779843,"friends_count":1167,"has_custom_timelines":true,"is_translator":false,"listed_count":163648,"location":"","media_count":3974,"name":"Elon Musk","normal_followers_count":222779843,"pinned_tweet_ids_str":["1946759974522356064"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1739948056","profile_image_url_https":"https://pbs.twimg.com/profile_images/1936002956333080576/kqqe2iWO_normal.jpg","profile_interstitial_type":"","screen_name":"elonmusk","statuses_count":81868,"translator_type":"none","verified":false,"want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","professional":{"rest_id":"1679729435447275522","professional_type":"Creator","category":[]},"tipjar_settings":{"is_enabled":false},"super_follow_eligible":true,"verification":{"verified":false},"legacy_extended_profile":{},"is_profile_translatable":false,"has_hidden_subscriptions_on_profile":true,"verification_info":{"is_identity_verified":false,"reason":{"description":{"text":"This account is verified because it's an affiliate of @X on X. Learn more","entities":[{"from_index":54,"to_index":56,"ref":{"url":"https://twitter.com/X","url_type":"ExternalUrl"}},{"from_index":63,"to_index":73,"ref":{"url":"https://help.twitter.com/en/rules-and-policies/profile-labels","url_type":"ExternalUrl"}}]},"verified_since_msec":"-156836000000000","override_verified_year":-3000}},"highlights_info":{"can_highlight_tweets":true,"highlighted_tweets":"676"},"user_seed_tweet_count":0,"premium_gifting_eligible":false,"business_account":{},"creator_subscriptions_count":222}
curl --location --request GET 'https://zylalabs.com/api/8659/twitter+account+information+api/15180/account+data?username=elonmusk' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
该API返回有关Twitter帐户的详细信息,包括用户名、全名、个人简介、头像、帐户创建日期、位置、外部链接、关注者数量、推文数量、验证状态、帐户类型以及参与度指标,例如列表添加和精选推文
响应中的关键字段包括“用户名”、“全名”、“个人简介”、“头像”、“关注者数量”、“推文数量”、“验证状态”和“账户类型”每个字段提供有关账户身份和活动的具体信息
响应数据以JSON格式结构化,每个键代表Twitter账户的特定属性。这使得解析和集成到应用程序中变得容易,使开发人员能够高效地访问相关信息
该API提供的信息包括用户人口统计(位置,账户类型)、参与度指标(关注者,推文)和验证详情(传统和商业验证)这些综合数据支持各种分析和监控需求
用户可以通过在API调用中指定所需的用户名来定制请求。目前,API不支持用于过滤或修改响应的附加参数,仅专注于指定帐户的数据
典型的用例包括社交媒体监测、影响者识别、在线声誉管理、身份验证和数字行为分析 这些数据帮助企业和研究人员了解用户在推特上的参与和影响
数据准确性通过直接从Twitter平台获取信息来保持,确保检索到的细节反映了账户的最新状态 Twitter的定期更新有助于维护提供数据的完整性
如果API返回部分或空结果,这可能表明指定的用户名不存在或是私密的。用户应该验证用户名的正确性,并考虑在他们的应用程序中优雅地处理此类情况,可能通过提供用户反馈来实现
服务级别:
100%
响应时间:
3,695ms
服务级别:
100%
响应时间:
642ms
服务级别:
100%
响应时间:
3,723ms
服务级别:
100%
响应时间:
12,595ms
服务级别:
100%
响应时间:
1,048ms
服务级别:
100%
响应时间:
14,851ms
服务级别:
100%
响应时间:
53ms
服务级别:
100%
响应时间:
52ms
服务级别:
100%
响应时间:
1,497ms
服务级别:
100%
响应时间:
506ms
服务级别:
100%
响应时间:
451ms
服务级别:
100%
响应时间:
630ms
服务级别:
100%
响应时间:
1,033ms
服务级别:
100%
响应时间:
2,714ms
服务级别:
100%
响应时间:
273ms
服务级别:
100%
响应时间:
537ms
服务级别:
100%
响应时间:
3,154ms
服务级别:
100%
响应时间:
134ms
服务级别:
100%
响应时间:
343ms
服务级别:
100%
响应时间:
428ms