Search
GET
/tw-v2/community/searchDescription
Search for communities by keyword. Returns a list of communities matching the search query with basic information like name, member count, and topic.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | required | Search query string to find communities |
| cursor | string | optional | Pagination cursor for fetching next page of results |
Code Examples
const params = new URLSearchParams({
query: 'programming'
});
const response = await fetch(`https://api.tweetapi.com/tw-v2/community/search?${params}`, {
method: 'GET',
headers: {
'X-API-Key': 'YOUR_API_KEY'
}
});
const data = await response.json();
console.log(data);
Response
Success Response (200 OK)
200
{
"data": [
{
"id": "1001577312306161651",
"name": "Sample User 64708",
"memberCount": 45230,
"topic": "Technology",
"isNsfw": false,
"bannerUrl": "https://example.com/images/sample-banner-64708.jpg",
"defaultBannerUrl": null,
"membersFacepile": [
"https://example.com/link-94089/profile-29900/media/sample-media-80101.jpg",
"https://example.com/link-94089/profile-29900/media/sample-media-80101.jpg",
"https://example.com/link-94089/profile-29900/media/sample-media-80101.jpg"
]
},
{
"id": "9009824028838147488",
"name": "Web Development",
"memberCount": 28150,
"topic": "Technology",
"isNsfw": false,
"bannerUrl": "https://example.com/images/sample-banner-24361.jpg",
"defaultBannerUrl": null,
"membersFacepile": [
"https://example.com/link-94089/profile-29900/media/sample-media-83853.jpg",
"https://example.com/link-94089/profile-29900/media/sample-media-83853.jpg"
]
}
],
"nextCursor": "DAACDAABCgABF_R4_5_____9CAADRDEqP84wPCAKAAIX9Hj_n-gQAAgAAwAAAAIAAA"
}API Playground
GET
/tw-v2/community/searchPress ⌘ + Enter to execute
curl -X GET "https://api.tweetapi.com/tw-v2/community/search" \
-H "X-API-Key: YOUR_API_KEY"Response
Click "Try It!" to see the response