85trust / 100

By Username

by x402.twit.sh in News & content

x402 APIPassing, checked 3 h ago

Look up a Twitter/X user profile by their screen name. Returns full profile data including id, name, username, bio, follower count, following count, tweet count, verification status, and profile image URL. Query param: username (string, required) - Twitter screen name without @, e.g. GET /users/by/username?username=elonmusk. Returns X v2 API-compatible JSON.

GET https://x402.twit.sh/users/by/username

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
38 ms typical, 38 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://x402.twit.sh/users/by/username?username=elonmusk"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.twit.sh%2Fusers%2Fby%2Fusername
const res = await pay("https://x402.twit.sh/users/by/username?username=elonmusk");
console.log(await res.json());

Example input

{
  "username": "elonmusk"
}

Example output

{
  "data": {
    "description": "Running bitcoin.",
    "id": "9253672",
    "name": "Hal Finney",
    "public_metrics": {
      "followers_count": 134000,
      "following_count": 200,
      "like_count": 300,
      "tweet_count": 600
    },
    "username": "halfin",
    "verified": false
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed40238 ms$0.005