메인 콘텐츠로 건너뛰기
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": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ]
}

인증

Authorization
string
header
필수

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

쿼리 매개변수

rules_count.fields
enum<string>[]

표시할 RulesCount 필드를 쉼표로 구분한 목록입니다. RulesCount 객체에서 사용할 수 있는 필드입니다.

Minimum array length: 1
사용 가능한 옵션:
all_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"
]

응답

요청이 성공적으로 처리되었습니다.

data
object

애플리케이션 및 프로젝트 수준에서의 사용자 정의 스트림 필터링 규칙 개수입니다.

errors
object[]
Minimum array length: 1

IETF RFC 7807(https://tools.ietf.org/html/rfc7807)에 정의된 HTTP Problem Details 객체