메인 콘텐츠로 건너뛰기
GET
/
2
/
communities
/
{id}
id로 커뮤니티 조회
curl --request GET \
  --url https://api.x.com/2/communities/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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.

경로 매개변수

id
string
필수

Community의 ID입니다. 이 커뮤니티의 고유 식별자입니다.

Pattern: ^[0-9]{1,19}$
예시:

"1146654567674912769"

쿼리 매개변수

community.fields
enum<string>[]

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

Minimum array length: 1
사용 가능한 옵션:
access,
created_at,
description,
id,
join_policy,
member_count,
name
예시:
[
"access",
"created_at",
"description",
"id",
"join_policy",
"member_count",
"name"
]

응답

요청이 성공했습니다.

data
object

X 커뮤니티는 엄선된 포스트 모음입니다.

errors
object[]
Minimum array length: 1

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