client.Stream (StreamClient).
Methods
ActivityStream
GET /2/activity/stream Streaming
Activity Stream
Stream of X Activities
Parameters
Returns:Task<EventStream<ActivityStreamResponse>>
GetRuleCountsAsync
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:Task<GetRuleCountsResponse>
GetRulesAsync
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:Task<GetRulesResponse> (use GetRulesPages(...) for IAsyncEnumerable page iteration)
LabelsComplianceStream
GET /2/tweets/label/stream Streaming
Stream Post Labels
Streams all labeling events applied to Posts.
Parameters
Returns:Task<EventStream<JsonElement>>
LikesComplianceStream
GET /2/likes/compliance/stream Streaming
Stream Likes Compliance Data
Streams all compliance data related to Likes for Users.
Parameters
Returns:Task<EventStream<JsonElement>>
LikesFirehoseStream
GET /2/likes/firehose/stream Streaming
Stream All Likes
Streams all public Likes in real-time.
Parameters
Returns:Task<EventStream<StreamLikesFirehoseResponse>>
LikesSample10Stream
GET /2/likes/sample10/stream Streaming
Stream Sampled Likes
Streams a 10% sample of public Likes in real-time.
Parameters
Returns:Task<EventStream<StreamLikesSample10Response>>
PostsStream
GET /2/tweets/search/stream Streaming
Stream Filtered Posts
Streams Posts in real-time matching the active rule set.
Parameters
Returns:Task<EventStream<StreamPostsResponse>>
PostsComplianceStream
GET /2/tweets/compliance/stream Streaming
Stream Posts Compliance Data
Streams all compliance data related to Posts.
Parameters
Returns:Task<EventStream<JsonElement>>
PostsFirehoseStream
GET /2/tweets/firehose/stream Streaming
Stream All Posts
Streams all public Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsFirehoseResponse>>
PostsFirehoseEnStream
GET /2/tweets/firehose/stream/lang/en Streaming
Stream English Posts
Streams all public English-language Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsFirehoseEnResponse>>
PostsFirehoseJaStream
GET /2/tweets/firehose/stream/lang/ja Streaming
Stream Japanese Posts
Streams all public Japanese-language Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsFirehoseJaResponse>>
PostsFirehoseKoStream
GET /2/tweets/firehose/stream/lang/ko Streaming
Stream Korean Posts
Streams all public Korean-language Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsFirehoseKoResponse>>
PostsFirehosePtStream
GET /2/tweets/firehose/stream/lang/pt Streaming
Stream Portuguese Posts
Streams all public Portuguese-language Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsFirehosePtResponse>>
PostsSampleStream
GET /2/tweets/sample/stream Streaming
Stream Sampled Posts
Streams a 1% sample of public Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsSampleResponse>>
PostsSample10Stream
GET /2/tweets/sample10/stream Streaming
Stream 10% Sampled Posts
Streams a 10% sample of public Posts in real-time.
Parameters
Returns:Task<EventStream<StreamPostsSample10Response>>
UpdateRulesAsync
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:Task<UpdateRulesResponse>
UsersComplianceStream
GET /2/users/compliance/stream Streaming
Stream Users Compliance Data
Streams all compliance data related to Users.
Parameters
Returns:Task<EventStream<JsonElement>>