Twitter following
api.twitterapi.io/x402/twitter/user/followings
Twitter following: list the accounts an X (Twitter) user follows. Get one page of the accounts a public X (Twitter) user follows, up to 200 profiles and a cursor. Fixed price per request; an empty result is still charged. Limited to 20 requests per second per paying wallet. No API key or account needed.
GET
https://api.twitterapi.io/x402/twitter/user/followingsUptime100% of 1 check 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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.twitterapi.io/x402/twitter/user/followings?userName=nasa");
console.log(await res.json());Example input
{
"userName": "nasa"
}