Skip to contents

API functions

direct_messages()
Get direct messages sent to and received by the authenticating user from the past 30 days
get_favorites()
Get tweets favorited by one or more users
get_followers()
Get user IDs for accounts following target user.
get_friends()
Get user IDs of accounts followed by target user(s).
get_mentions()
Get mentions for the authenticating user.
get_retweets() get_retweeters()
Get the most recent retweets/retweeters
get_timeline() get_my_timeline()
Get one or more user timelines
get_token() get_tokens()
Fetch Twitter OAuth token
get_trends()
Get Twitter trends data.
lookup_coords()
Get coordinates of specified location.
lookup_friendships()
Lookup friendship information between two specified users.
lookup_tweets()
Get tweets data for given statuses (status IDs).
lookup_users()
Get Twitter users data for given users (user IDs or screen names).
my_friendships()
Lookup friendship information between users.
post_destroy()
Delete status of user's Twitter account
post_favorite()
Favorites target status id.
post_follow() post_unfollow_user() post_mute()
Follows target Twitter user.
post_friendship()
Updates friendship notifications and retweet abilities.
post_list()
Manage Twitter lists
post_message()
Posts direct message from user's Twitter account
post_tweet()
Posts status update to user's Twitter account
stream_tweets()
Collect a live stream of Twitter data
trends_available()
Available Twitter trends along with associated WOEID.
tweet_embed()
Create a Tweet Embed
tweet_shot()
Capture an image of a tweet/thread
tweet_threading()
Collect statuses contained in a thread
users_data() tweets_data()
Get tweets from users, or users from tweets
user_block() user_unblock()
Blocking or unblocking twitter users

Lists

Manage lists.

lists_members()
Get Twitter list members (users on a given list).
lists_memberships()
Get Twitter list memberships (lists containing a given user)
lists_statuses()
Get a timeline of tweets authored by members of a specified list.
lists_subscribers()
Get subscribers of a specified list.
lists_subscriptions()
Get list subscriptions of a given user but does not include the user's own lists.
lists_users()
Get all lists a specified user subscribes to, including their own.

Look for some tweet or user.

search_fullarchive() search_30day()
Premium Twitter searches
search_tweets() search_tweets2()
Get tweets data on statuses identified via search query.
search_users()
Search for users

API limits

Find which are the rate limits set by Twitter.

Authentication

Manage your authentications.

auth_as()
Set default authentication for the current session
auth_get()
Get the current authentication mechanism
auth_save() auth_list()
Save an authentication mechanism for use in a future session
auth_setup_default() auth_has_default()
Set up default authentication
auth_sitrep()
Twitter Tokens sitrep
rtweet_user() rtweet_bot() rtweet_app()
Authentication options

Data

emojis
Defunct: Emojis codes and descriptions data.
langs
Defunct: Language codes recognized by Twitter data.
stopwordslangs
Defunct: Twitter stop words in multiple languages data.

Data manipulation

as_screenname()
Mark a user id as a screen name
do_call_rbind()
Binds list of data frames while preserving attribute (tweets or users) data.
flatten() unflatten()
flatten/unflatten data frame
lat_lng()
Adds single-point latitude and longitude variables to tweets data.
network_data() network_graph()
Network data
round_time()
A generic function for rounding date and time values
parse_stream()
Parser of stream
plain_tweets()
Clean up character vector (tweets) to more of a plain text.
read_twitter_csv()
Read comma separated value Twitter data.
ts_data()
Converts tweets data into time series-like data object.
ts_plot()
Plots tweets data as a time series-like data object.
users_data() tweets_data()
Get tweets from users, or users from tweets
write_as_csv() save_as_csv()
Save Twitter data as a comma separated value file.