# x402.twit.sh Tweet Lookup by ID

> x402.twit.sh Tweet Lookup by ID is a paid API for AI agents from x402.twit.sh, paid per call via x402, $0.0025/call, status unknown (last checked 2026-10-17).

Fetches full tweet data for a single tweet by its numeric tweet ID, including text, author, engagement metrics, and referenced tweets.

## Facts

- Endpoint: GET https://x402.twit.sh/tweets/by/id?utm_source=zero.xyz
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-twit-sh-c2eb12b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S0B9HeNZXMH6BiqmEYRrY

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 x402-twit-sh-c2eb12b4
```

Example prompt: Can you pull up the full details for tweet ID 1110302988 — I want to see the text, who posted it, when it was posted, and how many likes and retweets it got?

## When to prefer this

Use this endpoint when you have a specific tweet ID and need the full tweet payload including engagement metrics and author profile. Ideal for enriching datasets, verifying tweet content, or monitoring a known tweet's performance over time. Prefer this over search-based endpoints when the exact tweet ID is already known.

## Known failure modes

- Invalid or non-numeric tweet ID returns a 400 or 404 error
- Tweet has been deleted — returns not found error
- Tweet belongs to a private/protected account — returns restricted access error
- Missing required 'id' query parameter returns a validation error
- Insufficient payment or expired x402 payment — returns 402 Payment Required
- Rate limit exceeded returns a 429 Too Many Requests error

## How this service works

Look up a single Twitter/X tweet by its numeric tweet ID. Returns full tweet data including text, author profile, creation date, engagement metrics (likes, retweets, replies, quotes, bookmarks), and referenced tweets. Query param: id (string, required) - numeric tweet ID, e.g. GET /tweets/by/id?id=1110302988. Returns X v2 API-compatible JSON.

## Output

Returns an X v2 API-compatible JSON object containing the tweet's full text, author profile information, creation timestamp, and engagement metrics (likes, retweets, replies, quotes, bookmarks), plus any referenced/quoted tweets.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "id": "1110302988"
  }
 }
}
```

## 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 tweet 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": "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
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-twit-sh-c2eb12b4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.twit.sh](https://www.zero.xyz/host/x402.twit.sh/llms.txt)
