GET /2/tweets/search/stream/rules
GET /2/tweets/search/stream/rules
Return either a single rule, or a list of rules that have been added to the stream.
If you would like to initiate the stream to receive all Tweets that match these rules in real-time, you will need to use the GET /tweets/search/stream endpoint.
Endpoint URL
https://api.x.com/2/tweets/search/stream/rules
Authentication and rate limits
Authentication methods supported by this endpoint | |
---|---|
Rate limit | App rate limit (Application-only): 450 requests per 15-minute window shared among all users of your app |
Query parameters
Name | Type | Description |
---|---|---|
ids Optional | string | Comma-separated list of rule IDs. If omitted, all rules are returned. |
Example code with offical SDKs
TypeScript
Java
Example responses
Response
Response fields
Name | Type | Description |
---|---|---|
id | string | Unique identifier of this rule. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers. |
value | string | The rule text as submitted when creating the rule. |
tag | string | The tag label as defined when creating the rule. |
meta.sent | number | The time when the request body was returned. |
errors | object | Contains details about errors that affected any of the requested Tweets. See Status codes and error messages for more details. |