Skip to content
Fourohtwo

Fetch a user's X/Twitter timeline

twitr.sh/api/tools/x_timeline

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.

BaseAnswering
POSThttps://twitr.sh/api/tools/x_timeline

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://twitr.sh/api/tools/x_timeline", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"id":"elonmusk","kind":"user-tweets","resultsLimit":100}),
});
console.log(await res.json());

Example input

{
  "id": "elonmusk",
  "kind": "user-tweets",
  "resultsLimit": 100
}