Join Community
POST
/tw-v2/interaction/join-communityDescription
Join a Twitter/X community. Returns community details including name, description, member count, and your role after joining.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| authToken | string | required | Twitter authentication token (auth_token cookie value) |
| communityId | string | required | The numeric ID of the community to join |
| proxy | string | optional | Optional proxy in format 'host:port@user:pass' |
Code Examples
const body = {
authToken: 'YOUR_AUTH_TOKEN',
communityId: '1234567890123456789'
};
const response = await fetch('https://api.tweetapi.com/tw-v2/interaction/join-community', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify(body)
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": {
"id": "1234567890123456789",
"action": "join_community",
"timestamp": "2025-01-15T10:30:00.000Z",
"success": true,
"metadata": {
"community_id": "1234567890123456789",
"community_name": "Example Community",
"community_description": "A community for sharing ideas and discussions on various topics",
"member_count": 12500,
"role": "Member"
}
}
}API Playground
POST
/tw-v2/interaction/join-communitySensitive Credentials Required
Requires your Twitter authToken. Use a test account.
Press ⌘ + Enter to execute
curl -X POST "https://api.tweetapi.com/tw-v2/interaction/join-community" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"Response
Click "Try It!" to see the response