X tweet lookup · X Tweet

by X tweet lookup

POSTBaseSolanaArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220stellar:pubnetalgorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=

$0.008

per call · USD Coin on Base

Fetch one public tweet on X (Twitter) by id: text, created time, language, conversation id, engagement metrics (likes, retweets, replies, quotes, bookmarks, impressions) and the author's username, name and verification.

Endpoint

POST https://agent402.tools/api/x-tweet

7

Calls / 30d

1

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://agent402.tools/api/x-tweet", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "id": "1800000000000000000"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/api/x-tweet" \
  -H "Content-Type: application/json" \
  -d '{"id":"1800000000000000000"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "fetchedAt": "2026-08-20T14:10:00.000Z",
  "source": "x-api-v2",
  "tweet": {
    "author": {
      "name": "jack",
      "username": "jack",
      "verified": false
    },
    "authorId": "12",
    "conversationId": "20",
    "createdAt": "2006-03-21T20:50:14.000Z",
    "id": "20",
    "lang": "en",
    "metrics": {
      "bookmarks": 5000,
      "impressions": 0,
      "likes": 180000,
      "quotes": 30000,
      "replies": 10000,
      "retweets": 120000
    },
    "possiblySensitive": false,
    "text": "just setting up my twttr",
    "url": "https://x.com/jack/status/20"
  }
}

Payment details

Pay to0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220, stellar:pubnet, algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8=
Schemesexact, upto

Is this your API?

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

Get featured →

More from X tweet lookup & similar services