API para X / Twitter: Comunidade
Obtenha os detalhes públicos de uma comunidade do Twitter/X (nome, descrição, número de membros, regra de entrada) pela URL.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"createdUtc": 12.5,
"creatorHandle": "alex_rivera",
"description": "A short example description of this item.",
"id": "a1b2c3d4",
"joinPolicy": "example",
"memberCount": 12500,
"name": "Example title",
"nsfw": true,
"rules": [
{
"name": "Example title"
}
]
},
"found": true,
"reason": "not_found"
}interface TwitterCommunityResponse {
data: {
createdUtc: number;
creatorHandle: string;
description: string;
id: string;
joinPolicy: string;
memberCount: number;
name: string;
nsfw?: boolean;
rules?: {
name?: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/twitter.community \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://x.com/i/communities/1926186499399139650"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| url | string | "https://x.com/i/communities/1926186499399139650"URL da comunidade (ex.: https://x.com/i/communities/1926186499399139650). |
| Resposta | ||
| data | object | The community record, or null when nothing was found. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.creatorHandle | string | Handle of the account that created the community. Populated whenever the provider has data for the entity. |
| data.description | string | Community description text. Populated whenever the provider has data for the entity. |
| data.id | string | Community identifier. Populated whenever the provider has data for the entity. |
| data.joinPolicy | string | How members join, e.g. "open" or "restricted". Populated whenever the provider has data for the entity. |
| data.memberCount | integer | Number of members in the community. |
| data.name | string | Community name. Populated whenever the provider has data for the entity. |
| data.nsfw | boolean | Whether the community is marked not-safe-for-work. |
| data.rules | object[] | Rules the community publishes. |
| data.rules[].name | string | Name of the rule. |
| found | boolean | True when the community was found; false when the lookup returned nothing. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0001 |
| Preço /mil req. | USD | US$ 0,10 |
Dúvidas frequentes
Sobre o endpoint Comunidade da API para X / Twitter
O endpoint Comunidade da AnyAPI para X / Twitter retorna dados de X / Twitter em JSON normalizado com uma chamada POST para /v1/run/twitter.community. Obtenha os detalhes públicos de uma comunidade do Twitter/X (nome, descrição, número de membros, regra de entrada) pela URL. A AnyAPI distribui cada requisição entre 3 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,10 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Comunidade da API para X / Twitter feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,4 segundos, em 68 chamadas medidas.