How to make a Specific Query on Twitter

Updated March 07, 2023

1. Introduction.

Twitter allows you to run specific searches, that is, instead of entering a keyword, a hashtag, or a mention, on Twitter you can combine all three and even, as explained by the social network itself in its documentation, search for tweets associated with an account, that appear in a specific list, etc.

Below, you can see some of the filtering options available and which Twitter calls standard search operators.

The available operators are:

 

 

Additional parameters

There is a set of additional parameters that allow better control of the search results. 

  • Language: the lang parameter restricts Tweets to the given language. For example, "obama lang:en".
  • Result Type: just like twitter.com/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.
  • Geolocalization: the search operator “near” isn’t available in the API, but there is a more precise way to restrict your query by a given location using the geocode parameter specified with the template “latitude,longitude,radius”, for example, “37.781157,-122.398720,1mi”. When conducting geo searches, the search API will first attempt to find Tweets that have lat/long within the queried geocode, and in case of not having success, it will attempt to find Tweets created by users whose profile location can be reverse geocoded into a lat/long within the queried geocode, meaning that is possible to receive Tweets which do not include lat/long information.

 

The best way to build a query and test if it’s valid and will return matched Tweets is to first try it at twitter.com/explore. 

 

2. Other specifications.

If you have any questions during the monitoring process on Twitter, do not hesitate to contact us through the chat on our website or our support email help@cool-tabs.com.

 

How to create a Twitter profile monitoring >>

How to create a Twitter content monitoring >>

 

 

Was this article helpful?

2 out of 2 found this helpful

Submit a request