T

Twitr · Tools X Timeline

by Twitr

POSTBaseSolana

$0.12

per call · USD Coin on Base

Fetch a user's X/Twitter timeline — their tweets, replies, likes, media posts, or mentions — plus follower and following lists, and per-tweet engagement lists (who replied, quoted, retweeted, or favorited). Billed per item returned. The building block for monitoring what an account posts or ranking accounts by activity.

Endpoint

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

3

Calls / 30d

2

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_timeline", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "id": "elonmusk",
    "kind": "user-tweets",
    "resultsLimit": 100
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://twitr.sh/api/tools/x_timeline" \
  -H "Content-Type: application/json" \
  -d '{"id":"elonmusk","kind":"user-tweets","resultsLimit":100}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "duration": 3,
  "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.120000",
    "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