# twit.sh – Get Twitter/X User Following List

> twit.sh – Get Twitter/X User Following List 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).

Returns a paginated list of accounts that a given Twitter/X user is following, including profile and public metrics for each account.

## Facts

- Endpoint: GET https://twit.sh/users/following
- 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-get-twitter-x-user-following-list-3f55df59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZGRAec101EIwEBoOYs_mb

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-get-twitter-x-user-following-list-3f55df59
```

Example prompt: Pull the full list of accounts that Twitter user ID 9253672 (Hal Finney) is following — I want their usernames, bios, and follower counts, and page through all results if there are more than one page.

## When to prefer this

Use this endpoint when you need the following list of a specific Twitter/X user by numeric ID without setting up Twitter API credentials or OAuth. Ideal for autonomous AI agents that need real-time social graph data and can pay per-request in USDC on Base. Prefer this over the official Twitter API when you want zero-setup access or are operating in an agent context that supports x402 micropayments.

## Known failure modes

- Invalid or non-existent user ID returns an empty data array or 404-equivalent error
- Exhausted or invalid next_token causes pagination to fail or restart from the beginning
- Payment failure (insufficient USDC or x402 issue) results in a 402 Payment Required response
- Rate limiting or upstream Twitter/X API throttling may return a 429 or service-unavailable error
- Private/protected accounts may return an empty or restricted following list

## 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

A JSON array of user objects under 'data', each containing the user's numeric ID, display name, username, verified status, bio description, and public metrics (like_count, tweet_count, followers_count, following_count). A 'meta' object with a next_token is included when additional pages exist, enabling pagination through the full following list.

## 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 Twitter user 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": "9253672",
    "name": "Hal Finney",
    "username": "halfin",
    "verified": false,
    "description": "Running bitcoin.",
    "public_metrics": {
     "like_count": 300,
     "tweet_count": 600,
     "followers_count": 134000,
     "following_count": 200
    }
   }
  ],
  "meta": {
   "next_token": "abc123"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/twit-sh-get-twitter-x-user-following-list-3f55df59/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)
