⚙️ Twitter Tweet Search - Pagination Workflow Formula By steve


Get bulk tweets back from the Twitter Search API (you’ll get back the tweet as well as information about the user, such as follower count). This will automatically perform the pagination for you, allowing you to go back and get thousands for tweets for your search query without having to write any code.

Getting Started

Import this formula into your account and then enter your search term(s) in the input collection. Next, provide your Twitter API key and execute the workflow. It may take a long time to run and paginate through all the results, so you may want to set a Maximum Requests limit or you can just stop the execution after you’ve paginated through enough pages. Each page will return 100 tweets.

⚙️  Twitter Tweet Search - Pagination

Inputs

Twitter Search Queries
List
➡️ Query

Search query to run on Twitter, see their docs for examples on how to search. Some quick tips:

  • Hashtag Search: Just enter the search term with a hashtag in front of it, e.g. #beer If multiple hashtags are entered, the API will return tweets containing both hashtags.
  • User Mention Search: Enter the username prepended with the @ sign to get all tweets mentioning the user, e.g. @taylorswift
  • Tweets From Account: Find tweets sent from a specific account by prefixing with from:, e.g. from:interior (note do not use the @ here)
  • Free Text: Find tweets containing free text words, e.g. watching now will return tweets containing both words. Use the OR operator if you’d like, e.g. love OR hate.

Tweet Search - Pagination Next ID (Self-Loop) Pagination Limit: Unlimited ➡️ Pagination Max ID

Used for pagination. Run the first request with this blank, then insert the statuses.id value of the last result into this value to get the next page of results.

Language Example: en

Restrict the tweets returned to those matching the ISO 639-1 language code.

Location Example: 37.781157,-122.398720,1mi

Return tweets within the given search radius of a latitude and longitude. The API will attempt to use the Tweer’s geocode when available and will fall back to the Twitter user’s profile’s location otherwise. You need to enter your search location in this format: latitude,longitude,radius where you can specify radius as either mi (miles) or km (kilometers).

Result Type

The order that Twitter will return the results back, defaulting to “mixed,” showing a combination of both popular and recent results. You can also enter:

  • recent - Get the most recent tweets first
  • popular - Get the most popular tweets first
Pagination Max ID

Used for pagination. Run the first request with this blank, then insert the statuses.id value of the last result into this value to get the next page of results.

Extractors

  • Tweets .statuses
Posted by steve on April 5, 2020, 1:17 p.m. 🚩  Report