Search API

api

#1

Hi there,
I am using twitter4J to search for a tweets based on keywords (searching operators), if i am searching for tweet with one searching operator i found few tweets and again searching with the same operator it will give new tweets or same old tweets, if there is no new tweets for that operator how prevent the same user for same searching operators.
suggest me


#2

To see just new results, pass the since_id parameter. Set it to the 1 + the ID of the most recent result you’ve seen. See: https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets.


#3

but how can use this since_id parameter by using Twitter4J, any code examples


#4

I’m not a Twitter4J user, but a Google search should help you find some examples. Here’s one: http://twitter4j.org/en/code-examples.html.