-
The
Filter API
returns public statuses that match one or more filter predicates. Multiple parameters allows using a single connection to the Streaming API. TIP: Thetrack
,follow
, andlocations
fields are combined with an OR operator! Queries withtrack=foo
andfollow=1234
returns Tweets matchingtest
OR created by user1234
. -
The
Sample API
returns a small random sample of all public statuses. The Tweets returned by the default access level are the same, so if two different clients connect to this endpoint, they will see the same Tweets.
The default access level allows up to 400 track keywords, 5,000 follow user Ids and 25 0.1-360 degree location boxes.
Properties grouped by prefix:
- access-token
-
Your Twitter token. (String, default:
<none>
) - access-token-secret
-
Your Twitter token secret. (String, default:
<none>
) - consumer-key
-
Your Twitter key. (String, default:
<none>
) - consumer-secret
-
Your Twitter secret. (String, default:
<none>
) - debug-enabled
-
Enables Twitter4J debug mode. (Boolean, default:
false
) - raw-json
-
Enable caching the original (raw) JSON objects as returned by the Twitter APIs. When set to False the result will use the Twitter4J's json representations. When set to True the result will use the original Twitter APISs json representations. (Boolean, default:
true
)
- count
-
Indicates the number of previous statuses to stream before transitioning to the live stream. (Integer, default:
0
) - filter-level
-
The filter level limits what tweets appear in the stream to those with a minimum filterLevel attribute value. One of either none, low, or medium. (FilterLevel, default:
<none>
) - follow
-
Specifies the users, by ID, to receive public tweets from. (List<Long>, default:
<none>
) - language
-
Specifies the tweets language of the stream. (List<String>, default:
<none>
) - locations
-
Locations to track. Internally represented as 2D array. Bounding box is invalid: 52.38, 4.90, 51.51, -0.12. The first pair must be the SW corner of the box (List<BoundingBox>, default:
<none>
) - track
-
Specifies keywords to track. (List<String>, default:
<none>
)