GET /v1/twitter/user/:username/following
Get the list of accounts a user follows. Returns up to 70 users per page, with pagination support.
Cost: $0.01 per page (~70 users)
70x cheaper than X API. The X API charges $0.01 per user returned. A page of 70 users costs $0.70 on the X API vs $0.01 on frontrun.
curl "https://frontrun.vc/v1/twitter/user/a16z/following?pages=3" \
-H "X-API-Key: your_api_key"Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
username | string (path) | -- | Twitter username (without @) |
pages | integer (query) | 1 | Number of pages to fetch (max 10). Each page returns ~70 users. Cost scales linearly. |
Response
{
"username": "a16z",
"count": 210,
"pages_fetched": 3,
"data": [
{
"id": "123456789",
"userName": "some_startup",
"name": "Some Startup",
"description": "Building the future of...",
"profilePicture": "https://pbs.twimg.com/...",
"followers": 5400,
"isVerified": false,
"url": "https://somestartup.com"
}
],
"cost_cents": 3,
"balance_cents": 9897
}Cost comparison
| Scenario | X API | frontrun | Savings |
|---|---|---|---|
| 1 page (70 users) | $0.70 | $0.01 | 70x |
| 5 pages (350 users) | $3.50 | $0.05 | 70x |
| Full list (1,000 users) | $10.00 | $0.15 | 67x |