B

botsmith · X User

by botsmith

GETBaseX Layer

$0.015

per call · USD Coin on Base

X User Profile ($0.015/call): Fetch an X (Twitter) account by handle: display name, bio, follower/following/tweet counts, account creation date and age in days, verification status, location and profile image. No X account or API key needed.

Endpoint

GET https://x402.botsmith.dev/x/user

8

Calls / 30d

4

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.botsmith.dev/x/user", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.botsmith.dev/x/user?handle=naval" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "accountAgeDays": 7106,
  "bio": "Deploy capital and code.",
  "createdAt": "2007-02-01T05:44:27.000Z",
  "followers": 2900000,
  "following": 1200,
  "handle": "naval",
  "id": "745273",
  "location": null,
  "name": "Naval",
  "profileImage": "https://pbs.twimg.com/profile_images/example.jpg",
  "tweetCount": 42000,
  "url": "https://x.com/naval",
  "verified": {
    "blue": true,
    "type": null
  }
}

Payment details

Pay to0xcb9b3f94387389e38ef2a7b3c0b851fb8325d7e9
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, X Layer
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from botsmith & similar services