# PayWeave Twitter – Lookup User Profile by Username

> PayWeave Twitter – Lookup User Profile by Username is a paid API for AI agents from twitter.payweave.services, paid per call via x402, $0.0006/call, status unknown (last checked 2026-09-14).

Fetches a Twitter/X user's public profile JSON by their screen name (handle), proxied via twitterapi.io, billed per call over x402.

## Facts

- Endpoint: GET https://twitter.payweave.services/users/by/username
- Price: $0.0006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-twitter-lookup-user-profile-by-username-c4c1968b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HwxkgHF93oeoPwGnujTEq

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 payweave-twitter-lookup-user-profile-by-username-c4c1968b
```

Example prompt: Can you look up the Twitter profile for the username 'paulg' and tell me their bio, follower count, and whether they're verified?

## When to prefer this

Choose this endpoint when you need to resolve a single Twitter/X screen name to a full public profile object in real time, especially when you want pay-per-call billing with no subscription commitment. Prefer it over scraping or official Twitter API v2 when you need instant per-query micropayment pricing via x402/USDC and don't want to manage API keys or rate-limit tiers.

## Known failure modes

- Username not found: returns an error or empty result if the handle does not exist or the account is suspended
- Rate or quota limits from the underlying twitterapi.io provider causing transient failures
- Malformed or missing username input (minLength:1 not met) causes schema validation rejection
- Network or payment settlement failure under x402 protocol resulting in no response
- Private or deactivated accounts may return limited or no data

## How this service works

X/Twitter data — tweets, users, communities, lists, articles, and trends.

## Output

A user-profile JSON object forwarded verbatim from twitterapi.io, typically containing fields such as display name, screen name, bio/description, follower count, following count, tweet count, account creation date, profile image URL, and verification status.

## 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": {
     "anyOf": [
      {
       "not": {}
      },
      {
       "type": "object",
       "required": [
        "username"
       ],
       "properties": {
        "username": {
         "type": "string",
         "minLength": 1,
         "description": "X handle / screen name (without @), e.g. elonmusk."
        }
       },
       "additionalProperties": false
      }
     ]
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "const": "GET"
    },
    "bodyType": {
     "type": "string",
     "const": "json"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "example"
   ],
   "properties": {
    "example": {
     "type": "object",
     "properties": {},
     "description": "User-profile JSON forwarded verbatim from twitterapi.io.",
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payweave-twitter-lookup-user-profile-by-username-c4c1968b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from twitter.payweave.services](https://www.zero.xyz/host/twitter.payweave.services/llms.txt)
