cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/community_info?community_id=1493290339532222469' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/twitter/community_info',
params={"community_id": "1493290339532222469"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"community_id": "1493290339532222469"});
const response = await fetch(`https://api.keyapi.ai/v1/twitter/community_info?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"id": "1493290339532222469",
"created_at": 1644863135598,
"name": "XRP",
"description": "XRP community",
"default_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"custom_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"is_nsfw": false,
"primary_topic": null,
"member_count": 122361,
"rules": [
{
"description": "You should be respectful towards others.",
"name": "Be Respectful"
},
{
"description": "To make sure everybody has a good time, keep the tweets about topics within the community.",
"name": "Make sure the tweets are on subject"
},
{
"description": "Don’t post a BOOOOM announcement with fake news",
"name": "Don’t spread fake news"
}
],
"status": "failed",
"last_cursor": ""
},
"requestId": "ac4e6367-0236-402f-b71a-059631824280"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}Twitter / X
社群资料
根据 Community ID 查询 Twitter / X 社群资料。适用于社群发现、社区画像和基础信息采集。
GET
/
v1
/
twitter
/
community_info
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/community_info?community_id=1493290339532222469' \
--header 'Authorization: Bearer <YOUR_API_KEY>'import requests
response = requests.get(
'https://api.keyapi.ai/v1/twitter/community_info',
params={"community_id": "1493290339532222469"},
headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
)
print(response.json())const params = new URLSearchParams({"community_id": "1493290339532222469"});
const response = await fetch(`https://api.keyapi.ai/v1/twitter/community_info?${params}`, {
method: 'GET',
headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
});
const data = await response.json();
console.log(data);{
"code": 0,
"message": "success",
"data": {
"id": "1493290339532222469",
"created_at": 1644863135598,
"name": "XRP",
"description": "XRP community",
"default_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"custom_banner_media": "https://pbs.twimg.com/media/FECS7TfVcAcCrj2.jpg",
"is_nsfw": false,
"primary_topic": null,
"member_count": 122361,
"rules": [
{
"description": "You should be respectful towards others.",
"name": "Be Respectful"
},
{
"description": "To make sure everybody has a good time, keep the tweets about topics within the community.",
"name": "Make sure the tweets are on subject"
},
{
"description": "Don’t post a BOOOOM announcement with fake news",
"name": "Don’t spread fake news"
}
],
"status": "failed",
"last_cursor": ""
},
"requestId": "ac4e6367-0236-402f-b71a-059631824280"
}{
"code": 400,
"data": null,
"message": "Missing required parameter: handle"
}{
"code": 401,
"data": null,
"message": "apiKey is null"
}{
"code": 402,
"data": null,
"message": "apiKey quota is not enough"
}{
"code": 429,
"data": null,
"message": "qps limit exceeded"
}{
"code": 500,
"data": null,
"message": "Internal server error"
}🪙1 credit每次请求
Copy for AI
🤖 让 AI 帮你写调用代码
点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。
⌘I

