# twit.sh — X Community Posts Fetcher

> twit.sh — X Community Posts Fetcher is a paid API for AI agents from twit.sh, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Fetches real-time posts from a specific X (Twitter) community by community ID, with pagination support

## Facts

- Endpoint: GET https://twit.sh/communities/posts
- Price: $0.01/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-community-posts-fetcher-8f0c131c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RSzODY8vKdRpvZSEi4J7U

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-community-posts-fetcher-8f0c131c
```

Example prompt: Pull the latest posts from X community ID 1234567890 and show me what people are discussing there.

## When to prefer this

Choose this endpoint when you need real-time posts from a specific X community without managing Twitter API credentials or signing up for developer access. It is ideal for AI agents that need autonomous, pay-per-use access to community-level Twitter data using USDC micropayments on Base. Prefer this over direct Twitter API access when you want zero-setup, frictionless integration.

## Known failure modes

- Invalid or non-existent community ID returns empty data array or error
- Missing required 'id' query parameter causes request failure
- Expired or invalid next_token pagination cursor returns error or first page
- Payment failure via x402/USDC prevents access to data
- Rate limiting or upstream X API unavailability causes timeout or error
- Private or restricted communities may return no posts

## 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 list of posts from the specified X community, each containing tweet ID, text content, author info (ID, name, username), creation timestamp, and public engagement metrics (likes, retweets, replies, quotes). Also returns a next_token for paginating to the next page of results.

## 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"
      },
      "next_token": {
       "type": "string",
       "description": "Pagination cursor from previous response"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "1110302988",
    "text": "Running bitcoin",
    "author": {
     "id": "9253672",
     "name": "Hal Finney",
     "username": "halfin"
    },
    "created_at": "2009-01-11T03:39:18.000Z",
    "public_metrics": {
     "like_count": 134000,
     "quote_count": 3500,
     "reply_count": 5400,
     "retweet_count": 32000
    }
   }
  ],
  "meta": {
   "next_token": "abc123"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-x-community-posts-fetcher-8f0c131c/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)
