0

I've been using the Twitter API (with Python) for quite some time, but I'm unable to search for Twitter users having a specific criterion. For example, the API has several user attributes in the user JSON data it returns, like statuses_count or profile_link_color. But how do I do a reverse search using such parameters, like searching for users who have tweeeted more than 1000 times, or users who have created their accounts last week?

Sam Chats
  • 2,271
  • 1
  • 12
  • 34

1 Answers1

0

Based on the documentation, it looks like you can search for users that fulfill certain criteria with a GET users/search query:

Provides a simple, relevance-based search interface to public user accounts on Twitter. Try querying by topical interest, full name, company name, location, or other criteria.

NHagar
  • 101
  • 1
  • 6
  • Thanks, but I saw that very part of documentation before posting here. Their examples do not demonstrate searching by any specific key. – Sam Chats May 28 '17 at 07:37
  • [Here](https://dev.twitter.com/rest/public/search) is the list of full queries supported by the Twitter Search API; if it's not on this list, I doubt they support it. – NHagar May 28 '17 at 17:18
  • @FiscalTwinkle this search API is for tweets, not for users. The [user search API documentation](https://dev.twitter.com/rest/reference/get/users/search), as I mentioned before, doesn't contain such example queries. – Sam Chats May 29 '17 at 10:29
  • Tweet and user searches use the same query parameter structure @SamChats. – NHagar May 29 '17 at 18:08