# twit.sh — X Communities Lookup by ID

> twit.sh — X Communities Lookup by ID is a paid API for AI agents from twit.sh, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Fetches detailed metadata for a Twitter/X Community by its numeric community ID, including name, admin, topic, membership count, and join policy.

## Facts

- Endpoint: GET https://twit.sh/communities/by/id
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/twit-sh-x-communities-lookup-by-id-37832f02
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_604RqXmkj-Umhk4knurYI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability twit-sh-x-communities-lookup-by-id-37832f02
```

Example prompt: Can you pull up the details for the X community with ID 1693573582226665701 — I want to know its name, how many members it has, who admins it, and whether it's open to join?

## When to prefer this

Use this endpoint when you have a specific numeric Twitter/X community ID and need structured metadata about that community — such as its admin, size, topic, or join policy — without needing to authenticate with the Twitter API directly. Ideal for AI agents that need to programmatically enrich or qualify X communities at low cost per call.

## Known failure modes

- Invalid or non-numeric community ID returns an error or empty response
- Community ID does not exist returns 404 or null data
- Payment failure via x402 results in 402 response blocking data access
- Rate limiting may occur under high request volume
- Private or deleted communities may return restricted or no data

## How this service works

Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402. Fully autonomous.

## Output

Returns a JSON object with full community metadata: community ID, name, admin details (ID, name, username, verification status, follower count), topic (ID and name), NSFW flag, creation timestamp, description, join policy, member count, invites policy, and moderator count.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "id"
     ],
     "properties": {
      "id": {
       "type": "string",
       "description": "Numeric community ID"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "id": "1693573582226665701",
   "name": "Crypto DeFi Community",
   "admin": {
    "id": "2809989583",
    "name": "Gabor Gurbacs",
    "username": "gaborgurbacs",
    "verified": true,
    "verified_type": "blue",
    "public_metrics": {
     "followers_count": 84938
    }
   },
   "topic": {
    "id": "847877002",
    "name": "Cryptocurrency"
   },
   "is_nsfw": false,
   "created_at": "2023-08-21T10:39:41.000Z",
   "description": "A community for DeFi enthusiasts.",
   "join_policy": "Open",
   "member_count": 72053,
   "invites_policy": "ModeratorInvitesAllowed",
   "moderator_count": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-x-communities-lookup-by-id-37832f02/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twit.sh](https://www.zero.xyz/host/twit.sh/llms.txt)
