The news and current events of the globe are available on Twitter. Both the browser and a mobile device may be used to access Twitter. We also provide programmatic access to Twitter data via our API for companies, developers, and users.
Twitter data is different from data released by the majority of other social networks since it contains information that users choose to broadcast publicly. Through our API platform, the public Twitter data that users have chosen to make available to the public is easily accessible.
Using the GetTwitter API, you may get posts, user information, tweet details, account information, related Tweets, and more.
By entering a user’s Twitter username, you can obtain the following information:
This API is ideal for those content creators that want to know more about personalities on Twitter.
Also if you are a market agency you will collect information about who a user follows to target better your campaigns.
The only limitation is the number of API calls you can make per month.
Retrieve the user's info by passing the Twitter username.
Get information like user id, followers count, how many people is the user following, if it's verified, if the account is public or private, the profile picture URL, and the number of tweets on the account.
User Details - Endpoint Features
Object | Description |
---|---|
username |
[Required] The Twitter's username we want to query for. |
{"creation_date":"Thu Feb 22 19:13:53 +0000 2024","user_id":"1760744655883214848","username":"ErolMARR","name":"Erol Mar","follower_count":2,"following_count":41,"favourites_count":14,"is_private":null,"is_verified":false,"is_blue_verified":false,"location":"","profile_pic_url":"https://pbs.twimg.com/profile_images/1776181532631199744/O1lgAQCE_normal.jpg","profile_banner_url":null,"description":"","external_url":null,"number_of_tweets":36,"bot":false,"timestamp":1708629233,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":0,"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'
Retrieve a list of tweets by querying by username.
You will get the creation date of the tweet, the text, and retweets and favorites count of the tweet.
Tweets per User - Endpoint Features
Object | Description |
---|---|
username |
[Required] The Twitter's username we want to query for. |
limit |
[Required] The number of results. Max 100 |
{"detail":"User Kbryc22 is unavailable"}
curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/11/tweets+per+user?username=Required&limit=Required' --header 'Authorization: Bearer YOUR_API_KEY'
You can get the following list from a user by searching by username.
Who is the user following - Endpoint Features
Object | Description |
---|---|
user_id |
[Required] The user_id we want to check for. You can get the user_id from "user details" endpoint. |
{"results":[],"continuation_token":null}
curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/12/who+is+the+user+following?user_id=Required' --header 'Authorization: Bearer YOUR_API_KEY'
Retrieve the followers a user has by querying by user ID.
User Followers - Endpoint Features
Object | Description |
---|---|
user_id |
[Required] The user_id we want to check for. You can get the user_id from "user details" endpoint. |
limit |
[Optional] The number of results. Max 100 |
{"results":[{"creation_date":"Sun Dec 06 23:33:02 +0000 2009","user_id":"95092020","username":"jordanbpeterson","name":"Dr Jordan B Peterson","follower_count":5488448,"following_count":1662,"favourites_count":159,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"","profile_pic_url":"https://pbs.twimg.com/profile_images/1407056014776614923/TKBC60e1_normal.jpg","profile_banner_url":null,"description":"Best-Selling Author | Clinical Psychologist | #1 Education Podcast | Enroll to @petersonacademy now:","external_url":"http://petersonacademy.com","number_of_tweets":50430,"bot":false,"timestamp":1260142382,"has_nft_avatar":false,"category":{"name":"Education","id":144},"default_profile":false,"default_profile_image":false,"listed_count":14447,"verified_type":null},{"creation_date":"Mon May 11 21:18:33 +0000 2009","user_id":"39344374","username":"DonaldJTrumpJr","name":"Donald Trump Jr.","follower_count":12046439,"following_count":2022,"favourites_count":35065,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Florida, USA","profile_pic_url":"https://pbs.twimg.com/profile_images/766652495858896897/LjrJJB9a_normal.jpg","profile_banner_url":null,"description":"","external_url":"https://linktr.ee/donaldjtrumpjr","number_of_tweets":49489,"bot":false,"timestamp":1242076713,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":21770,"verified_type":null},{"creation_date":"Sat Jan 03 19:24:16 +0000 2009","user_id":"18584875","username":"hodgetwins","name":"Hodgetwins","follower_count":2822417,"following_count":2963,"favourites_count":14128,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"United States","profile_pic_url":"https://pbs.twimg.com/profile_images/1526065785659002880/uIvydi_U_normal.jpg","profile_banner_url":null,"description":"Merch & Giveaways at: https://t.co/kxb8qjGCDW ββ PODCAST: @thetwinspod","external_url":"http://officialhodgetwins.com","number_of_tweets":37465,"bot":false,"timestamp":1231010656,"has_nft_avatar":false,"category":{"name":"Social Media Influencer","id":934},"default_profile":false,"default_profile_image":false,"listed_count":3955,"verified_type":null},{"creation_date":"Mon Feb 15 16:05:21 +0000 2016","user_id":"4914384040","username":"TheBabylonBee","name":"The Babylon Bee","follower_count":3964763,"following_count":10,"favourites_count":1659,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"United States","profile_pic_url":"https://pbs.twimg.com/profile_images/1400100770624720898/-HC7kL5x_normal.jpg","profile_banner_url":null,"description":"Fake news you can trust.","external_url":"http://linktr.ee/babylonbee","number_of_tweets":28049,"bot":false,"timestamp":1455552321,"has_nft_avatar":false,"category":{"name":"Media & News Company","id":580},"default_profile":false,"default_profile_image":false,"listed_count":7340,"verified_type":null},{"creation_date":"Tue Dec 16 17:20:24 +0000 2008","user_id":"18166778","username":"Jim_Jordan","name":"Rep. Jim Jordan","follower_count":5321699,"following_count":3703,"favourites_count":5376,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Washington, D.C. ","profile_pic_url":"https://pbs.twimg.com/profile_images/596012379231617025/TtrAXbnA_normal.jpg","profile_banner_url":null,"description":"Proudly serving Ohio's beautiful Fourth District. Chairman @JudiciaryGOP, @Weaponization. Fighting to #DoWhatWeSaid","external_url":"http://jordan.house.gov/","number_of_tweets":14297,"bot":false,"timestamp":1229448024,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":11355,"verified_type":null},{"creation_date":"Sat Jan 01 17:50:03 +0000 2011","user_id":"232901331","username":"dbongino","name":"Dan Bongino","follower_count":5618984,"following_count":1989,"favourites_count":67782,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Planet βBanned By YouTubeβ ","profile_pic_url":"https://pbs.twimg.com/profile_images/1484871034104958980/tA9vFFnu_normal.jpg","profile_banner_url":null,"description":"Public Enemy #1","external_url":"http://www.bongino.com","number_of_tweets":46154,"bot":false,"timestamp":1293904203,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":10195,"verified_type":null},{"creation_date":"Sat Dec 03 03:06:19 +0000 2011","user_id":"427089628","username":"lexfridman","name":"Lex Fridman","follower_count":3681715,"following_count":189,"favourites_count":7785,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Austin and Boston","profile_pic_url":"https://pbs.twimg.com/profile_images/956331551435960322/OaqR8pAB_normal.jpg","profile_banner_url":null,"description":"Host of Lex Fridman Podcast.\nInterested in robots and humans.","external_url":"https://lexfridman.com/podcast","number_of_tweets":3425,"bot":false,"timestamp":1322881579,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":10629,"verified_type":null},{"creation_date":"Tue Dec 03 01:14:36 +0000 2019","user_id":"1201670995435646976","username":"laurenboebert","name":"Lauren Boebert","follower_count":3715998,"following_count":1417,"favourites_count":6316,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Colorado, USA","profile_pic_url":"https://pbs.twimg.com/profile_images/1498803395578236934/vGGuE9-k_normal.jpg","profile_banner_url":null,"description":"Lauren Boebert for Congress: Congresswoman & candidate for CO-04. Professional RINO Hunter. Raising my boys to be MEN before liberals teach them to be women!","external_url":"https://secure.winred.com/lauren-boebert-for-congress/tw23","number_of_tweets":9761,"bot":false,"timestamp":1575335676,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":5733,"verified_type":null},{"creation_date":"Sun Nov 22 22:32:41 +0000 2009","user_id":"91882544","username":"DineshDSouza","name":"Dinesh D'Souza","follower_count":4239420,"following_count":7950,"favourites_count":11258,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"United States","profile_pic_url":"https://pbs.twimg.com/profile_images/890967538292711424/8puyFbiI_normal.jpg","profile_banner_url":null,"description":"Author, Filmmaker, Host of the Dinesh DβSouza Podcast. Follow me on Locals: https://t.co/UDFY7UCJDc","external_url":"http://dinesh.locals.com","number_of_tweets":143610,"bot":false,"timestamp":1258929161,"has_nft_avatar":false,"category":{"name":"Media Personality","id":933},"default_profile":false,"default_profile_image":false,"listed_count":9926,"verified_type":null},{"creation_date":"Wed Dec 30 18:57:01 +0000 2020","user_id":"1344356576786866176","username":"RepMTG","name":"Rep. Marjorie Taylor GreeneπΊπΈ","follower_count":3633385,"following_count":504,"favourites_count":3034,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Rome, GA","profile_pic_url":"https://pbs.twimg.com/profile_images/1694851591608627200/hYLDFj9G_normal.jpg","profile_banner_url":null,"description":"Christian, Mother, American, Business Owner, and Congresswoman representing Georgiaβs 14th District","external_url":"http://Greene.House.gov","number_of_tweets":7120,"bot":false,"timestamp":1609354621,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":6788,"verified_type":null},{"creation_date":"Tue Dec 09 16:40:22 +0000 2008","user_id":"17995040","username":"benshapiro","name":"Ben Shapiro","follower_count":6936641,"following_count":381,"favourites_count":52,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"","profile_pic_url":"https://pbs.twimg.com/profile_images/1791135695567740928/nrRmsfkZ_normal.jpg","profile_banner_url":null,"description":"Daily Wire co-founder, host of @benshapiroshow, #1 NYT bestselling author, Americaβs #1 ex-rapper","external_url":"https://bit.ly/3M5qqMv","number_of_tweets":199532,"bot":false,"timestamp":1228840822,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":17720,"verified_type":null},{"creation_date":"Thu Apr 23 21:53:30 +0000 2009","user_id":"34743251","username":"SpaceX","name":"SpaceX","follower_count":35382655,"following_count":122,"favourites_count":491,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Earth","profile_pic_url":"https://pbs.twimg.com/profile_images/1697749409851985920/HbrI04tM_normal.jpg","profile_banner_url":null,"description":"SpaceX designs, manufactures and launches the worldβs most advanced rockets and spacecraft","external_url":"http://spacex.com","number_of_tweets":8920,"bot":false,"timestamp":1240523610,"has_nft_avatar":false,"category":null,"default_profile":false,"default_profile_image":false,"listed_count":42671,"verified_type":null},{"creation_date":"Mon Apr 20 18:21:04 +0000 2009","user_id":"33608041","username":"ksorbs","name":"Kevin Sorbo","follower_count":2122305,"following_count":482,"favourites_count":9287,"is_private":false,"is_verified":false,"is_blue_verified":false,"location":"Florida, USA","profile_pic_url":"https://pbs.twimg.com/profile_images/973666854995599361/A_xzZ5Qv_normal.jpg","profile_banner_url":null,"description":"Actor, director, producer, author.","external_url":"https://linktr.ee/ksorbs","number_of_tweets":20598,"bot":false,"timestamp":1240251664,"has_nft_avatar":false,"category":{"name":"Actor","id":948},"default_profile":false,"default_profile_image":false,"listed_count":3940,"verified_type":null},{"creation_date":"Mon Dec 06 19:00:41 +0000 2021","user_id":"1467931973616386052","username":"ThisIsKyleR","name":"Kyle Rittenhouse","follower_count":1240746,"following_count":646,"favourites_count":1439,"is_private":false,"is_verif...
curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/13/user+followers?user_id=Required' --header 'Authorization: Bearer YOUR_API_KEY'
Retrieve general information about a Tweet by Tweet ID.
Creation date. Likes. Retweets. Who made the tweet. The tweet text and more.
Tweet Details - Endpoint Features
Object | Description |
---|---|
tweet_id |
[Required] The tweet id. Check "tweets per user" to get this information., |
{"tweet_id":"1853933642730578289","creation_date":"Tue Nov 05 22:53:19 +0000 2024","text":"I ran 80,000 simulations tonight\n\nAnd π is in every single one of them","media_url":null,"video_url":null,"user":{"creation_date":"Sat Dec 09 20:14:49 +0000 2023","user_id":"1733580957175713792","username":"strawberrydotai","name":"π","follower_count":5008,"following_count":10,"favourites_count":3347,"is_private":null,"is_verified":false,"is_blue_verified":true,"location":"πfields","profile_pic_url":"https://pbs.twimg.com/profile_images/1832829268679634944/Jv9WTOkB_normal.jpg","profile_banner_url":"https://pbs.twimg.com/profile_banners/1733580957175713792/1730845654","description":"Love is Real, And It Lives Inside π\n\nWe havenβt launched any crypto, NFTs, and weβre not connected to any berry tokens out there","external_url":"http://strawberry.ai","number_of_tweets":237,"bot":false,"timestamp":1702152889,"has_nft_avatar":false,"category":null,"default_profile":true,"default_profile_image":false,"listed_count":28,"verified_type":null},"language":"en","favorite_count":7,"retweet_count":0,"reply_count":2,"quote_count":0,"retweet":false,"views":124,"timestamp":1730847199,"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":"1853933642730578289","retweet_status":null,"quoted_status":null,"bookmark_count":1,"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=Required' --header 'Authorization: Bearer YOUR_API_KEY'
This endpoint return search results
Search Tweets - Endpoint Features
Object | Description |
---|---|
query |
[Required] Topic or word related to your search |
{"results":[],"continuation_token":"DAACCgACGaohY4FAJxAKAAMZqiFjgT_Y8AgABAAAAAILAAUAAAAcRW1QQzZ3QUFBZlEvZ0dKTjB2R3AvQUFBQUFBPQgABgAAAAAIAAcAAAAAAAA"}
curl --location --request GET 'https://zylalabs.com/api/5/get+twitter+data+api/4808/search+tweets?query=Required' --header 'Authorization: Bearer YOUR_API_KEY'
Header | Description |
---|---|
Authorization
|
[Required] Should be Bearer access_key . See "Your API Access Key" above when you are subscribed. |
No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.
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, look at the βX-Zyla-API-Calls-Monthly-Remainingβ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.
To see the maximum number of API requests your plan allows, check the βX-Zyla-RateLimit-Limitβ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.
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 3600, it means 3600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
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]
To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.
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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.
Service Level:
100%
Response Time:
3,429ms
Service Level:
100%
Response Time:
2,550ms
Service Level:
100%
Response Time:
1,058ms
Service Level:
100%
Response Time:
205ms
Service Level:
100%
Response Time:
4,230ms
Service Level:
84%
Response Time:
1,317ms
Service Level:
100%
Response Time:
830ms
Service Level:
100%
Response Time:
935ms
Service Level:
100%
Response Time:
628ms
Service Level:
100%
Response Time:
3,265ms
Service Level:
100%
Response Time:
9,395ms
Service Level:
100%
Response Time:
4,858ms
Service Level:
100%
Response Time:
589ms
Service Level:
100%
Response Time:
2,356ms
Service Level:
100%
Response Time:
2,004ms
Service Level:
100%
Response Time:
1,212ms
Service Level:
100%
Response Time:
1,998ms