GET
/
2
/
tweets
/
search
/
stream
/
rules
/
counts
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": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

rules_count.fields
enum<string>[]

A comma separated list of RulesCount fields to display.

Available options:
all_project_client_apps,
cap_per_client_app,
cap_per_project,
client_app_rules_count,
project_rules_count

Response

200
application/json
The request has succeeded.
data
object

A count of user-provided stream filtering rules at the application and project levels.

errors
object[]