"Twitter" (Service Connection)
Connect your Twitter account to the Wolfram Language to analyze Twitter data like tweets, retweets, replies, and followers. Also send tweets directly from the Wolfram Language.
Connecting & Authenticating
Requests
User Information
"UserData" — profile information for any user
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number |
"UserMentions" — list of user handles included in a timeline
"UserReplies" — user's replies
"UserHashtags" — hashtags in user's tweets
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number | |
MaxItems | 20 | number of results to return |
Friends and Followers Information
"Friends" — who a user is following, or a list of names of the users followed by the provided user
"FriendIDs" — list of IDs of the users followed by the provided user
"Followers" — who is following a user, or a list of names of the users following the provided user
"FollowerIDs" — list of IDs of the users following the provided user
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number | |
MaxItems | 5000 | number of results to return | |
"StartIndex" | 1 | start index |
"FriendNetwork" — graph of which of the user's friends follow each other
"FollowerNetwork" — graph of which of the user's followers follow each other
"FriendMentionNetwork" — graph of which friends mention each other
"FollowerMentionNetwork" — graph of which followers mention each other
"FriendReplyToNetwork" — graph of which friends reply to each other
"FollowerReplyToNetwork" — graph of which followers reply to each other
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number |
Sending Tweets
"Message" | (required) | message to send | |
"InReplyToStatusID" | None | tweet ID being replied to | |
GeoLocation | None | location of the tweet | |
"Image" | None | image or list of images to attach to the tweet (max. 4) |
"TweetID" | (required) | tweet ID to be retweeted |
Retrieving Tweets
"TweetID" | (required) | tweet ID to be retrieved | |
"Elements" | "Data" |
"TweetList" — get a list of tweets
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number | |
MaxItems | 20 | number of results to return | |
"Elements" | "Data" | ||
"SinceID" | None | earliest tweet ID to use | |
"MaxID" | None | latest tweet ID to use |
"TweetTimeline" — get a timeline of tweets
"TweetEventSeries" — get tweets as a series of events
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number | |
MaxItems | 20 | number of results to return |
"LastTweet" — user's latest tweet
"Username" | authenticated user | the Twitter name | |
"UserID" | authenticated user | the user ID number |
Content Search & Followers
"TweetSearch" — find recent tweets associated with a specified content search string
"Query" | (required) | search string | |
MaxItems | 20 | number of results to return | |
"Language" | None | language entity of the tweet | |
"ResultType" | None | type of tweet | |
GeoLocation | None | location of the tweet | |
"Radius" | radius around the location. This parameter will be used only if the GeoLocation parameter is included |
"UserIDSearch" — find user IDs associated with a specified content search string
"SearchNetwork" — follower network based on a specified content search string
"SearchMentionNetwork" — mention network based on a specified content search string
"SearchReplyToNetwork" — reply network based on a specified content search string
"Query" | (required) | search string | |
MaxItems | 20 | number of users to return |
Access Information
"RateLimit" — check number of available and used requests for this connection