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建立的内容审查流程得以维护,确保返回的多媒体内容准确并反映用户的原始帖子
Zyla API Hub 就像一个大型 API 商店,您可以在一个地方找到数千个 API。我们还为所有 API 提供专门支持和实时监控。注册后,您可以选择要使用的 API。请记住,每个 API 都需要自己的订阅。但如果您订阅多个 API,您将为所有这些 API 使用相同的密钥,使事情变得更简单。
价格以 USD(美元)、EUR(欧元)、CAD(加元)、AUD(澳元)和 GBP(英镑)列出。我们接受所有主要的借记卡和信用卡。我们的支付系统使用最新的安全技术,由 Stripe 提供支持,Stripe 是世界上最可靠的支付公司之一。如果您在使用卡片付款时遇到任何问题,请通过 [email protected]
此外,如果您已经以这些货币中的任何一种(USD、EUR、CAD、AUD、GBP)拥有有效订阅,该货币将保留用于后续订阅。只要您没有任何有效订阅,您可以随时更改货币。
定价页面上显示的本地货币基于您 IP 地址的国家/地区,仅供参考。实际价格以 USD(美元)为单位。当您付款时,即使您在我们的网站上看到以本地货币显示的等值金额,您的卡片对账单上也会以美元显示费用。这意味着您不能直接使用本地货币付款。
有时,银行可能会因其欺诈保护设置而拒绝收费。我们建议您首先联系您的银行,检查他们是否阻止了我们的收费。此外,您可以访问账单门户并更改关联的卡片以进行付款。如果这些方法不起作用并且您需要进一步帮助,请通过 [email protected]
价格由月度或年度订阅决定,具体取决于所选计划。
API 调用根据成功请求从您的计划中扣除。每个计划都包含您每月可以进行的特定数量的调用。只有成功的调用(由状态 200 响应指示)才会计入您的总数。这确保失败或不完整的请求不会影响您的月度配额。
Zyla API Hub 采用月度订阅系统。您的计费周期将从您购买付费计划的那一天开始,并在下个月的同一日期续订。因此,如果您想避免未来的费用,请提前取消订阅。
要升级您当前的订阅计划,只需转到 API 的定价页面并选择您要升级到的计划。升级将立即生效,让您立即享受新计划的功能。请注意,您之前计划中的任何剩余调用都不会转移到新计划,因此在升级时请注意这一点。您将被收取新计划的全部金额。
要检查您本月剩余多少 API 调用,请参考响应标头中的 "X-Zyla-API-Calls-Monthly-Remaining" 字段。例如,如果您的计划允许每月 1,000 个请求,而您已使用 100 个,则响应标头中的此字段将显示 900 个剩余调用。
要查看您的计划允许的最大 API 请求数,请检查 "X-Zyla-RateLimit-Limit" 响应标头。例如,如果您的计划包括每月 1,000 个请求,此标头将显示 1,000。
"X-Zyla-RateLimit-Reset" 标头显示您的速率限制重置之前的秒数。这告诉您何时您的请求计数将重新开始。例如,如果它显示 3,600,则意味着还有 3,600 秒直到限制重置。
是的,您可以随时通过访问您的账户并在账单页面上选择取消选项来取消您的计划。请注意,升级、降级和取消会立即生效。此外,取消后,您将不再有权访问该服务,即使您的配额中还有剩余调用。
您可以通过我们的聊天渠道联系我们以获得即时帮助。我们始终在线,时间为上午 8 点至下午 5 点(EST)。如果您在该时间之后联系我们,我们将尽快回复您。此外,您可以通过 [email protected]
为了让您有机会在没有任何承诺的情况下体验我们的 API,我们提供 7 天免费试用,允许您免费进行最多 50 次 API 调用。此试用只能使用一次,因此我们建议将其应用于您最感兴趣的 API。虽然我们的大多数 API 都提供免费试用,但有些可能不提供。试用在 7 天后或您进行了 50 次请求后结束,以先发生者为准。如果您在试用期间达到 50 次请求限制,您需要"开始您的付费计划"以继续发出请求。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。或者,如果您在第 7 天之前不取消订阅,您的免费试用将结束,您的计划将自动计费,授予您访问计划中指定的所有 API 调用的权限。请记住这一点以避免不必要的费用。
7 天后,您将被收取试用期间订阅的计划的全额费用。因此,在试用期结束前取消很重要。因忘记及时取消而提出的退款请求不被接受。
当您订阅 API 免费试用时,您可以进行最多 50 次 API 调用。如果您希望超出此限制进行额外的 API 调用,API 将提示您执行"开始您的付费计划"。您可以在个人资料中的订阅 -> 选择您订阅的 API -> 定价标签下找到"开始您的付费计划"按钮。
付款订单在每月 20 日至 30 日之间处理。如果您在 20 日之前提交请求,您的付款将在此时间范围内处理。
服务级别:
100%
响应时间:
1,256ms
服务级别:
100%
响应时间:
1,626ms
服务级别:
100%
响应时间:
1,348ms
服务级别:
100%
响应时间:
25ms
服务级别:
100%
响应时间:
30ms
服务级别:
100%
响应时间:
17ms
服务级别:
100%
响应时间:
10,167ms
服务级别:
100%
响应时间:
20,003ms
服务级别:
100%
响应时间:
13ms
服务级别:
100%
响应时间:
89ms
服务级别:
100%
响应时间:
4,377ms
服务级别:
100%
响应时间:
227ms
服务级别:
100%
响应时间:
246ms
服务级别:
100%
响应时间:
18ms
服务级别:
100%
响应时间:
285ms
服务级别:
100%
响应时间:
212ms
服务级别:
100%
响应时间:
2,706ms
服务级别:
100%
响应时间:
24ms
服务级别:
100%
响应时间:
8,745ms
服务级别:
100%
响应时间:
278ms