获取推特数据 API

通过此API查看推文详细信息 帐户详细信息 相关推文等
通过 MCP 从您的 AI 代理使用此 API
支持 OpenClaw、Claude Code/Desktop、Cursor、Windsurf、Cline 以及任何兼容 MCP 的 AI 客户端。
文档和设置
通过封装此 MCP 创建技能: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

 

关于API:

全球的新闻和时事可以在Twitter上获取。可以使用浏览器和移动设备访问Twitter。我们还为公司、开发者和用户提供通过我们的API对Twitter数据的程序化访问。

Twitter数据与大多数其他社交网络发布的数据不同,因为它包含用户选择公开广播的信息。通过我们的API平台,用户选择公开的数据可以轻松访问。

 

此API接收什么以及您的API提供什么(输入/输出)?

使用GetTwitter API,您可以获取帖子、用户信息、推文详细信息、账户信息、相关推文等。

通过输入用户的Twitter用户名,您可以获得以下信息:

  • 用户的ID。
  • 粉丝的数量和列表。
  • 他们关注的用户数量和列表。
  • 账户是否经过验证。
  • 账户是公开的还是私人。
  • 个人资料图片的URL。
  • 账户的推文数量及其列表。
  • 您可以获取推文的内容、创建日期、每条推文的点赞和转发数量。

 

此API的最常见使用案例是什么?

此API非常适合那些希望了解Twitter上名人的内容创作者。

此外,如果您是市场营销机构,您将收集有关用户关注的人的信息,以更好地定位您的活动。

 

您的计划是否有任何限制?

唯一的限制是您每月可以进行的API调用次数。

API 文档

端点


通过传递Twitter用户名获取用户信息

获取用户ID、粉丝数量、用户关注了多少人、是否经过验证、账户是公共还是私密、个人资料图片URL以及账户中的推文数量



                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/10/user+details
                                                                            
                                                                        

用户详情 - 端点功能

对象 描述
username [必需] The Twitter's username we want to query for.
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"creation_date":"Thu Dec 06 03:49:48 +0000 2007","user_id":"10893142","username":"leomessi","name":"レオメッシー","follower_count":6929,"following_count":235,"favourites_count":234,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Kyoto","profile_pic_url":"https://pbs.twimg.com/profile_images/68583146/comiket_07_normal.jpg","profile_banner_url":null,"description":"んもうTwitterはこれに統一しよう!\nということで帰ったきましたただいまー","external_url":null,"number_of_tweets":8191,"bot":false,"timestamp":1196912988,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":29,"verified_type":null}
                                                                                                                                                                                                                    
                                                                                                    

用户详情 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/10/user+details?username=leomessi' --header 'Authorization: Bearer YOUR_API_KEY' 


    

通过用户名查询获取推特列表

您将获得推特的创建日期、文本以及转发和收藏的数量



                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/11/tweets+per+user
                                                                            
                                                                        

用户每条推文 - 端点功能

对象 描述
username [必需] The Twitter's username we want to query for.
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"results":[{"tweet_id":"1882927361525510253","creation_date":"Fri Jan 24 23:04:00 +0000 2025","text":"I don't carry cash because that wouldn't be on brand.","media_url":null,"video_url":null,"user":{"creation_date":"Thu Mar 10 21:28:58 +0000 2016","user_id":"708041982187155456","username":"Zelle","name":"Zelle","follower_count":53605,"following_count":914,"favourites_count":4895,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Look in your banking app 😉","profile_pic_url":"https://pbs.twimg.com/profile_images/893501055299796992/EIGQb10a_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/708041982187155456/1690493451","description":"A fast, easy way to send and receive money with people you trust. For ❓s with the Zelle mobile app, DM @ZelleSupport or call 844-428-8542","external_url":"https://t.co/XEyCKOzv04","number_of_tweets":3569,"bot":false,"timestamp":1457645338,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":null,"verified_type":null},"language":"en","favorite_count":1,"retweet_count":0,"reply_count":1,"quote_count":0,"retweet":false,"views":499,"timestamp":1737759840,"video_view_count":null,"in_reply_to_status_id":null,"quoted_status_id":null,"binding_values":null,"expanded_url":null,"retweet_tweet_id":null,"extended_entities":null,"conversation_id":"1882927361525510253","retweet_status":null,"quoted_status":null,"bookmark_count":0,"source":null,"community_note":null},{"tweet_id":"1882136169938317360","creation_date":"Wed Jan 22 18:40:05 +0000 2025","text":"When they get it, they REALLY get it 💜 https://t.co/TGjymRpdNx","media_url":["https://pbs.twimg.com/media/Gh6w2wVXIAAx7QD.jpg"],"video_url":null,"user":{"creation_date":"Thu Mar 10 21:28:58 +0000 2016","user_id":"708041982187155456","username":"Zelle","name":"Zelle","follower_count":53605,"following_count":914,"favourites_count":4895,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Look in your banking app 😉","profile_pic_url":"https://pbs.twimg.com/profile_images/893501055299796992/EIGQb10a_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/708041982187155456/1690493451","description":"A fast, easy way to send and receive money with people you trust. For ❓s with the Zelle mobile app, DM @ZelleSupport or call 844-428-8542","external_url":"https://t.co/XEyCKOzv04","number_of_tweets":3569,"bot":false,"timestamp":1457645338,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":null,"verified_type":null},"language":"en","favorite_count":4,"retweet_count":0,"reply_count":0,"quote_count":0,"retweet":false,"views":1166,"timestamp":1737571205,"video_view_count":null,"in_reply_to_status_id":null,"quoted_status_id":null,"binding_values":null,"expanded_url":null,"retweet_tweet_id":null,"extended_entities":{"media":[{"display_url":"pic.x.com/TGjymRpdNx","expanded_url":"https://x.com/Zelle/status/1882136169938317360/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1882136149021368320","indices":[39,62],"media_key":"3_1882136149021368320","media_url_https":"https://pbs.twimg.com/media/Gh6w2wVXIAAx7QD.jpg","original_info":{"width":1080,"height":1080,"focus_rects":[{"x":0,"y":319,"w":1080,"h":605},{"x":0,"y":0,"w":1080,"h":1080},{"x":40,"y":0,"w":947,"h":1080},{"x":243,"y":0,"w":540,"h":1080},{"x":0,"y":0,"w":1080,"h":1080}]},"sizes":{"large":{"w":1080,"h":1080}},"type":"photo","url":"https://t.co/TGjymRpdNx"}]},"conversation_id":"1882136169938317360","retweet_status":null,"quoted_status":null,"bookmark_count":0,"source":null,"community_note":null},{"tweet_id":"1881356201423691949","creation_date":"Mon Jan 20 15:00:46 +0000 2025","text":"What's on your list? https://t.co/eQVvSCzz1T","media_url":["https://pbs.twimg.com/media/GhvrdZNW8AAMkdu.jpg","https://pbs.twimg.com/media/GhvremiXIAAGwMv.jpg"],"video_url":null,"user":{"creation_date":"Thu Mar 10 21:28:58 +0000 2016","user_id":"708041982187155456","username":"Zelle","name":"Zelle","follower_count":53605,"following_count":914,"favourites_count":4895,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Look in your banking app 😉","profile_pic_url":"https://pbs.twimg.com/profile_images/893501055299796992/EIGQb10a_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/708041982187155456/1690493451","description":"A fast, easy way to send and receive money with people you trust. For ❓s with the Zelle mobile app, DM @ZelleSupport or call 844-428-8542","external_url":"https://t.co/XEyCKOzv04","number_of_tweets":3569,"bot":false,"timestamp":1457645338,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":null,"verified_type":null},"language":"en","favorite_count":1,"retweet_count":0,"reply_count":1,"quote_count":0,"retweet":false,"views":771,"timestamp":1737385246,"video_view_count":null,"in_reply_to_status_id":null,"quoted_status_id":null,"binding_values":null,"expanded_url":null,"retweet_tweet_id":null,"extended_entities":{"media":[{"display_url":"pic.x.com/eQVvSCzz1T","expanded_url":"https://x.com/Zelle/status/1881356201423691949/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1881356159572963328","indices":[21,44],"media_key":"3_1881356159572963328","media_url_https":"https://pbs.twimg.com/media/GhvrdZNW8AAMkdu.jpg","original_info":{"width":1170,"height":1423,"focus_rects":[{"x":0,"y":0,"w":1170,"h":655},{"x":0,"y":0,"w":1170,"h":1170},{"x":0,"y":0,"w":1170,"h":1334},{"x":35,"y":0,"w":712,"h":1423},{"x":0,"y":0,"w":1170,"h":1423}]},"sizes":{"large":{"w":1170,"h":1423}},"type":"photo","url":"https://t.co/eQVvSCzz1T"},{"display_url":"pic.x.com/eQVvSCzz1T","expanded_url":"https://x.com/Zelle/status/1881356201423691949/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":1045,"y":40,"h":68,"w":68},{"x":481,"y":1006,"h":188,"w":188},{"x":134,"y":512,"h":213,"w":213},{"x":168,"y":844,"h":198,"w":198}]}},"id_str":"1881356180330586112","indices":[21,44],"media_key":"3_1881356180330586112","media_url_https":"https://pbs.twimg.com/media/GhvremiXIAAGwMv.jpg","original_info":{"width":1170,"height":1466,"focus_rects":[{"x":0,"y":811,"w":1170,"h":655},{"x":0,"y":296,"w":1170,"h":1170},{"x":0,"y":132,"w":1170,"h":1334},{"x":0,"y":0,"w":733,"h":1466},{"x":0,"y":0,"w":1170,"h":1466}]},"sizes":{"large":{"w":1170,"h":1466}},"type":"photo","url":"https://t.co/eQVvSCzz1T"}]},"conversation_id":"1881356201423691949","retweet_status":null,"quoted_status":null,"bookmark_count":0,"source":null,"community_note":null},{"tweet_id":"1879934190654746626","creation_date":"Thu Jan 16 16:50:13 +0000 2025","text":"New year, same vibes ✨ https://t.co/vDzRy01ViM","media_url":null,"video_url":[{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/320x320/l168N4bu-M3it998.mp4?tag=16","bitrate":432000,"content_type":"video/mp4"},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/540x540/b2GD5XTQaxhT-FCG.mp4?tag=16","bitrate":832000,"content_type":"video/mp4"},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/720x720/0H4mTpyZGQW3F3eA.mp4?tag=16","bitrate":1280000,"content_type":"video/mp4"},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/1080x1080/TPb8RCNt3vmRe_La.mp4?tag=16","bitrate":8768000,"content_type":"video/mp4"}],"user":{"creation_date":"Thu Mar 10 21:28:58 +0000 2016","user_id":"708041982187155456","username":"Zelle","name":"Zelle","follower_count":53605,"following_count":914,"favourites_count":4895,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Look in your banking app 😉","profile_pic_url":"https://pbs.twimg.com/profile_images/893501055299796992/EIGQb10a_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/708041982187155456/1690493451","description":"A fast, easy way to send and receive money with people you trust. For ❓s with the Zelle mobile app, DM @ZelleSupport or call 844-428-8542","external_url":"https://t.co/XEyCKOzv04","number_of_tweets":3569,"bot":false,"timestamp":1457645338,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":null,"verified_type":null},"language":"en","favorite_count":4,"retweet_count":0,"reply_count":1,"quote_count":0,"retweet":false,"views":1126,"timestamp":1737046213,"video_view_count":null,"in_reply_to_status_id":null,"quoted_status_id":null,"binding_values":null,"expanded_url":null,"retweet_tweet_id":null,"extended_entities":{"media":[{"additional_media_info":{"monetizable":false},"display_url":"pic.x.com/vDzRy01ViM","expanded_url":"https://x.com/Zelle/status/1879934190654746626/video/1","ext_media_availability":{"status":"Available"},"id_str":"1879934147516379137","indices":[23,46],"media_key":"13_1879934147516379137","media_url_https":"https://pbs.twimg.com/media/GhbeKnWXoAAntba.jpg","original_info":{"width":1080,"height":1080,"focus_rects":[]},"sizes":{"large":{"w":1080,"h":1080}},"type":"video","url":"https://t.co/vDzRy01ViM","video_info":{"aspect_ratio":[1,1],"duration_millis":8000,"variants":[{"url":"https://video.twimg.com/amplify_video/1879934147516379137/pl/9dXUnGDReeQmLDzH.m3u8?tag=16","content_type":"application/x-mpegURL"},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/320x320/l168N4bu-M3it998.mp4?tag=16","content_type":"video/mp4","bitrate":432000},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/540x540/b2GD5XTQaxhT-FCG.mp4?tag=16","content_type":"video/mp4","bitrate":832000},{"url":"https://video.twimg.com/amplify_video/1879934147516379137/vid/avc1/720x720/0H4mTpyZGQW3F3eA.mp4?tag=16","content_type":"video/mp4","bitrate":1280000}]}}]}}],"_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

用户每条推文 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/11/tweets+per+user?username=leomessi' --header 'Authorization: Bearer YOUR_API_KEY' 


    

您可以通过用户名搜索来获取以下用户列表。



                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/12/who+is+the+user+following
                                                                            
                                                                        

用户正在关注谁 - 端点功能

对象 描述
user_id [必需] The user_id we want to check for. You can get the user_id from "user details" endpoint.
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"detail":"Following for user id = 44196397 not found"}
                                                                                                                                                                                                                    
                                                                                                    

用户正在关注谁 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/12/who+is+the+user+following?user_id=44196397' --header 'Authorization: Bearer YOUR_API_KEY' 


    

通过用户ID查询以获取用户的关注者 



                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/13/user+followers
                                                                            
                                                                        

用户关注者 - 端点功能

对象 描述
user_id [必需] The user_id we want to check for. You can get the user_id from "user details" endpoint.
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"detail":"Followers for user id = 44196397 not found"}
                                                                                                                                                                                                                    
                                                                                                    

用户关注者 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/13/user+followers?user_id=44196397' --header 'Authorization: Bearer YOUR_API_KEY' 


    

通过推文ID检索推文的一般信息 

创建日期 喜欢数 转发数 发推者 推文文本等等 



                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/14/tweet+details
                                                                            
                                                                        

推文详情 - 端点功能

对象 描述
tweet_id [必需] The tweet id. Check "tweets per user" to get this information.,
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"tweet_id":"1875870540772307042","creation_date":"Sun Jan 05 11:42:43 +0000 2025","text":"New vid : Like & Comment \"1\". 5 will win a mini allocation to my meme coin likely worth 5 figures (Must like/follow/share) \n\nIt's 2025. Markets are charging back to life. I think these coins will massively over perform.\n\nhttps://t.co/p5hBk1A5Qv","media_url":null,"video_url":null,"user":{"creation_date":"Fri Mar 27 09:31:26 +0000 2020","user_id":"1243470638477697024","username":"ZssBecker","name":"Alex Becker 🍊🏆🥇","follower_count":1217381,"following_count":46,"favourites_count":11412,"is_private":null,"is_verified":false,"is_blue_verified":true,"location":"Texas","profile_pic_url":"https://pbs.twimg.com/profile_images/1550828422762577922/S3-NhpCA_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/1243470638477697024/1732860449","description":"Hyros. Neo Tokyo. Life stuff on https://t.co/lcpQ4QMUFn | 2024 Holds n Partners https://t.co/PEDIyoSP6q. 70% of my post are satire/shit posts.","external_url":"https://www.instagram.com/4am.becker/","number_of_tweets":21466,"bot":false,"timestamp":1585301486,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":10424,"verified_type":null},"language":"en","favorite_count":8782,"retweet_count":4668,"reply_count":6896,"quote_count":139,"retweet":false,"views":259882,"timestamp":1736077363,"video_view_count":null,"in_reply_to_status_id":null,"quoted_status_id":null,"binding_values":[{"key":"player_url","value":{"string_value":"https://www.youtube.com/embed/eBxDLWgmy0Y","type":"STRING"}},{"key":"player_image_large","value":{"image_value":{"height":320,"width":569,"url":"https://pbs.twimg.com/card_img/1875870061950353408/fNSCS5Ia?format=jpg&name=800x320_1"},"type":"IMAGE"}},{"key":"player_image","value":{"image_value":{"height":158,"width":280,"url":"https://pbs.twimg.com/card_img/1875870061950353408/fNSCS5Ia?format=jpg&name=280x280"},"type":"IMAGE"}},{"key":"app_star_rating","value":{"string_value":"4.67781","type":"STRING"}},{"key":"description","value":{"string_value":"The biggest potential alt coin move in history is starting. You need to move LITERALLY right now if you want to catch the first wave. Twitter = @ zssbecker, ...","type":"STRING"}},{"key":"player_width","value":{"string_value":"1280","type":"STRING"}},{"key":"domain","value":{"string_value":"www.youtube.com","type":"STRING"}},{"key":"app_is_free","value":{"string_value":"true","type":"STRING"}},{"key":"site","value":{"scribe_key":"publisher_id","type":"USER","user_value":{"id_str":"10228272","path":[]}}},{"key":"player_image_original","value":{"image_value":{"height":720,"width":1280,"url":"https://pbs.twimg.com/card_img/1875870061950353408/fNSCS5Ia?format=jpg&name=orig"},"type":"IMAGE"}},{"key":"app_num_ratings","value":{"string_value":"39,670,588","type":"STRING"}},{"key":"app_price_amount","value":{"string_value":"0.0","type":"STRING"}},{"key":"player_height","value":{"string_value":"720","type":"STRING"}},{"key":"vanity_url","value":{"scribe_key":"vanity_url","string_value":"youtube.com","type":"STRING"}},{"key":"app_name","value":{"string_value":"YouTube: Watch, Listen, Stream","type":"STRING"}},{"key":"player_image_small","value":{"image_value":{"height":81,"width":144,"url":"https://pbs.twimg.com/card_img/1875870061950353408/fNSCS5Ia?format=jpg&name=144x144"},"type":"IMAGE"}},{"key":"title","value":{"string_value":"13 Crypto Coins That Will 15x Early 2025 (URGENT AF)","type":"STRING"}},{"key":"app_price_currency","value":{"string_value":"USD","type":"STRING"}},{"key":"card_url","value":{"scribe_key":"card_url","string_value":"https://t.co/p5hBk1A5Qv","type":"STRING"}},{"key":"player_image_color","value":{"image_color_value":{"palette":[{"rgb":{"blue":5,"green":5,"red":19},"percentage":37.62},{"rgb":{"blue":90,"green":132,"red":204},"percentage":25.75},{"rgb":{"blue":255,"green":255,"red":255},"percentage":12.14},{"rgb":{"blue":6,"green":10,"red":87},"percentage":10.03},{"rgb":{"blue":1,"green":1,"red":249},"percentage":4.54}]},"type":"IMAGE_COLOR"}},{"key":"player_image_x_large","value":{"image_value":{"height":720,"width":1280,"url":"https://pbs.twimg.com/card_img/1875870061950353408/fNSCS5Ia?format=png&name=2048x2048_2_exp"},"type":"IMAGE"}}],"expanded_url":"https://youtu.be/eBxDLWgmy0Y","retweet_tweet_id":null,"extended_entities":null,"conversation_id":"1875870540772307042","retweet_status":null,"quoted_status":null,"bookmark_count":409,"source":"Twitter Web App","community_note":null}
                                                                                                                                                                                                                    
                                                                                                    

推文详情 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/14/tweet+details?tweet_id=1930719161841586464' --header 'Authorization: Bearer YOUR_API_KEY' 


    

此终端返回搜索结果

 


                                                                            
GET https://zylalabs.com/api/5/get+twitter+data+api/4808/search+tweets
                                                                            
                                                                        

搜索推文 - 端点功能

对象 描述
query [必需] Topic or word related to your search
测试端点

API 示例响应

       
                                                                                                        
                                                                                                                                                                                                                                                                                                                                        {"results":[{"tweet_id":"1875952205251141944","creation_date":"Sun Jan 05 17:07:13 +0000 2025","text":"@epikduckcoin @ZssBecker BTW, my private Alpha Group is now live! \n \nJust getting ready to announce some exciting news about the projects I am most bullish on. Going forward, all of my calls will be posted there. \n \nFirst 3,000 members allowed to join for free ⤵️\n\nhttps://t.co/NCJCiVC9JX","media_url":[],"video_url":null,"user":{"creation_date":"Mon Nov 21 22:41:08 +0000 2022","user_id":"1594823009793179649","username":"ZcsBxvkrs","name":"Alcxs Bvckiers 🏆🍊🥇","follower_count":22886,"following_count":0,"favourites_count":0,"is_private":null,"is_verified":false,"is_blue_verified":true,"location":"","profile_pic_url":"https://pbs.twimg.com/profile_images/1875910540301918208/6vtXINZE_normal.jpg","profile_banner_url":null,"description":"Mauri esquina lanche bar e restô","external_url":null,"number_of_tweets":15,"bot":false,"timestamp":1669070468,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":0,"verified_type":"Business"},"language":"en","favorite_count":699,"retweet_count":0,"reply_count":7,"quote_count":0,"retweet":false,"views":3,"timestamp":1736096833,"video_view_count":null,"in_reply_to_status_id":"1875729113425563730","quoted_status_id":null,"binding_values":[{"key":"app_star_rating","value":{"string_value":"4.04566","type":"STRING"}},{"key":"thumbnail_image","value":{"image_value":{"height":144,"width":144,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=144x144_2"},"type":"IMAGE"}},{"key":"description","value":{"string_value":"You can view and join @BeckersPortal right away.","type":"STRING"}},{"key":"domain","value":{"string_value":"t.me","type":"STRING"}},{"key":"app_is_free","value":{"string_value":"true","type":"STRING"}},{"key":"thumbnail_image_large","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=420x420_2"},"type":"IMAGE"}},{"key":"thumbnail_image_original","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=orig"},"type":"IMAGE"}},{"key":"site","value":{"scribe_key":"publisher_id","type":"USER","user_value":{"id_str":"1689053928","path":[]}}},{"key":"thumbnail_image_small","value":{"image_value":{"height":100,"width":100,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=100x100_2"},"type":"IMAGE"}},{"key":"app_num_ratings","value":{"string_value":"215,879","type":"STRING"}},{"key":"app_price_amount","value":{"string_value":"0.0","type":"STRING"}},{"key":"thumbnail_image_x_large","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=png&name=2048x2048_2_exp"},"type":"IMAGE"}},{"key":"vanity_url","value":{"scribe_key":"vanity_url","string_value":"t.me","type":"STRING"}},{"key":"app_name","value":{"string_value":"Telegram Messenger","type":"STRING"}},{"key":"thumbnail_image_color","value":{"image_color_value":{"palette":[{"rgb":{"blue":88,"green":255,"red":244},"percentage":37.02},{"rgb":{"blue":250,"green":186,"red":113},"percentage":14.48},{"rgb":{"blue":245,"green":86,"red":105},"percentage":12.49},{"rgb":{"blue":133,"green":27,"red":102},"percentage":9.7},{"rgb":{"blue":145,"green":231,"red":249},"percentage":3.2}]},"type":"IMAGE_COLOR"}},{"key":"title","value":{"string_value":"Becker's Portal","type":"STRING"}},{"key":"app_price_currency","value":{"string_value":"USD","type":"STRING"}},{"key":"card_url","value":{"scribe_key":"card_url","string_value":"https://t.co/NCJCiVC9JX","type":"STRING"}}],"expanded_url":"https://t.me/BeckersPortal","retweet_tweet_id":null,"extended_entities":null,"conversation_id":"1875690156134674816","retweet_status":null,"quoted_status":null,"bookmark_count":699,"source":"Twitter Web App","community_note":null},{"tweet_id":"1875951340058447917","creation_date":"Sun Jan 05 17:03:47 +0000 2025","text":"@titocrypto09 @ZssBecker BTW, my private Alpha Group is now live! \n \nJust getting ready to announce some exciting news about the projects I am most bullish on. Going forward, all of my calls will be posted there. \n \nFirst 3,000 members allowed to join for free ⤵️\n\nhttps://t.co/NCJCiVC9JX","media_url":[],"video_url":null,"user":{"creation_date":"Mon Nov 21 22:41:08 +0000 2022","user_id":"1594823009793179649","username":"ZcsBxvkrs","name":"Alcxs Bvckiers 🏆🍊🥇","follower_count":22886,"following_count":0,"favourites_count":0,"is_private":null,"is_verified":false,"is_blue_verified":true,"location":"","profile_pic_url":"https://pbs.twimg.com/profile_images/1875910540301918208/6vtXINZE_normal.jpg","profile_banner_url":null,"description":"Mauri esquina lanche bar e restô","external_url":null,"number_of_tweets":15,"bot":false,"timestamp":1669070468,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":0,"verified_type":"Business"},"language":"en","favorite_count":771,"retweet_count":0,"reply_count":13,"quote_count":0,"retweet":false,"views":7,"timestamp":1736096627,"video_view_count":null,"in_reply_to_status_id":"1875896703712448742","quoted_status_id":null,"binding_values":[{"key":"app_star_rating","value":{"string_value":"4.04566","type":"STRING"}},{"key":"thumbnail_image","value":{"image_value":{"height":144,"width":144,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=144x144_2"},"type":"IMAGE"}},{"key":"description","value":{"string_value":"You can view and join @BeckersPortal right away.","type":"STRING"}},{"key":"domain","value":{"string_value":"t.me","type":"STRING"}},{"key":"app_is_free","value":{"string_value":"true","type":"STRING"}},{"key":"thumbnail_image_large","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=420x420_2"},"type":"IMAGE"}},{"key":"thumbnail_image_original","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=orig"},"type":"IMAGE"}},{"key":"site","value":{"scribe_key":"publisher_id","type":"USER","user_value":{"id_str":"1689053928","path":[]}}},{"key":"thumbnail_image_small","value":{"image_value":{"height":100,"width":100,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=jpg&name=100x100_2"},"type":"IMAGE"}},{"key":"app_num_ratings","value":{"string_value":"215,879","type":"STRING"}},{"key":"app_price_amount","value":{"string_value":"0.0","type":"STRING"}},{"key":"thumbnail_image_x_large","value":{"image_value":{"height":320,"width":320,"url":"https://pbs.twimg.com/card_img/1873827282126602240/LgpdAVdy?format=png&name=2048x2048_2_exp"},"type":"IMAGE"}},{"key":"vanity_url","value":{"scribe_key":"vanity_url","string_value":"t.me","type":"STRING"}},{"key":"app_name","value":{"string_value":"Telegram Messenger","type":"STRING"}},{"key":"thumbnail_image_color","value":{"image_color_value":{"palette":[{"rgb":{"blue":88,"green":255,"red":244},"percentage":37.02},{"rgb":{"blue":250,"green":186,"red":113},"percentage":14.48},{"rgb":{"blue":245,"green":86,"red":105},"percentage":12.49},{"rgb":{"blue":133,"green":27,"red":102},"percentage":9.7},{"rgb":{"blue":145,"green":231,"red":249},"percentage":3.2}]},"type":"IMAGE_COLOR"}},{"key":"title","value":{"string_value":"Becker's Portal","type":"STRING"}},{"key":"app_price_currency","value":{"string_value":"USD","type":"STRING"}},{"key":"card_url","value":{"scribe_key":"card_url","string_value":"https://t.co/NCJCiVC9JX","type":"STRING"}}],"expanded_url":"https://t.me/BeckersPortal","retweet_tweet_id":null,"extended_entities":null,"conversation_id":"1875870540772307042","retweet_status":null,"quoted_status":null,"bookmark_count":771,"source":"Twitter Web App","community_note":null},{"tweet_id":"1875656197132660875","creation_date":"Sat Jan 04 21:31:00 +0000 2025","text":"@DestraNetwork https://t.co/l8R8XlwGtZ","media_url":["https://pbs.twimg.com/media/GgerXktXYAAUuo_.jpg"],"video_url":null,"user":{"creation_date":"Fri Mar 27 09:31:26 +0000 2020","user_id":"1243470638477697024","username":"ZssBecker","name":"Alex Becker 🍊🏆🥇","follower_count":1217486,"following_count":46,"favourites_count":11412,"is_private":null,"is_verified":false,"is_blue_verified":true,"location":"Texas","profile_pic_url":"https://pbs.twimg.com/profile_images/1550828422762577922/S3-NhpCA_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/1243470638477697024/1732860449","description":"Hyros. Neo Tokyo. Life stuff on https://t.co/lcpQ4QMUFn | 2024 Holds n Partners https://t.co/PEDIyoSP6q. 70% of my post are satire/shit posts.","external_url":"https://www.instagram.com/4am.becker/","number_of_tweets":21466,"bot":false,"timestamp":1585301486,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":10423,"verified_type":"Business"},"language":"qme","favorite_count":534,"retweet_count":66,"reply_count":101,"quote_count":2,"retweet":false,"views":22174,"timestamp":1736026260,"video_view_count":null,"in_reply_to_status_id":"1875640483063484443","quoted_status_id":null,"binding_values":null,"expanded_url":"https://x.com/ZssBecker/status/1875656197132660875/photo/1","retweet_tweet_id":null,"extended_entities":{"media":[{"display_url":"pic.x.com/l8R8XlwGtZ","expanded_url":"https://x.com/ZssBecker/status/1875656197132660875/photo/1","id_str":"1875656191302393856","indices":[15,38],"media_key":"3_1875656191302393856","media_url_https":"https://pbs.twimg.com/media/GgerXktXYAAUuo_.jpg","type":"photo","url":"https://t.co/l8R8XlwGtZ","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":37,"y":277,"h":82,"w":82}]},"medium":{"faces":[{"x":37,"y":277,"h":82,"w":82}]},"small":{"faces":[{"x":23,"y":174}]}}}]}}],"_note":"Response truncated for documentation purposes"}
                                                                                                                                                                                                                    
                                                                                                    

搜索推文 - 代码片段


curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/4808/search+tweets?query=nike' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API 访问密钥和身份验证

注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 获取推特数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
标头
标头 描述
授权 [必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。

简单透明的定价

无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。

🚀 企业版

起价
$ 10,000/年


  • 自定义数量
  • 自定义速率限制
  • 专业客户支持
  • 实时 API 监控

客户喜爱的功能

  • ✔︎ 仅支付成功请求
  • ✔︎ 7 天免费试用
  • ✔︎ 多语言支持
  • ✔︎ 一个 API 密钥,所有 API。
  • ✔︎ 直观的仪表板
  • ✔︎ 全面的错误处理
  • ✔︎ 开发者友好的文档
  • ✔︎ Postman 集成
  • ✔︎ 安全的 HTTPS 连接
  • ✔︎ 可靠的正常运行时间

获取推特数据 API FAQs

每个端点返回特定的Twitter数据。例如GET用户详情端点提供用户ID关注者数量和个人资料图片URL而GET每用户推文端点返回推文创建日期文本和转发点赞等参与指标

关键字段包括用户ID、关注者数量、用户推文数量以及推文ID、创建日期、文本、点赞数和转发数 这些字段有助于识别用户和分析推文表现

响应数据采用JSON格式构建 每个端点返回一个包含相关字段的主要对象 例如 GET用户详情端点返回一个单一对象中的用户属性 而GET每用户推文端点返回一个推文对象的数组

参数因端点而异。获取用户详情需要Twitter用户名。获取每个用户的推文也需要用户名。这些参数允许用户自定义请求以检索特定数据

每个端点提供不同的信息 获取用户详细信息提供用户资料数据 获取用户推文返回一份推文列表 获取用户关注的账户显示用户关注的账户 获取用户粉丝列出用户的粉丝

用户可以分析返回的数据以获取有关用户参与和行为的洞察。例如,通过检查关注者数量和推文指标,市场营销人员可以定制活动,而内容创作者可以识别趋势和热门话题

典型的用例包括市场调研、影响者分析和社交媒体监测.机构可以根据用户的关注对象来定位广告活动,而内容创作者可以通过推文表现跟踪参与度和观众兴趣

数据的准确性通过直接从Twitter的公共API获取信息来保持,这反映了实时用户生成的内容 定期更新确保数据对访问它的用户保持最新和相关

一般常见问题

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 日之前提交请求,您的付款将在此时间范围内处理。


相关 API


您可能还喜欢