# AgentBodega X Post Lookup

> AgentBodega X Post Lookup is a paid API for AI agents from agentbodega.store, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Fetches normalized public post data from X (Twitter) by tweet ID or URL, returning text, author, and engagement metrics.

## Facts

- Endpoint: POST https://agentbodega.store/api/social-media/x/tweet
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbodega-x-post-lookup-5244aa35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rdRRTHfNqmqpAWnFcQRcn

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 agentbodega-x-post-lookup-5244aa35 -d '<json body>'
```

Example prompt: Can you look up the tweet with ID 1234567890 and tell me who posted it, what it says, and how many likes and reposts it has?

## When to prefer this

Use this endpoint when an agent needs to fetch structured, normalized data about a specific public X (Twitter) post by its ID or URL, especially in x402-payment-enabled agent workflows where per-call micropayments are acceptable. Prefer over scraping when you need reliable engagement metrics and author data in a consistent JSON schema.

## Known failure modes

- Tweet not found (invalid or deleted tweet ID/URL)
- Private or restricted account — post not publicly accessible
- Malformed input — neither tweetId nor tweetUrl provided
- Rate limiting or upstream X API unavailability
- Payment not fulfilled — x402 payment required before response is returned

## How this service works

Small x402-payable utility APIs for agents: endpoint inspection, launch checks, and hosted artifacts.

## Output

A JSON object containing the tweet's normalized text, author username, tweet ID, and engagement metrics (likes, replies, reposts), plus a success flag and the original requested parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "fields": [
      {
       "name": "tweetId",
       "type": "string",
       "required": false
      },
      {
       "name": "tweetUrl",
       "type": "string",
       "required": false
      }
     ],
     "required": [],
     "fieldCount": 2,
     "contentType": "application/json",
     "optionalPreview": [
      "tweetId",
      "tweetUrl"
     ],
     "omittedFieldCount": 0
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "x-tweet",
   "name": "X Post Lookup",
   "department": "Social Media"
  },
  "tweet": {
   "id": "20",
   "text": "Normalized public post text",
   "author": {
    "username": "jack"
   },
   "metrics": {
    "likes": 0,
    "replies": 0,
    "reposts": 0
   }
  },
  "success": true,
  "requested": {
   "tweetId": "20"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbodega-x-post-lookup-5244aa35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbodega.store](https://www.zero.xyz/host/agentbodega.store/llms.txt)
