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_trends()

Get Twitter trends data.

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.

lists_users()

Get all lists a specified user subscribes to, including their own.

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

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

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

rate_limit() rate_limit_reset() rate_limit_wait()

Rate limit helpers

Authentication

auth_as()

Set default authentication for the current session

auth_save() auth_list()

Save an authentication mechanism for use in a future session

auth_setup_default()

Set up default authentication

rtweet_user() rtweet_bot() rtweet_app()

Authentication options

Data

emojis

Emojis codes and descriptions data.

langs

Language codes recognized by Twitter data.

stopwordslangs

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()

Converts Twitter stream data (JSON file) into parsed data frame.

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.