Skip to main content
Access Stream endpoints via client.stream (StreamClient).

Methods

activity

GET /2/activity/stream Streaming Activity Stream Stream of X Activities

Parameters

Returns: Enumerator<Hash>

get_rule_counts

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: Hash

get_rules

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: Enumerator<Hash>

labels_compliance

GET /2/tweets/label/stream Streaming Stream Post Labels Streams all labeling events applied to Posts.

Parameters

Returns: Enumerator<Hash>

likes_compliance

GET /2/likes/compliance/stream Streaming Stream Likes Compliance Data Streams all compliance data related to Likes for Users.

Parameters

Returns: Enumerator<Hash>

likes_firehose

GET /2/likes/firehose/stream Streaming Stream All Likes Streams all public Likes in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

likes_sample10

GET /2/likes/sample10/stream Streaming Stream Sampled Likes Streams a 10% sample of public Likes in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts

GET /2/tweets/search/stream Streaming Stream Filtered Posts Streams Posts in real-time matching the active rule set.

Parameters

Returns: Enumerator<Hash>

posts_compliance

GET /2/tweets/compliance/stream Streaming Stream Posts Compliance Data Streams all compliance data related to Posts.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_firehose

GET /2/tweets/firehose/stream Streaming Stream All Posts Streams all public Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_firehose_en

GET /2/tweets/firehose/stream/lang/en Streaming Stream English Posts Streams all public English-language Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_firehose_ja

GET /2/tweets/firehose/stream/lang/ja Streaming Stream Japanese Posts Streams all public Japanese-language Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_firehose_ko

GET /2/tweets/firehose/stream/lang/ko Streaming Stream Korean Posts Streams all public Korean-language Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_firehose_pt

GET /2/tweets/firehose/stream/lang/pt Streaming Stream Portuguese Posts Streams all public Portuguese-language Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

posts_sample

GET /2/tweets/sample/stream Streaming Stream Sampled Posts Streams a 1% sample of public Posts in real-time.

Parameters

Returns: Enumerator<Hash>

posts_sample10

GET /2/tweets/sample10/stream Streaming Stream 10% Sampled Posts Streams a 10% sample of public Posts in real-time.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>

update_rules

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

Hash
required
Request payload.
Returns: Hash

users_compliance

GET /2/users/compliance/stream Streaming Stream Users Compliance Data Streams all compliance data related to Users.

Parameters

Integer
required
The partition number.
Returns: Enumerator<Hash>