B

botsmith · X Tweet

by botsmith

GETBaseX Layer

$0.015

per call · USD Coin on Base

X Tweet Lookup ($0.015/call): Fetch one X (Twitter) post by numeric id: full text, author, ISO timestamp, like/retweet/reply/view counts, hashtags, expanded links and mentions as clean JSON. No X account or API key needed.

Endpoint

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

3

Calls / 30d

2

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/tweet", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://x402.botsmith.dev/x/tweet?id=1846987139428634858" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "author": {
    "handle": "example",
    "id": "44196397",
    "name": "Example Dev"
  },
  "createdAt": "2026-07-01T07:00:30.000Z",
  "hashtags": [
    "x402"
  ],
  "id": "1846987139428634858",
  "lang": "en",
  "links": [
    "https://x402.org"
  ],
  "mentions": [
    "coinbase"
  ],
  "metrics": {
    "likes": 1200,
    "quotes": 12,
    "replies": 85,
    "retweets": 340,
    "views": 250000
  },
  "text": "Shipping the new agent payments stack today. HTTP 402 is finally real.",
  "url": "https://x.com/example/status/1846987139428634858"
}

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