Twitter API

API ID 9795

Access complete Twitter data: user information by ID, list of followers, and detailed compilation of published tweets.

100% uptime 831 ms avg response

API Documentation

Endpoints

Request

Get complete user information, including profile, followers, posts, multimedia, verifications, subscriptions, interaction statistics, and professional details.

Endpoint ID: 18296
GET https://docs.zylalabs.com/api/9795/twitter+api/18296/user+information
INPUT PARAMETERS

User Information — Endpoint Features

Object Description
username Required Enter a username

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

username
API EXAMPLE RESPONSE
JSON
{"result":{"data":{"user":{"result":{"__typename":"User","id":"VXNlcjoxNTU2NTkyMTM=","rest_id":"155659213","affiliates_highlighted_label":{},"avatar":{"image_url":"https://pbs.twimg.com/profile_images/1940344470290989057/1OUP8RgK_normal.jpg"},"core":{"created_at":"Mon Jun 14 19:09:20 +0000 2010","name":"Cristiano Ronaldo","screen_name":"Cristiano"},"dm_permissions":{"can_dm":false},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"default_profile":false,"default_profile_image":false,"description":"Welcome to the official account of Cristiano Ronaldo.","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"cristianoronaldo.com","expanded_url":"https://www.cristianoronaldo.com/","url":"https://t.co/Pc19xaN1Sp","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":63,"followers_count":115709965,"friends_count":76,"has_custom_timelines":false,"is_translator":false,"listed_count":85008,"media_count":2401,"normal_followers_count":115709965,"pinned_tweet_ids_str":[],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/155659213/1751449147","profile_interstitial_type":"","statuses_count":4333,"translator_type":"regular","url":"https://t.co/Pc19xaN1Sp","want_retweets":false,"withheld_in_countries":[]},"location":{"location":""},"media_permissions":{"can_media_tag":true},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","privacy":{"protected":false},"relationship_perspectives":{"following":false},"tipjar_settings":{},"verification":{"verified":false},"legacy_extended_profile":{"birthdate":{"day":5,"month":2,"year":1985,"visibility":"Public","year_visibility":"Public"}},"is_profile_translatable":false,"has_hidden_subscriptions_on_profile":false,"verification_info":{"is_identity_verified":false,"reason":{"description":{"text":"This account is verified. Learn more","entities":[{"from_index":26,"to_index":36,"ref":{"url":"https://help.twitter.com/managing-your-account/about-twitter-verified-accounts","url_type":"ExternalUrl"}}]},"verified_since_msec":"1276611237262"}},"highlights_info":{"can_highlight_tweets":true,"highlighted_tweets":"0"},"user_seed_tweet_count":0,"premium_gifting_eligible":false,"business_account":{},"creator_subscriptions_count":0}}}}}
User Information — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18296/user+information?username=cristiano' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Get detailed information on multiple users, including profiles, followers, posts, multimedia, verifications, subscriptions, interaction statistics, and professional data.

Endpoint ID: 18377
GET https://docs.zylalabs.com/api/9795/twitter+api/18377/users+data+by+id
INPUT PARAMETERS

Users data by ID — Endpoint Features

Object Description
username Required Indicate the user IDs

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

username
API EXAMPLE RESPONSE
JSON
{"user":{"result":{"__typename":"User","id":"VXNlcjo0NDE5NjM5Nw==","rest_id":"44196397","affiliates_highlighted_label":{"label":{"url":{"url":"https://twitter.com/X","urlType":"DeepLink"},"badge":{"url":"https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"},"description":"X","userLabelType":"BusinessLabel","userLabelDisplayType":"Badge"}},"has_graduated_access":true,"is_blue_verified":true,"profile_image_shape":"Circle","legacy":{"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":166106,"followers_count":224782226,"friends_count":1185,"has_custom_timelines":true,"is_translator":false,"listed_count":163831,"location":"","media_count":4101,"name":"Elon Musk","normal_followers_count":224782226,"pinned_tweet_ids_str":[],"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":84387,"translator_type":"none","verified":false,"want_retweets":false,"withheld_in_countries":[]},"professional":{"rest_id":"1679729435447275522","professional_type":"Creator","category":[]},"tipjar_settings":{"is_enabled":false},"super_follow_eligible":true,"smart_blocked_by":false,"smart_blocking":false,"legacy_extended_profile":{},"is_profile_translatable":false,"has_hidden_likes_on_profile":true,"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":"717"},"user_seed_tweet_count":0,"business_account":{},"creator_subscriptions_count":223}}}
Users data by ID — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18377/users+data+by+id?username=elonmusk' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Get detailed information about followers, including IDs, names, bios, verified accounts, follower metrics, links, profile pictures, and additional settings.

Endpoint ID: 18403
GET https://docs.zylalabs.com/api/9795/twitter+api/18403/followers
INPUT PARAMETERS

Followers — Endpoint Features

Object Description
user_id Required Indicates a user id

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

user_id
API EXAMPLE RESPONSE
JSON
{"data":[{"__typename":"User","id":"VXNlcjo5NTA5MjAyMA==","rest_id":"95092020","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":true,"can_media_tag":false,"created_at":"Sun Dec 06 23:33:02 +0000 2009","default_profile":false,"default_profile_image":false,"description":"Best-Selling Author | Clinical Psychologist | #1 Education Podcast | Co-founder of @petersonacademy | Order my new book \"We Who Wrestle With God\" here:","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"jordanbpeterson.com/books","expanded_url":"http://jordanbpeterson.com/books","url":"https://t.co/KgUEvmxeQD","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":227,"followers_count":6122233,"friends_count":1660,"has_custom_timelines":true,"is_translator":false,"listed_count":14914,"location":"","media_count":7369,"name":"Dr Jordan B Peterson","normal_followers_count":6122233,"pinned_tweet_ids_str":["1949912864271323255"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/95092020/1744917990","profile_image_url_https":"https://pbs.twimg.com/profile_images/1407056014776614923/TKBC60e1_normal.jpg","profile_interstitial_type":"","screen_name":"jordanbpeterson","statuses_count":51582,"translator_type":"none","url":"https://t.co/KgUEvmxeQD","verified":false,"want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","professional":{"rest_id":"1680046132699840514","professional_type":"Creator","category":[{"id":144,"name":"Education","icon_name":"IconBriefcaseStroke"}]},"tipjar_settings":{"is_enabled":true},"super_follow_eligible":true},{"__typename":"User","id":"VXNlcjozOTM0NDM3NA==","rest_id":"39344374","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":true,"created_at":"Mon May 11 21:18:33 +0000 2009","default_profile":false,"default_profile_image":false,"description":"Co-Founder @worldlibertyfi","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"linktr.ee/donaldjtrumpjr","expanded_url":"https://linktr.ee/donaldjtrumpjr","url":"https://t.co/ni5HwFvEjX","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":38535,"followers_count":15346923,"friends_count":2275,"has_custom_timelines":true,"is_translator":false,"listed_count":24852,"location":"Florida, USA","media_count":3396,"name":"Donald Trump Jr.","normal_followers_count":15346923,"pinned_tweet_ids_str":["1959966790353653946"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/39344374/1674355501","profile_image_url_https":"https://pbs.twimg.com/profile_images/766652495858896897/LjrJJB9a_normal.jpg","profile_interstitial_type":"","screen_name":"DonaldJTrumpJr","statuses_count":51707,"translator_type":"none","url":"https://t.co/ni5HwFvEjX","verified":false,"want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","tipjar_settings":{}},{"__typename":"User","id":"VXNlcjoxODU4NDg3NQ==","rest_id":"18584875","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":true,"can_media_tag":true,"created_at":"Sat Jan 03 19:24:16 +0000 2009","default_profile":false,"default_profile_image":false,"description":"Merch & Giveaways at: https://t.co/kxb8qjGCDW  —— PODCAST: @thetwinspod","entities":{"description":{"urls":[{"display_url":"officialhodgetwins.com","expanded_url":"http://officialhodgetwins.com","url":"https://t.co/kxb8qjGCDW","indices":[22,45]}]},"url":{"urls":[{"display_url":"officialhodgetwins.com","expanded_url":"https://officialhodgetwins.com","url":"https://t.co/ybNwIM3aIe","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":14440,"followers_count":3390786,"friends_count":3591,"has_custom_timelines":false,"is_translator":false,"listed_count":4520,"location":"United States","media_count":3649,"name":"Hodgetwins","normal_followers_count":3390786,"pinned_tweet_ids_str":["1959662145068831140"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/18584875/1720914411","profile_image_url_https":"https://pbs.twimg.com/profile_images/1928553264880164864/v6RIyEXP_normal.jpg","profile_interstitial_type":"","screen_name":"hodgetwins","statuses_count":59304,"translator_type":"none","url":"https://t.co/ybNwIM3aIe","verified":false,"want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","professional":{"rest_id":"1487870054645391361","professional_type":"Creator","category":[{"id":934,"name":"Social Media Influencer","icon_name":"IconBriefcaseStroke"}]},"tipjar_settings":{"is_enabled":true,"bitcoin_handle":"bc1qv0u682l7yxxjm95w0xxmpe2vnwsl8fc9urk5k8","ethereum_handle":"0x36a6C64401FEd5A0bc1E4AB63005ade1d5a919F6"},"super_follow_eligible":true},{"__typename":"User","id":"VXNlcjo0OTE0Mzg0MDQw","rest_id":"4914384040","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":true,"created_at":"Mon Feb 15 16:05:21 +0000 2016","default_profile":false,"default_profile_image":false,"description":"Fake news you can trust 🐝","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"linktr.ee/babylonbee","expanded_url":"https://linktr.ee/babylonbee","url":"https://t.co/0PhJZklwkT","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":1858,"followers_count":4979606,"friends_count":10,"has_custom_timelines":false,"is_translator":false,"listed_count":8353,"location":"United States","media_count":15882,"name":"The Babylon Bee","normal_followers_count":4979606,"pinned_tweet_ids_str":["1957908099416969361"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/4914384040/1755629983","profile_image_url_https":"https://pbs.twimg.com/profile_images/1400100770624720898/-HC7kL5x_normal.jpg","profile_interstitial_type":"","screen_name":"TheBabylonBee","statuses_count":33029,"translator_type":"none","url":"https://t.co/0PhJZklwkT","verified":false,"verified_type":"Business","want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Square","professional":{"rest_id":"1649577634316304385","professional_type":"Business","category":[{"id":580,"name":"Media & News Company","icon_name":"IconBriefcaseStroke"}]},"tipjar_settings":{},"super_follow_eligible":true},{"__typename":"User","id":"VXNlcjoxODE2Njc3OA==","rest_id":"18166778","affiliates_highlighted_label":{"label":{"url":{"url":"https://twitter.com/HouseGOP","urlType":"DeepLink"},"badge":{"url":"https://pbs.twimg.com/profile_images/1877085039948668928/f4AibqzY_bigger.jpg"},"description":"House Republicans","userLabelType":"BusinessLabel","userLabelDisplayType":"Badge"}},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":true,"created_at":"Tue Dec 16 17:20:24 +0000 2008","default_profile":false,"default_profile_image":false,"description":"Proudly serving Ohio's beautiful Fourth District. Chairman @JudiciaryGOP. Fighting to #DoWhatWeSaid","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"linktr.ee/chairmanjimjor…","expanded_url":"https://linktr.ee/chairmanjimjordan","url":"https://t.co/nCZphybp79","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":5370,"followers_count":6474820,"friends_count":3657,"has_custom_timelines":true,"is_translator":false,"listed_count":11723,"location":"Washington, D.C. ","media_count":2081,"name":"Rep. Jim Jordan","normal_followers_count":6474820,"pinned_tweet_ids_str":["1958604018949005587"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/18166778/1406042839","profile_image_url_https":"https://pbs.twimg.com/profile_images/596012379231617025/TtrAXbnA_normal.jpg","profile_interstitial_type":"","screen_name":"Jim_Jordan","statuses_count":15859,"translator_type":"none","url":"https://t.co/nCZphybp79","verified":false,"verified_type":"Government","want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","tipjar_settings":{}},{"__typename":"User","id":"VXNlcjoyMzI5MDEzMzE=","rest_id":"232901331","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":true,"created_at":"Sat Jan 01 17:50:03 +0000 2011","default_profile":false,"default_profile_image":false,"description":"","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"bongino.com","expanded_url":"http://www.bongino.com","url":"https://t.co/h3Y3otPk07","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":70096,"followers_count":7093020,"friends_count":2305,"has_custom_timelines":true,"is_translator":false,"listed_count":11416,"location":"","media_count":1817,"name":"Dan Bongino","normal_followers_count":7093020,"pinned_tweet_ids_str":[],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/232901331/1742295117","profile_image_url_https":"https://pbs.twimg.com/profile_images/1901949643828625408/cIoDpRVb_normal.jpg","profile_interstitial_type":"","screen_name":"dbongino","statuses_count":50147,"translator_type":"none","url":"https://t.co/h3Y3otPk07","verified":false,"want_retweets":false,"withheld_in_countries":[]},"parody_commentary_fan_label":"None","profile_image_shape":"Circle","tipjar_settings":{}},{"__typename":"User","id":"VXNlcjo0MjcwODk2Mjg=","rest_id":"427089628","affiliates_highlighted_label":{},"has_graduated_access":true,"is_blue_verified":true,"legacy":{"following":false,"can_dm":false,"can_media_tag":false,"created_at":"Sat Dec 03 03:06:19 +0000 2011","default_profile":false}}],"_note":"Response truncated for documentation purposes"}
Followers — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18403/followers?user_id=44196397' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Provides complete details of a specific tweet, including counts, attached media, hashtags, metadata, availability, and relevant interaction attributes.

Endpoint ID: 18404
GET https://docs.zylalabs.com/api/9795/twitter+api/18404/user+tweets
INPUT PARAMETERS

User Tweets — Endpoint Features

Object Description
user_id Required Indicates user ID

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

user_id
API EXAMPLE RESPONSE
JSON
{"data":[{"bookmark_count":2061,"bookmarked":false,"created_at":"Mon Aug 25 20:01:39 +0000 2025","conversation_id_str":"1960070086229918070","display_text_range":[0,252],"entities":{"hashtags":[],"media":[{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074905014273","indices":[253,276],"media_key":"3_1960070074905014273","media_url_https":"https://pbs.twimg.com/media/GzORWSWWMAE3RsS.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":1544,"y":1688,"h":192,"w":192}]},"medium":{"faces":[{"x":904,"y":989,"h":112,"w":112}]},"small":{"faces":[{"x":512,"y":560,"h":63,"w":63}]},"orig":{"faces":[{"x":3088,"y":3376,"h":384,"w":384}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":4096,"width":4096,"focus_rects":[{"x":0,"y":798,"w":4096,"h":2294},{"x":0,"y":0,"w":4096,"h":4096},{"x":149,"y":0,"w":3593,"h":4096},{"x":921,"y":0,"w":2048,"h":4096},{"x":0,"y":0,"w":4096,"h":4096}]},"media_results":{"result":{"media_key":"3_1960070074905014273"}}},{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074930216960","indices":[253,276],"media_key":"3_1960070074930216960","media_url_https":"https://pbs.twimg.com/media/GzORWScWwAA5mx2.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]},"medium":{"faces":[]},"small":{"faces":[]},"orig":{"faces":[]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":3000,"width":3000,"focus_rects":[{"x":0,"y":585,"w":3000,"h":1680},{"x":0,"y":0,"w":3000,"h":3000},{"x":109,"y":0,"w":2632,"h":3000},{"x":675,"y":0,"w":1500,"h":3000},{"x":0,"y":0,"w":3000,"h":3000}]},"media_results":{"result":{"media_key":"3_1960070074930216960"}}},{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074909257728","indices":[253,276],"media_key":"3_1960070074909257728","media_url_https":"https://pbs.twimg.com/media/GzORWSXW8AAiftg.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":1551,"y":1705,"h":151,"w":151}]},"medium":{"faces":[{"x":909,"y":999,"h":88,"w":88}]},"small":{"faces":[{"x":515,"y":566,"h":50,"w":50}]},"orig":{"faces":[{"x":2955,"y":3248,"h":289,"w":289}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":3900,"width":3900,"focus_rects":[{"x":0,"y":1716,"w":3900,"h":2184},{"x":0,"y":0,"w":3900,"h":3900},{"x":0,"y":0,"w":3421,"h":3900},{"x":0,"y":0,"w":1950,"h":3900},{"x":0,"y":0,"w":3900,"h":3900}]},"media_results":{"result":{"media_key":"3_1960070074909257728"}}}],"symbols":[],"timestamps":[],"urls":[{"display_url":"store.taylorswift.com","expanded_url":"http://store.taylorswift.com","url":"https://t.co/WdrCmvMfo8","indices":[138,161]}],"user_mentions":[]},"extended_entities":{"media":[{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074905014273","indices":[253,276],"media_key":"3_1960070074905014273","media_url_https":"https://pbs.twimg.com/media/GzORWSWWMAE3RsS.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":1544,"y":1688,"h":192,"w":192}]},"medium":{"faces":[{"x":904,"y":989,"h":112,"w":112}]},"small":{"faces":[{"x":512,"y":560,"h":63,"w":63}]},"orig":{"faces":[{"x":3088,"y":3376,"h":384,"w":384}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":4096,"width":4096,"focus_rects":[{"x":0,"y":798,"w":4096,"h":2294},{"x":0,"y":0,"w":4096,"h":4096},{"x":149,"y":0,"w":3593,"h":4096},{"x":921,"y":0,"w":2048,"h":4096},{"x":0,"y":0,"w":4096,"h":4096}]},"media_results":{"result":{"media_key":"3_1960070074905014273"}}},{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074930216960","indices":[253,276],"media_key":"3_1960070074930216960","media_url_https":"https://pbs.twimg.com/media/GzORWScWwAA5mx2.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]},"medium":{"faces":[]},"small":{"faces":[]},"orig":{"faces":[]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":3000,"width":3000,"focus_rects":[{"x":0,"y":585,"w":3000,"h":1680},{"x":0,"y":0,"w":3000,"h":3000},{"x":109,"y":0,"w":2632,"h":3000},{"x":675,"y":0,"w":1500,"h":3000},{"x":0,"y":0,"w":3000,"h":3000}]},"media_results":{"result":{"media_key":"3_1960070074930216960"}}},{"display_url":"pic.x.com/y7kb3B4YvU","expanded_url":"https://x.com/taylorswift13/status/1960070086229918070/photo/1","id_str":"1960070074909257728","indices":[253,276],"media_key":"3_1960070074909257728","media_url_https":"https://pbs.twimg.com/media/GzORWSXW8AAiftg.jpg","type":"photo","url":"https://t.co/y7kb3B4YvU","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":1551,"y":1705,"h":151,"w":151}]},"medium":{"faces":[{"x":909,"y":999,"h":88,"w":88}]},"small":{"faces":[{"x":515,"y":566,"h":50,"w":50}]},"orig":{"faces":[{"x":2955,"y":3248,"h":289,"w":289}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":3900,"width":3900,"focus_rects":[{"x":0,"y":1716,"w":3900,"h":2184},{"x":0,"y":0,"w":3900,"h":3900},{"x":0,"y":0,"w":3421,"h":3900},{"x":0,"y":0,"w":1950,"h":3900},{"x":0,"y":0,"w":3900,"h":3900}]},"media_results":{"result":{"media_key":"3_1960070074909257728"}}}]},"favorite_count":111792,"favorited":false,"full_text":"The Life of a Showgirl: The Tiny Bubbles in Champagne Vinyl Collection is available now on my site for 48 hours while supplies last ❤️‍🔥\n\nhttps://t.co/WdrCmvMfo8\n\nAlbum Producers: Max Martin, Shellback and Taylor Swift\n📸: Mert Alas &amp; Marcus Piggott https://t.co/y7kb3B4YvU","is_quote_status":false,"lang":"en","possibly_sensitive":false,"possibly_sensitive_editable":true,"quote_count":7362,"reply_count":3116,"retweet_count":23536,"retweeted":false,"user_id_str":"17919972","id_str":"1960070086229918070","view_count":2886892,"source":"<a href=\"http://twitter.com/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>"},{"bookmark_count":6125,"bookmarked":false,"created_at":"Thu Aug 21 18:00:40 +0000 2025","conversation_id_str":"1958590089732264402","display_text_range":[0,249],"entities":{"hashtags":[],"media":[{"display_url":"pic.x.com/ExVQpnEyOk","expanded_url":"https://x.com/taylorswift13/status/1958590089732264402/photo/1","id_str":"1958590078021771264","indices":[250,273],"media_key":"3_1958590078021771264","media_url_https":"https://pbs.twimg.com/media/Gy5PTIUXoAArdx9.jpg","type":"photo","url":"https://t.co/ExVQpnEyOk","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":870,"y":926,"h":76,"w":76},{"x":632,"y":1016,"h":96,"w":96},{"x":1002,"y":946,"h":136,"w":136}]},"medium":{"faces":[{"x":509,"y":542,"h":44,"w":44},{"x":370,"y":595,"h":56,"w":56},{"x":587,"y":554,"h":79,"w":79}]},"small":{"faces":[{"x":288,"y":307,"h":25,"w":25},{"x":209,"y":337,"h":31,"w":31},{"x":332,"y":314,"h":45,"w":45}]},"orig":{"faces":[{"x":1740,"y":1852,"h":152,"w":152},{"x":1264,"y":2032,"h":192,"w":192},{"x":2004,"y":1892,"h":272,"w":272}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":4096,"width":4096,"focus_rects":[{"x":0,"y":1003,"w":4096,"h":2294},{"x":0,"y":0,"w":4096,"h":4096},{"x":0,"y":0,"w":3593,"h":4096},{"x":0,"y":0,"w":2048,"h":4096},{"x":0,"y":0,"w":4096,"h":4096}]},"media_results":{"result":{"media_key":"3_1958590078021771264"}}},{"display_url":"pic.x.com/ExVQpnEyOk","expanded_url":"https://x.com/taylorswift13/status/1958590089732264402/photo/1","id_str":"1958590078017507328","indices":[250,273],"media_key":"3_1958590078017507328","media_url_https":"https://pbs.twimg.com/media/Gy5PTITWkAAmFx8.jpg","type":"photo","url":"https://t.co/ExVQpnEyOk","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[{"x":629,"y":1013,"h":99,"w":99},{"x":1741,"y":1043,"h":123,"w":123},{"x":1003,"y":943,"h":133,"w":133}]},"medium":{"faces":[{"x":368,"y":594,"h":58,"w":58},{"x":1020,"y":611,"h":72,"w":72},{"x":588,"y":552,"h":78,"w":78}]},"small":{"faces":[{"x":208,"y":336,"h":33,"w":33},{"x":578,"y":346,"h":41,"w":41},{"x":333,"y":313,"h":44,"w":44}]},"orig":{"faces":[{"x":922,"y":1485,"h":146,"w":146},{"x":2551,"y":1529,"h":181,"w":181},{"x":1470,"y":1382,"h":196,"w":196}]}},"sizes":{"large":{"h":2048,"w":2048,"resize":"fit"},"medium":{"h":1200,"w":1200,"resize":"fit"},"small":{"h":680,"w":680,"resize":"fit"},"thumb":{"h":150,"w":150,"resize":"crop"}},"original_info":{"height":3000,"width":3000,"focus_rects":[{"x":0,"y":735,"w":3000,"h":1680},{"x":0,"y":0,"w":3000,"h":3000},{"x":0,"y":0}]}}]}}],"_note":"Response truncated for documentation purposes"}
User Tweets — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/18404/user+tweets?user_id=17919972' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Get the ID of a Twitter account.

Endpoint ID: 21239
GET https://docs.zylalabs.com/api/9795/twitter+api/21239/get+user+id
INPUT PARAMETERS

Get User ID — Endpoint Features

Object Description
username Required Enter a username

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

username
API EXAMPLE RESPONSE
JSON
{"data":{"username":"elonmusk","id":"44196397"}}
Get User ID — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/9795/twitter+api/21239/get+user+id?username=elonmusk' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Twitter API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Overview

The Twitter API provides a comprehensive solution for accessing, analyzing, and managing public profile and content information on the platform. It is designed for users who require structured, up-to-date data directly from Twitter for multiple purposes: brand monitoring, trend analysis, influencer tracking, report generation, and custom application creation.

With this API, it is possible to obtain user data by ID, which ensures accuracy and avoids common ambiguities when searching by name. You can access detailed information such as name, biography, location, account creation date, verification, profile picture, and key metrics (followers, following, tweets, lists).

The API is designed with flexibility and scalability in mind: it adapts to both small personal analysis projects and enterprise systems that require large volumes of information. By centralizing the collection of user, follower, and tweet data into a single service, it eliminates the need for multiple separate integrations.

In short, the Twitter API offers comprehensive, up-to-date, and easy-to-integrate data for those who need to convert public information from Twitter into actionable knowledge, with maximum accuracy and efficiency.

Twitter API FAQs

Each endpoint returns specific data types: the User Information endpoint provides user profiles and interaction statistics; the Users data by ID endpoint offers detailed user profiles for multiple users; the Followers endpoint details follower metrics and profiles; and the User Tweets endpoint includes tweet details, media, and interaction attributes.

Key fields vary by endpoint: User Information includes name, biography, location, and metrics; Users data by ID adds multiple user profiles; Followers features IDs, names, bios, and follower metrics; User Tweets includes tweet content, media, hashtags, and interaction counts.

Response data is structured in JSON format, with each endpoint returning a specific object. For example, User Information returns a user object with nested fields for profile details, while User Tweets returns an array of tweet objects, each containing metadata and interaction attributes.

Each endpoint supports various parameters. For example, the User Information endpoint may accept user IDs, while the Followers endpoint can filter by verification status. Users can customize requests by specifying parameters like user IDs or tweet IDs to retrieve targeted data.

Typical use cases include brand monitoring, trend analysis, influencer tracking, and report generation. For instance, businesses can analyze follower demographics to tailor marketing strategies or track tweet engagement to assess campaign effectiveness.

Data accuracy is maintained through direct access to Twitter's public data, ensuring real-time updates. The API's design minimizes ambiguities by allowing users to retrieve information using unique identifiers like user IDs, enhancing reliability.

Users can leverage the returned data for insights and analytics. For example, by analyzing follower metrics, businesses can identify key influencers, while tweet details can inform content strategies. Data can be visualized or integrated into applications for enhanced decision-making.

Users should implement error handling to manage partial or empty results. For instance, if a user ID returns no data, the API response will indicate this, allowing users to adjust their queries or notify users of missing information.

The User Information endpoint provides comprehensive data including the user's name, biography, location, account creation date, verification status, profile picture, and key metrics such as follower count, following count, tweet count, and lists.

Users can customize requests to the Followers endpoint by specifying parameters such as user IDs, verification status, and pagination options to filter and manage the volume of follower data returned.

The User Tweets response includes fields such as tweet content, media attachments, hashtags, metadata (like creation date), availability status, and interaction attributes such as retweet and like counts.

The Twitter API covers global data from public Twitter profiles, allowing access to user information and tweets from various regions and categories, including personal accounts, brands, and public figures.

The Users data by ID endpoint accepts user IDs as parameters, allowing users to retrieve detailed profiles for one or multiple users. It can also include optional fields to specify which data attributes to return.

The Followers endpoint returns a structured JSON object containing an array of follower objects. Each object includes fields like ID, name, bio, verification status, and profile picture, organized for easy access and analysis.

Data accuracy is ensured through direct access to Twitter's live public data, with continuous updates and validation against Twitter's own systems, minimizing discrepancies and enhancing reliability.

When retrieving user tweets, expect a consistent structure with each tweet object containing fields for content, media, hashtags, and interaction metrics. Patterns may include timestamps for when tweets were posted and engagement statistics.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs