Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
이 가이드에서는 리스트 멤버를 조회하는 방법을 설명합니다.
사전 준비 사항시작하기 전에 다음이 필요합니다.
- 승인된 App이 있는 개발자 계정
- App의 Bearer 토큰
리스트 ID 찾기
리스트를 볼 때 URL에서 리스트 ID를 확인할 수 있습니다:https://x.com/i/lists/84839422
└── 이것이 리스트 ID입니다
리스트 멤버 조회 요청 보내기
curl "https://api.x.com/2/lists/84839422/members?\
user.fields=created_at,username,verified&\
max_results=100" \
-H "Authorization: Bearer $BEARER_TOKEN"
응답 확인하기
{
"data": [
{
"id": "1319036828964454402",
"name": "Birdwatch",
"username": "birdwatch",
"created_at": "2020-10-21T22:04:47.000Z",
"verified": true
},
{
"id": "1065249714214457345",
"name": "Spaces",
"username": "TwitterSpaces",
"created_at": "2018-11-21T14:24:58.000Z",
"verified": true
}
],
"meta": {
"result_count": 2,
"next_token": "5349804505549807616"
}
}
expansions를 사용해 고정된 포스트와 같은 연관 데이터를 함께 가져올 수 있습니다:
curl "https://api.x.com/2/lists/84839422/members?\
user.fields=created_at&\
expansions=pinned_tweet_id&\
tweet.fields=created_at" \
-H "Authorization: Bearer $BEARER_TOKEN"