Returns Tweets from a search term. This function only supports returning both popular and realtime results and a maximum of 100 tweets.
=getTwitterSearch(serarchTerm, optResults, optCols)
| Column | Description |
|---|---|
id | Tweet's ID number |
id_str | Tweet's ID number |
to_user_id | To user name |
from_user_name | From full name |
from_user_id_str | From user ID |
created_at | Date Tweeted |
profile_image_url_https | Profile image |
from_user_id | User ID |
profile_image_url | Profile image URL |
geo | Tweet's geo location |
source | Service/device used to make the Tweet |
to_user | To Twitter name |
text | Content of the Tweet |
from_user | Twitter user name |
iso_language_code | Language code |
to_user_id_str | To user ID |
to_user_name | To full user name |
| Example | Find tweets ... |
|---|---|
twitter search | containing both "twitter" and "search". This is the default operator |
"happy hour" | containing the exact phrase "happy hour" |
love OR hate | containing either "love" or "hate" (or both) |
beer -root | containing "beer" but not "root" |
#haiku | containing the hashtag "haiku" |
from:twitterapi | sent from the user @twitterapi |
to:twitterapi | sent to the user @twitterapi |
place:opentable:2 | about the place with OpenTable ID 2 |
place:247f43d441defc03 | about the place with Twitter ID 247f43d441defc03 |
@twitterapi | mentioning @twitterapi |
superhero since:2011-05-09 | containing "superhero" and sent since date "2011-05-09" (year-month-day). |
twitterapi until:2011-05-09 | containing "twitterapi" and sent before the date "2011-05-09". |
movie -scary :) | containing "movie", but not "scary", and with a positive attitude. |
flight :( | containing "flight" and with a negative attitude. |
traffic ? | containing "traffic" and asking a question. |
hilarious filter:links | containing "hilarious" and with a URL. |
news source:tweet_button | containing "news" and entered via the Tweet Button |
Tips:
| |
| Name | Type | Description |
|---|---|---|
serarchTerm |
string | Search term |
optResults |
string | (Optional) Number of tweets to return (default is 25. Max is 100). |
optCols |
array | range | (Optional) Columns you want to get back from Twitter. Default columns: "created_at", "from_user", "to_user", "text" |
| Column | Description |
|---|---|
Twitter results |
Cells:
A1: @wilreynolds
=getTwitterSearch(A1) // Last 25 tweets containing "@wilreynolds"
=getTwitterSearch(A1, 50) // Last 50 tweets containing "@wilreynolds"
// Get the date of the tweet, the tweet itself, and the
// service or device they used to make the tweet.
A1: created_at
B1: text
C1: source
A2: =getTwitterSearch("#fml", 25, A1:C1)
// Get tweets sent to @djchrisle
=getTwitterSearch("to:djchrisle")
// Get tweets sent from @djchrisle
=getTwitterSearch("from:djchrisle")
// Get tweet containing the word "pinterest" and "seo"
=getTwitterSearch("pinterest_seo")
// Get tweet containing the word "pinterest" and "seo"
// since Jan 15, 2012
=getTwitterSearch("pinterest_seo since:2012-01-15")
// Get tweet containing the word "pinterest" and "seo"
// since Jan 15, 2012 but using a date in cell
Cells:
A1: 01/15/2012
=getTwitterSearch("pinterest_seo since:" & dateToYMD(A1))
// Get tweet containing the word "pinterest" and "seo"
// since Jan 15, 2012 but using a date in cell and terms from cells
Cells:
A1: 01/15/2012
A2: pinterest
A3: seo
=getTwitterSearch(cellsToTwitterSearch(A2:A3) & "since:" & dateToYMD(A1))
=getTwitterUserLookup(screenNamesRange, optCols)
Returns information about one or more Twitter accounts
Limits
Available columns
(Default columns returned by this function are marked with a (*)
| Name | Type | Description |
|---|---|---|
screenNamesRange |
array | cells | Cells of of twitter accounts to search |
optCols |
array | cells | Columns you want returned from Twitter |
| Column | Description |
|---|---|
Twitter results |
Cells: A1: djchrisle A2: wilreynolds A3: seerinteractive // Get default columns about the following Twitter users =getTwitterUserLookup(A2:A3)