# glim.sh Twitter User Tweets Lookup

> glim.sh Twitter User Tweets Lookup is a paid API for AI agents from surf.cascade.fyi, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Fetches recent tweets for a given Twitter/X user by username or user ID, returning tweet data and result metadata.

## Facts

- Endpoint: POST https://surf.cascade.fyi/api/v1/twitter/users/%7Bref%7D/tweets
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glim-sh-twitter-user-tweets-lookup-14061dcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XFRb5GouKjpB6q8BFkLaY

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 glim-sh-twitter-user-tweets-lookup-14061dcb -d '<json body>'
```

Example prompt: Can you pull the most recent tweets from the Twitter account @elonmusk and show me what he's been posting?

## When to prefer this

Use this endpoint when you need live, real-time tweet data for a specific Twitter/X user without managing Twitter API credentials or building a scraping stack. Ideal for agents that need to monitor or surface recent social content on demand at low per-call cost.

## Known failure modes

- User not found or invalid username/ID returns empty data or 404-equivalent
- Payment failure (x402) if USDC not provided or insufficient — call is blocked
- Rate limiting by underlying Twitter API may cause upstream errors
- Private or suspended accounts return no tweet data
- Malformed ref parameter causes request to fail

## How this service works

One remote endpoint gives your agent live data from Twitter, Reddit, the open web, GitHub and more. No API keys, no scraping stack - just connect the URL and go.

## Output

Returns a JSON object with a 'data' array of tweet objects (including tweet ID and username) and a 'meta' object with result_count, reflecting the latest tweets from the requested Twitter user.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "cursor": {
       "type": "string",
       "description": "Pagination cursor"
      },
      "include_replies": {
       "type": "boolean",
       "default": false,
       "description": "Include replies in the timeline"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "array",
       "items": {
        "type": "object",
        "propertyNames": {
         "type": "string"
        },
        "additionalProperties": {}
       }
      },
      "meta": {
       "type": "object",
       "required": [
        "result_count"
       ],
       "properties": {
        "next_cursor": {
         "type": "string"
        },
        "result_count": {
         "type": "integer",
         "maximum": 9007199254740991,
         "minimum": -9007199254740991
        },
        "has_next_page": {
         "type": "boolean"
        }
       }
      },
      "summary": {
       "type": "object",
       "propertyNames": {
        "type": "string"
       },
       "additionalProperties": {}
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "id": "1234567890",
    "text": "Example tweet"
   }
  ],
  "meta": {
   "result_count": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glim-sh-twitter-user-tweets-lookup-14061dcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from surf.cascade.fyi](https://www.zero.xyz/host/surf.cascade.fyi/llms.txt)
