Retrieves the count of rules in the active rule set for the filtered stream.
curl --request GET \
--url https://api.x.com/2/tweets/search/stream/rules/counts \
--header 'Authorization: Bearer <token>'{
"data": {
"all_project_client_apps": [
{
"client_app_id": "<string>",
"rule_count": 123
}
],
"cap_per_client_app": 123,
"cap_per_project": 123,
"client_app_rules_count": {
"client_app_id": "<string>",
"rule_count": 123
},
"project_rules_count": 123
},
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.x.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A comma separated list of RulesCount fields to display. The fields available for a RulesCount object.
1all_project_client_apps, cap_per_client_app, cap_per_project, client_app_rules_count, project_rules_count [
"all_project_client_apps",
"cap_per_client_app",
"cap_per_project",
"client_app_rules_count",
"project_rules_count"
]The request has succeeded.
A count of user-provided stream filtering rules at the application and project levels.
Show child attributes
1An HTTP Problem Details object, as defined in IETF RFC 7807 (https://tools.ietf.org/html/rfc7807).
Show child attributes
curl --request GET \
--url https://api.x.com/2/tweets/search/stream/rules/counts \
--header 'Authorization: Bearer <token>'{
"data": {
"all_project_client_apps": [
{
"client_app_id": "<string>",
"rule_count": 123
}
],
"cap_per_client_app": 123,
"cap_per_project": 123,
"client_app_rules_count": {
"client_app_id": "<string>",
"rule_count": 123
},
"project_rules_count": 123
},
"errors": [
{
"title": "<string>",
"type": "<string>",
"detail": "<string>",
"status": 123
}
]
}