T

Twitr · Tools X Search

by Twitr

POSTBaseSolana

$0.06

per call · USD Coin on Base

Search X/Twitter tweets with the full operator set — keyword, exact phrase, from-user, language, date range, media type, minimum likes/retweets, verified-only — or search user profiles by keyword. Billed per tweet returned against your resultsLimit cap. Built for tracking what people say about a topic, brand, or ticker in real time.

Endpoint

POST https://twitr.sh/api/tools/x_search

48

Calls / 30d

6

Unique payers / 30d

Sep 9

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://twitr.sh/api/tools/x_search", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "language": "en",
    "minFaves": 100,
    "q": "artificial intelligence",
    "resultsLimit": 50,
    "type": "search-tweets"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://twitr.sh/api/tools/x_search" \
  -H "Content-Type: application/json" \
  -d '{"language":"en","minFaves":100,"q":"artificial intelligence","resultsLimit":50,"type":"search-tweets"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "duration": 2,
  "items": [
    {
      "authorUsername": "elonmusk",
      "createdAt": "2026-02-24T10:05:00.000Z",
      "id": "1893710452812718080",
      "likeCount": 1180,
      "text": "This is a great thread, thanks for sharing."
    }
  ],
  "payment": {
    "amount": "0.060000",
    "currency": "USD",
    "protocol": "x402"
  },
  "runId": "tw_example"
}

Payment details

Pay to0xb5194a98dbdbb7028b585db26b972e7f0f3f826a
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

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

Get featured →

More from Twitr & similar services