XFlux
Node.js

Node Twitter API for public read data

Node.js user timeline by username: GET www.xfluxapi.com/api/v1/users/:username/tweets with Bearer key. Free 1,000 calls/mo.

Call XFlux from Node with fetch — user timeline by @username, profiles, and search. No official X bearer required. Free: 1,000 calls/month. Express webhook verify: /twitter-webhook-nodejs. Longer guide: /docs/guides/nodejs.

Timeline by username

GET https://www.xfluxapi.com/api/v1/users/:username/tweets?limit=10 — public accounts only.

Auth

Header Authorization: Bearer xflux_… from Dashboard → API Keys. Free tier, no card.

Webhook path

Push alerts (not poll): /twitter-webhook-nodejs. Full guide: /docs/guides/nodejs.

Minimal Node timeline example

  1. 1

    Get a free key

    Register → Dashboard → API Keys. Details: /free-x-api.

  2. 2

    fetch timeline by username

    Use the snippet below (FederalReserve example). Each 200 counts as one call.

  3. 3

    Add webhooks when you need push

    Monitors + Express verify: /twitter-webhook-nodejs.

fetch user timeline by username

Public accounts only. Swap the username path segment. Profile: /api/v1/users/:username — see /twitter-timeline-api.

const key = process.env.XFLUX_API_KEY;
const username = "FederalReserve";
const res = await fetch(
  `https://www.xfluxapi.com/api/v1/users/${encodeURIComponent(username)}/tweets?limit=10`,
  { headers: { Authorization: `Bearer ${key}` } },
);
if (!res.ok) throw new Error(await res.text());
const tweets = await res.json();
console.log(tweets);

FAQ

Node.js example to call a Twitter read API for user timeline by username?
Yes — fetch https://www.xfluxapi.com/api/v1/users/:username/tweets with Authorization: Bearer xflux_…. Copy the snippet on this page. Free: 1,000 calls/mo. Also /twitter-timeline-api.
Is this the official twitter-api-v2 Node SDK?
No. This is the XFlux HTTP API from Node. Official X SDKs talk to developer.x.com products.
Python too?
Yes — /docs/guides/python and /twitter-webhook-python.
Rate limits?
/docs/limits — Free is 1,000 calls/month.

Related guides

Start on Free

Free: 1,000 API calls/month and 1 monitor with Dashboard hits. Live webhook delivery starts on Starter ($19/mo).