Result Type: just like /search results, the result_type parameter selects whether the result set will be represented by recent or popular Tweets, or even a mix of both.The GET search/tweets documentation has detailed information about the usage of the parameters, this section will only give a brief description of their capabilities: There is a set of additional parameters that allows a better control of the search results. Note that the space character can be represented by “%20” or “+” sign. The table below shows some example mappings from search queries to URL encoded queries: Search query There are several online tools to help you to do that, or you can search at /search and copy the encoded URL from the browser’s address bar. Please, make sure to URL encode these queries before making the request. ![]() Sent from a Twitter account in the NASA list astronauts-in-space-nowĪ Tweet authored in reply to Twitter account Twitter account “NASA”.Ĭontaining “puppy” and an image or video.Ĭontaining “puppy”, filtering out retweetsĬontaining “puppy” and an uploaded video, Amplify video, Periscope, or Vine.Ĭontaining “puppy” and a Periscope video URL.Ĭontaining “puppy” and links identified as photos, including third parties such as Instagram.Ĭontaining “puppy” and a link representing one or more photos.Ĭontaining “hilarious” and linking to URL.Ĭontaining “puppy” and a URL with the word “amazon” anywhere within it.Ĭontaining “superhero” and sent since date “” (year-month-day).Ĭontaining “puppy” and sent before the date “”.Ĭontaining “movie”, but not “scary”, and with a positive attitude.Ĭontaining “flight” and with a negative attitude.Ĭontaining “traffic” and asking a question. ![]() This is the default operator.Ĭontaining the exact phrase “happy hour”.Ĭontaining either “love” or “hate” (or both). the available operators are: OperatorĬontaining both “watching” and “now”. The query can have operators that modify its behavior. If you need historical data odler than seven days, check out the premium and enterprise search APIs. Note that the standard search API only serves data from the last week. Please note that the API requires that the request be authenticated (check Authentication & Authorization documentation for more details on this). Run a Twurl command to execute the search.We want to search for Tweets referencing account.As you get a satisfactory result set, the URL loaded in the browser will contain the proper query syntax that can be reused in the standard search API endpoint. The best way to build a standard query and test if it’s valid and will return matched Tweets is to first try it at /search.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |