B

botsmith · X Search

by botsmith

GETBaseX Layer

$0.02

per call · USD Coin on Base

X Tweet Search ($0.02/call): Search X (Twitter) posts with full advanced-search syntax (from:, since:, until:, exact phrases, boolean operators). Returns up to 20 posts per call as clean JSON with metrics and entities, plus a cursor for the next page. No X account or API key needed.

Endpoint

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

187

Calls / 30d

9

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

Example response

{
  "hasNextPage": true,
  "nextCursor": "DAACCgACGgAAAAAAAAA",
  "tweets": [
    {
      "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