DOI: 10.7910/dvn/pdi7in
title: 2016 United States Presidential Election Tweet Ids

description: &lt;p&gt;This dataset contains the tweet ids of approximately 280 million tweets related to the 2016 United States presidential election. They were collected between July 13, 2016 and November 10, 2016 from the Twitter API using &lt;a href="http://gwu-libraries.github.io/sfm-ui/"&gt;Social Feed Manager&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These tweet ids are broken up into 12 collections. Each collection was collected either from the &lt;a href="https://dev.twitter.com/rest/reference/get/statuses/user_timeline"&gt;GET statuses/user_timeline method&lt;/a&gt; of the Twitter REST API or the &lt;a href="https://dev.twitter.com/streaming/reference/post/statuses/filter"&gt;POST statuses/filter method&lt;/a&gt; of the Twitter Stream API. The collections are:
&lt;ul&gt;
&lt;li&gt;Candidates and key election hashtags (Twitter filter): election-filter[1-6].txt&lt;/li&gt;
&lt;li&gt;Democratic candidates (Twitter user timeline): democratic-candidate-timelines.txt&lt;/li&gt;
&lt;li&gt;Democratic Convention (Twitter filter): democratic-convention-filter.txt&lt;/li&gt;
&lt;li&gt;Democratic Party (Twitter user timeline): democratic-party-timelines.txt&lt;/li&gt;
&lt;li&gt;Election Day (Twitter filter): election-day.txt&lt;/li&gt;
&lt;li&gt;First presidential debate (Twitter filter): first-debate.txt&lt;/li&gt;
&lt;li&gt;GOP Convention (Twitter filter): republican-convention-filter.txt&lt;/li&gt;
&lt;li&gt;Republican candidates (Twitter user timeline): republican-candidate-timelines.txt&lt;/li&gt;
&lt;li&gt;Republican Party (Twitter user timeline): republican-party-timelines.txt&lt;/li&gt;
&lt;li&gt;Second presidential debate (Twitter filter): second-debate.txt&lt;/li&gt;
&lt;li&gt;Third presidential debate (Twitter filter): third-debate.txt&lt;/li&gt;
&lt;li&gt;Vice Presidential debate (Twitter filter): vp-debate.txt&lt;/li&gt;
&lt;/ul&gt;
There is also a README.txt file for each collection containing additional documentation on how it was collected.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://dev.twitter.com/rest/reference/get/statuses/lookup"&gt;GET statuses/lookup method&lt;/a&gt; supports retrieving the complete tweet for a tweet id (known as hydrating). Tools such as &lt;a href="https://github.com/DocNow/twarc"&gt;Twarc&lt;/a&gt; or &lt;a href="https://github.com/DocNow/hydrator"&gt;Hydrator&lt;/a&gt; can be used to hydrate tweets. When hydrating be aware that:
&lt;ul&gt;
&lt;li&gt;Twitter limits hydration to 900 requests of 100 tweet ids per 15 minute window per set of user credentials. This works out to 8,640,000 tweets per day, so hydrating this entire dataset will take 32 days.&lt;/li&gt;
&lt;li&gt;The Twitter API will not return tweets that have been deleted or belong to accounts that have been suspended, deleted, or made private. You should expect a large number of these tweets to be unavailable.&lt;/il&gt;
&lt;/ul&gt;&lt;/p&gt;

&lt;p&gt;There may be duplicate tweets across collections. Also, according to the Twitter documentation, duplicate tweets are possible for tweets collected from the Twitter filter stream.&lt;/p&gt;

&lt;p&gt;For tweets collected from the Twitter filter stream, this is not a complete set of tweets that match the filter. Gaps may exist because:
&lt;ul&gt;
&lt;li&gt;Twitter limits the number of tweets returned by the filter at any point in time.&lt;/li&gt;
&lt;li&gt;Social Feed Manager stops and starts the Twitter filter stream every 30 minutes.&lt;/li&gt;
&lt;li&gt;In Social Feed Manager, collecting is turned off while a user is making changes to the collection criteria.&lt;/li&gt;
&lt;li&gt;There were some operational issues, e.g., network interruptions, during the collection period.&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;

&lt;p&gt;Since some of the terms used to collect from the Twitter filter stream were broad (e.g., “election”), it may contain tweets from elections other than the U.S. presidential election, including state elections, local elections, or elections in other countries.&lt;/p&gt;

&lt;p&gt;Per Twitter’s &lt;a href="https://dev.twitter.com/overview/terms/policy.html#id8"&gt;Developer Policy&lt;/a&gt;, tweet ids may be publicly shared; tweets may not.&lt;/p&gt;

&lt;p&gt;Questions about this dataset can be sent to sfm@gwu.edu. George Washington University researchers should contact us for access to the tweets.&lt;/p&gt;

&lt;p&gt;This work is supported by grant #NARDI-14-50017-14 from the National Historical Publications and Records Commission.&lt;/p&gt;