A simple and easy-to-use Twitter data retrieval API client with multi-language SDK support. Backed by TwitterAPIDotIO
- Get user information
/twitter/user/info
- Get user followers
/twitter/user/followers
- Get user followings
/twitter/user/followings
- Get user mentions
/twitter/user/mentions
- Get user tweets
/twitter/user/last_tweets
- Get tweet replies
/twitter/tweet/replies
- Get tweet quotes
/twitter/tweet/quotes
- Get tweet retweeters
/twitter/tweet/retweeters
- Advanced tweet search
/twitter/tweet/advanced_search
- Get list tweets
/twitter/list/tweets
from twitter_api_client import TwitterAPIClient
client = TwitterAPIClient('your_api_key')
# Get user information
user = client.get_user_info('elonmusk')
print(user)
# Search tweets
tweets = client.search_tweets('python programming')
for tweet in tweets['tweets']:
print(tweet['text'])
For more code examples, check:
Documentation is available in multiple languages:
This project is licensed under the MIT License - see the LICENSE file for details.