Communities
Get Community Members
Get community members (paginated).
GET
/
twitter
/
v1
/
communities
/
{id}
/
members
Get Community Members
curl --request GET \
--url https://api.openbits.ai/twitter/v1/communities/{id}/members \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openbits.ai/twitter/v1/communities/{id}/members"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openbits.ai/twitter/v1/communities/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openbits.ai/twitter/v1/communities/{id}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.openbits.ai/twitter/v1/communities/{id}/members"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openbits.ai/twitter/v1/communities/{id}/members")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openbits.ai/twitter/v1/communities/{id}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "44196397",
"username": "elonmusk",
"displayUsername": "elonmusk",
"name": "Elon Musk",
"description": "Mars & Cars, Chips & Dips",
"location": "Earth",
"url": "https://x.com/elonmusk",
"profileImageUrl": "https://pbs.twimg.com/profile_images/1234/photo.jpg",
"bannerUrl": null,
"createdAt": "2009-06-02T20:12:29.000Z",
"verified": true,
"verifiedType": "blue",
"protected": false,
"metrics": {
"followers": 200000000,
"following": 800,
"tweets": 50000,
"listed": 120000,
"likes": 45000,
"media": 3000
},
"pinnedTweetIds": [
"1234567890"
]
}
],
"hasNextPage": true,
"nextCursor": "DAADDAABCgABF...",
"requestId": "clxyz123abc",
"cached": false
}
Cost: 100 credits per call
Parameters
string
required
The numeric ID. Example:
1234567890.string
Pagination cursor from a previous response’s
nextCursor. Omit for the first page.number
Number of results per page (1-100, default 20).
Response
TwitterProfile[]
Show TwitterProfile
Show TwitterProfile
string
Twitter user ID.
string
Handle (lowercase, without @).
string
Display variant of the username.
string
Display name.
string
Bio text.
string
User-set location.
string | null
Website URL.
string | null
Avatar image URL.
string | null
Profile banner image URL.
string
Account creation date (ISO 8601).
boolean
Whether the user has a verification badge.
string
One of
blue, business, government, none.boolean
Whether the account is protected.
object
array
IDs of pinned tweets.
boolean
Whether more results are available.
string | null
Cursor for the next page. Pass as
cursor query param.string
Unique request identifier.
boolean
Whether the response was served from cache.
{
"items": [
{
"id": "44196397",
"username": "elonmusk",
"displayUsername": "elonmusk",
"name": "Elon Musk",
"description": "Mars & Cars, Chips & Dips",
"location": "Earth",
"url": "https://x.com/elonmusk",
"profileImageUrl": "https://pbs.twimg.com/profile_images/1234/photo.jpg",
"bannerUrl": null,
"createdAt": "2009-06-02T20:12:29.000Z",
"verified": true,
"verifiedType": "blue",
"protected": false,
"metrics": {
"followers": 200000000,
"following": 800,
"tweets": 50000,
"listed": 120000,
"likes": 45000,
"media": 3000
},
"pinnedTweetIds": [
"1234567890"
]
}
],
"hasNextPage": true,
"nextCursor": "DAADDAABCgABF...",
"requestId": "clxyz123abc",
"cached": false
}
Was this page helpful?
⌘I
Get Community Members
curl --request GET \
--url https://api.openbits.ai/twitter/v1/communities/{id}/members \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openbits.ai/twitter/v1/communities/{id}/members"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.openbits.ai/twitter/v1/communities/{id}/members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.openbits.ai/twitter/v1/communities/{id}/members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.openbits.ai/twitter/v1/communities/{id}/members"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.openbits.ai/twitter/v1/communities/{id}/members")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openbits.ai/twitter/v1/communities/{id}/members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "44196397",
"username": "elonmusk",
"displayUsername": "elonmusk",
"name": "Elon Musk",
"description": "Mars & Cars, Chips & Dips",
"location": "Earth",
"url": "https://x.com/elonmusk",
"profileImageUrl": "https://pbs.twimg.com/profile_images/1234/photo.jpg",
"bannerUrl": null,
"createdAt": "2009-06-02T20:12:29.000Z",
"verified": true,
"verifiedType": "blue",
"protected": false,
"metrics": {
"followers": 200000000,
"following": 800,
"tweets": 50000,
"listed": 120000,
"likes": 45000,
"media": 3000
},
"pinnedTweetIds": [
"1234567890"
]
}
],
"hasNextPage": true,
"nextCursor": "DAADDAABCgABF...",
"requestId": "clxyz123abc",
"cached": false
}