Twitter X媒体探索API专注于用户媒体,允许高效访问特定Twitter账户共享的多媒体内容(图像、视频、GIF)。这个独特的端点通过提供特定参数来简化媒体数据提取,例如用户以识别用户和游标以无缝分页结果。非常适合希望将视觉内容集成到应用程序中、进行趋势分析或监控社交媒体活动的开发者,这个API为特定用例提供了集中解决方案。其优化设计确保快速响应时间和高效处理大量数据,适应小型和大型项目。兼容市场策略、社交媒体研究和内容自动化,这个API提供可靠且易于使用的结果,具有清晰和直接的实现过程。简化视觉数据提取,提高应用程序的影响力,使用这个专业的用户媒体工具。
发送一个GET请求,参数包括用户(ID或用户名)和可选的游标,以获取共享媒体并管理分页
获取用户媒体 - 端点功能
| 对象 | 描述 |
|---|---|
user |
[必需] |
cursor |
可选 |
{"cursor":{"bottom":"DAABCgABGenf3Fu___cKAAIZ5rKNA5bR_wgAAwAAAAIAAA","top":"DAABCgABGenf3FvAJxEKAAIZ6DKyYJoQFwgAAwAAAAEAAA"},"data":{"__typename":"TimelineAddEntries","entries":[{"entryId":"tweet-1866797787251347479","sortIndex":"1867269658046889984","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","rest_id":"1866797787251347479","view_count_info":{"count":"44846211","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866797787251347479","created_at":"Wed Dec 11 10:50:50 +0000 2024","display_text_range":[0,37],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[],"timestamps":[]},"extended_entities":{"media":[{"display_url":"pic.x.com/20R38Qgk5B","expanded_url":"https://x.com/elonmusk/status/1866797787251347479/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1866797784227254275","indices":[38,61],"media_key":"3_1866797784227254275","media_url_https":"https://pbs.twimg.com/media/GegysaxaEAMgqoz.jpg","original_info":{"width":825,"height":359,"focus_rects":[{"x":0,"y":0,"w":641,"h":359},{"x":47,"y":0,"w":359,"h":359},{"x":69,"y":0,"w":315,"h":359},{"x":136,"y":0,"w":180,"h":359},{"x":0,"y":0,"w":825,"h":359}]},"sizes":{"large":{"w":825,"h":359}},"type":"photo","url":"https://t.co/20R38Qgk5B"}]},"favorite_count":187687,"favorited":false,"full_text":"No, I definitely melted it down 1000% https://t.co/20R38Qgk5B","is_quote_status":false,"lang":"en","possibly_sensitive":false,"possibly_sensitive_editable":true,"quote_count":1023,"reply_count":7919,"retweet_count":12696,"retweeted":false,"user_id_str":"44196397","bookmarked":false,"bookmark_count":3385},"core":{"user_result":{"result":{"__typename":"User","rest_id":"44196397","is_blue_verified":true,"profile_image_shape":"Circle","affiliates_highlighted_label":{"label":{"url":{"urlType":"DeepLink","url":"https://twitter.com/X"},"badge":{"url":"https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"},"userLabelType":"BusinessLabel","userLabelDisplayType":"Badge","description":"X"}},"legacy":{"can_dm":false,"can_media_tag":false,"advertiser_account_service_levels":["smb"],"advertiser_account_type":"promotable_user","analytics_type":"enabled","created_at":"Tue Jun 02 20:12:29 +0000 2009","description":"The people voted for major government reform","entities":{"description":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[]}},"fast_followers_count":0,"favourites_count":99863,"followers_count":207272455,"friends_count":871,"geo_enabled":false,"has_custom_timelines":true,"has_extended_profile":true,"id_str":"44196397","is_translator":false,"location":"","media_count":2935,"name":"Elon Musk","normal_followers_count":207272455,"pinned_tweet_ids_str":["1867264058627621191"],"profile_background_color":"C0DEED","profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1726163678","profile_image_url_https":"https://pbs.twimg.com/profile_images/1858316737780781056/kPL61o0F_normal.jpg","profile_interstitial_type":"","profile_link_color":"0084B4","protected":false,"screen_name":"elonmusk","statuses_count":62277,"translator_type_enum":"None","verified":false,"withheld_in_countries":[]},"super_follow_eligible":true,"super_followed_by":false,"super_following":false,"private_super_following":false,"exclusive_tweet_following":false}}},"edit_control":{"__typename":"EditControlInitial","edit_tweet_ids":["1866797787251347479"],"editable_until_msecs":"1733917850000","edits_remaining":"5","is_edit_eligible":false},"unmention_data":{},"quick_promote_eligibility":{"eligibility":"IneligibleNotProfessional"},"conversation_muted":false,"is_translatable":true}},"tweetDisplayType":"Tweet"}}},{"entryId":"tweet-1866797259968614885","sortIndex":"1867269658046889983","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","birdwatch_pivot":{"call_to_action":{"prompt":"Bu size yardımcı oldu mu?","title":"Değerlendir","destination_url":"https://twitter.com/i/birdwatch/n/1866877899539890333"},"destination_url":"https://twitter.com/i/birdwatch/n/1866877899539890333","footer":{"text":"Bağlam, X uygulamasını kullanan kişiler tarafından yazılır ve başkaları tarafından Yardımcı Oldu olarak değerlendirildiğinde görüntülenir. Daha fazlasını keşfet.","entities":[{"fromIndex":140,"toIndex":161,"ref":{"__typename":"TimelineUrl","url":"https://twitter.com/i/flow/join-birdwatch","urlType":"ExternalUrl"}}]},"note":{"rest_id":"1866877899539890333","summary":{"text":"This refers to grokking, a topic in machine learning about figuring out a solution after an extended training period. It is not about the Xai language model.\n\nhttps://arxiv.org/abs/2201.02177\n\nhttps://proceedings.neurips.cc/paper_files/paper/2022/hash/dfc310e81992d2e4cedc09ac47eff13e-Abstract-Conference.html","entities":[{"fromIndex":159,"toIndex":191,"ref":{"__typename":"TimelineUrl","url":"https://t.co/ltWMD8tE7y","urlType":"ExternalUrl"}},{"fromIndex":193,"toIndex":309,"ref":{"__typename":"TimelineUrl","url":"https://t.co/CG3J4RmQxQ","urlType":"ExternalUrl"}}]}},"subtitle":{"text":"This refers to grokking, a topic in machine learning about figuring out a solution after an extended training period. It is not about the Xai language model.\n\narxiv.org/abs/2201.02177\n\nproceedings.neurips.cc/paper_files/pa…","entities":[{"fromIndex":159,"toIndex":183,"ref":{"__typename":"TimelineUrl","url":"https://t.co/ltWMD8tE7y","urlType":"ExternalUrl"}},{"fromIndex":185,"toIndex":223,"ref":{"__typename":"TimelineUrl","url":"https://t.co/CG3J4RmQxQ","urlType":"ExternalUrl"}}]},"title":"Okuyucular, insanların bilmek isteyebileceğini düşündükleri içerikler ekledi","shorttitle":"Okuyucular bağlam ekledi","icon_type":"BirdwatchV1Icon","visual_style":"Default"},"rest_id":"1866797259968614885","view_count_info":{"count":"8703553","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866797259968614885","created_at":"Wed Dec 11 10:48:44 +0000 2024","display_text_range":[0,45],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[{"id_str":"1720665183188922368","indices":[24,29],"name":"Grok","screen_name":"grok"}],"timestamps":[]},"extended_entities":{"media":[{"display_url":"pic.x.com/zwl0MGU0og","expanded_url":"https://x.com/elonmusk/status/1866797259968614885/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1866797256642531330","indices":[46,69],"media_key":"3_1866797256642531330","media_url_https":"https://pbs.twimg.com/media/GegyNtXaEAIh3XI.jpg","original_info":{"width":1534,"height":740,"focus_rects":[{"x":107,"y":0,"w":1321,"h":740},{"x":397,"y":0,"w":740,"h":740},{"x":443,"y":0,"w":649,"h":740},{"x":582,"y":0,"w":370,"h":740},{"x":0,"y":0,"w":1534,"h":740}]},"sizes":{"large":{"w":1534,"h":740}},"type":"photo","url":"https://t.co/zwl0MGU0og","allow_download_status":{"allow_download":true}}]},"favorite_count":18063,"favorited":false,"full_text":"arXiv papers mentioning @Grok in the abstract https://t.co/zwl0MGU0og","is_quote_status":false,"lang":"en","possibly_sensitive":false,"possibly_sensitive_editable":true,"quote_count":248,"reply_count":2772,"retweet_count":2588,"retweeted":false,"user_id_str":"44196397","bookmarked":false,"bookmark_count":819},"core":{"user_result":{"result":{"__typename":"User","rest_id":"44196397","is_blue_verified":true,"profile_image_shape":"Circle","affiliates_highlighted_label":{"label":{"url":{"urlType":"DeepLink","url":"https://twitter.com/X"},"badge":{"url":"https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"},"userLabelType":"BusinessLabel","userLabelDisplayType":"Badge","description":"X"}},"legacy":{"can_dm":false,"can_media_tag":false,"advertiser_account_service_levels":["smb"],"advertiser_account_type":"promotable_user","analytics_type":"enabled","created_at":"Tue Jun 02 20:12:29 +0000 2009","description":"The people voted for major government reform","entities":{"description":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[]}},"fast_followers_count":0,"favourites_count":99863,"followers_count":207272455,"friends_count":871,"geo_enabled":false,"has_custom_timelines":true,"has_extended_profile":true,"id_str":"44196397","is_translator":false,"location":"","media_count":2935,"name":"Elon Musk","normal_followers_count":207272455,"pinned_tweet_ids_str":["1867264058627621191"],"profile_background_color":"C0DEED","profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1726163678","profile_image_url_https":"https://pbs.twimg.com/profile_images/1858316737780781056/kPL61o0F_normal.jpg","profile_interstitial_type":"","profile_link_color":"0084B4","protected":false,"screen_name":"elonmusk","statuses_count":62277,"translator_type_enum":"None","verified":false,"withheld_in_countries":[]},"super_follow_eligible":true,"super_followed_by":false,"super_following":false,"private_super_following":false,"exclusive_tweet_following":false}}},"edit_control":{"__typename":"EditControlInitial","edit_tweet_ids":["1866797259968614885"],"editable_until_msecs":"1733917724000","edits_remaining":"5","is_edit_eligible":true},"unmention_data":{},"quick_promote_eligibility":{"eligibility":"IneligibleNotProfessional"},"conversation_muted":false,"is_translatable":true}},"tweetDisplayType":"Tweet"}}},{"entryId":"tweet-1866785244046823751","sortIndex":"1867269658046889982","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","rest_id":"1866785244046823751","view_count_info":{"count":"185331","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866742307623784882","created_at":"Wed Dec 11 10:01:00 +0000 2024","display_text_range":[15,15],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[{"id_str":"1560341081576939524","indices":[0,15]}]}}}}}}}]},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/5821/twitter+x+media+explorer+api/7607/get+user+media?user=44196397' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
Twitter X 媒体探索 API 是一个专门的工具,允许开发者通过一个单一的端点查询特定 Twitter 用户分享的多媒体内容(图片 视频 GIF)
您可以通过指定要访问的用户来过滤媒体结果。此外,API 支持光标导航,以便在大量结果中进行分页
该API提供访问Twitter用户共享的各种类型的多媒体内容,包括图像 视频和GIF
该API简化了视觉内容的提取,提供快速响应时间,并高效处理大量数据,非常适合与营销策略、社交媒体研究和内容自动化相关的应用
是的,该API旨在适应小型和大型项目,无论您的应用程序规模如何,都能提供可靠且易于使用的结果
获取用户媒体端点返回指定Twitter用户分享的多媒体内容,包括图像、视频和GIF 响应包括元数据,如推文ID、创建日期、查看次数和媒体URL
响应中的关键字段包括 `entryId` `created_at` `view_count_info` 和 `extended_entities.media` 提供媒体项目的 URL 和可用状态
响应数据采用JSON格式结构,包含用于分页的`cursor`对象和一个`data`对象,该对象包含一个媒体条目的数组,每个条目都有详细内容和元数据
该端点接受参数,例如`user`(ID或用户名)来指定Twitter账户,以及`cursor`用于分页以浏览多个结果页面
用户可以通过指定`user`参数来定制请求,以针对特定账户,并使用`cursor`参数来控制分页,实现定制化数据检索
典型的用例包括将视觉内容集成到应用程序中 进行媒体参与的趋势分析 以及为了营销或研究目的监测社交媒体活动
用户可以通过提取媒体 URL 来在应用程序中显示返回的数据 分析观看次数以获取参与度指标 并利用时间戳进行按时间顺序的内容组织
数据质量通过Twitter建立的内容审查流程得以维护,确保返回的多媒体内容准确并反映用户的原始帖子
服务级别:
100%
响应时间:
1,256ms
服务级别:
100%
响应时间:
1,626ms
服务级别:
100%
响应时间:
1,348ms
服务级别:
100%
响应时间:
30ms
服务级别:
100%
响应时间:
10,167ms
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
25ms
服务级别:
100%
响应时间:
17ms
服务级别:
100%
响应时间:
17,322ms
服务级别:
100%
响应时间:
1,709ms