client.stream() (StreamClient).
Methods
activity
GET /2/activity/stream Streaming
Activity Stream
Stream of X Activities
Parameters
Returns:EventStream<Schemas.ActivityStreamResponse>
getRuleCounts
GET /2/tweets/search/stream/rules/counts
Get Stream Rule Counts
Retrieves the count of rules in the active rule set for the filtered stream.
Parameters
Returns:Schemas.GetRuleCountsResponse
getRules
GET /2/tweets/search/stream/rules Paginated
Get Stream Rules
Returns the active filtered-stream rules for the authenticated app. Provide ids to fetch specific rules; omit it to list all rules.
Parameters
Returns:Schemas.GetRulesResponse (use getRulesPages(...) for automatic Paginator<...> iteration)
labelsCompliance
GET /2/tweets/label/stream Streaming
Stream Post Labels
Streams all labeling events applied to Posts.
Parameters
Returns:EventStream<JsonNode>
likesCompliance
GET /2/likes/compliance/stream Streaming
Stream Likes Compliance Data
Streams all compliance data related to Likes for Users.
Parameters
Returns:EventStream<JsonNode>
likesFirehose
GET /2/likes/firehose/stream Streaming
Stream All Likes
Streams all public Likes in real-time.
Parameters
Returns:EventStream<Schemas.StreamLikesFirehoseResponse>
likesSample10
GET /2/likes/sample10/stream Streaming
Stream Sampled Likes
Streams a 10% sample of public Likes in real-time.
Parameters
Returns:EventStream<Schemas.StreamLikesSample10Response>
posts
GET /2/tweets/search/stream Streaming
Stream Filtered Posts
Streams Posts in real-time matching the active rule set.
Parameters
Returns:EventStream<Schemas.StreamPostsResponse>
postsCompliance
GET /2/tweets/compliance/stream Streaming
Stream Posts Compliance Data
Streams all compliance data related to Posts.
Parameters
Returns:EventStream<JsonNode>
postsFirehose
GET /2/tweets/firehose/stream Streaming
Stream All Posts
Streams all public Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsFirehoseResponse>
postsFirehoseEn
GET /2/tweets/firehose/stream/lang/en Streaming
Stream English Posts
Streams all public English-language Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsFirehoseEnResponse>
postsFirehoseJa
GET /2/tweets/firehose/stream/lang/ja Streaming
Stream Japanese Posts
Streams all public Japanese-language Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsFirehoseJaResponse>
postsFirehoseKo
GET /2/tweets/firehose/stream/lang/ko Streaming
Stream Korean Posts
Streams all public Korean-language Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsFirehoseKoResponse>
postsFirehosePt
GET /2/tweets/firehose/stream/lang/pt Streaming
Stream Portuguese Posts
Streams all public Portuguese-language Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsFirehosePtResponse>
postsSample
GET /2/tweets/sample/stream Streaming
Stream Sampled Posts
Streams a 1% sample of public Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsSampleResponse>
postsSample10
GET /2/tweets/sample10/stream Streaming
Stream 10% Sampled Posts
Streams a 10% sample of public Posts in real-time.
Parameters
Returns:EventStream<Schemas.StreamPostsSample10Response>
updateRules
POST /2/tweets/search/stream/rules
Update Stream Rules
Adds or deletes rules from the active rule set for the filtered stream. Exactly one of add, delete, or ?delete_all=true must be specified. Use ?dry_run=true to validate without committing.
Parameters
Returns:Schemas.UpdateRulesResponse
usersCompliance
GET /2/users/compliance/stream Streaming
Stream Users Compliance Data
Streams all compliance data related to Users.
Parameters
Returns:EventStream<JsonNode>