This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Historical Tweets and access to Twitter® REST API endpoints

You can retrieve historical Tweets and other Twitter data. First, you must have Twitter credentials. For credentials, log in to your Twitter account and see Create an application. Then, create a Twitter connection object and search for historical Tweets using the search function. Use the getdata and postdata functions to retrieve other Twitter data, Tweet®, and access the Twitter REST API GET and POST endpoints.


twitterTwitter connection object
searchSearch for Tweets
getdataRetrieve Twitter data
postdataPost Twitter data


Conduct Sentiment Analysis Using Historical Tweets

Determine the amount of positive and negative sentiment among retrieved Tweets using a glossary of keywords.

Tweet Based on Retrieved Twitter Data

Post Tweets based on the number of followers for a specified account.