tap
Back

twitter/fxembed-profile-about

twitterRead-only

Fetch X / Twitter About Account stats via FxEmbed

api.fxtwitter.com
Last 7 days
0
Last 30 days
0
All time
0
twitter/fxembed-profile-about.js
/* @meta
{
  "name": "twitter/fxembed-profile-about",
  "description": "Fetch X / Twitter About Account stats via FxEmbed",
  "domain": "api.fxtwitter.com",
  "args": {
    "handle": {"required": true, "description": "Username without @, or numeric user id as id:123"}
  },
  "runtime": "http",
  "readOnly": true,
  "example": "tap site twitter/fxembed-profile-about handle=LiuVaayne"
}
*/

async function(args) {
  if (!args.handle) return {error: 'Missing argument: handle', hint: 'Provide username without @, or numeric user id as id:123'};

  const handle = String(args.handle).replace(/^@/, '');
  const params = [];

  let url = `https://api.fxtwitter.com/2/profile/${encodeURIComponent(handle)}/about`;
  if (params.length) url += '?' + params.join('&');

  const resp = await fetch(url, {
    headers: {'accept': 'application/json'}
  });

  if (!resp.ok) return {error: 'HTTP ' + resp.status};

  return await resp.json();
}
Updated May 23, 2026Created May 23, 2026SHA-256: c984cbdcd73b