X bulk user lookup

$0.15 per call · USDC via x402 · POST /api/x-users-lookup

Look up up to 10 X (Twitter) accounts by username in one call. Send POST /api/x-users-lookup with the required field usernames and pay $0.15 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, count, users and notFound.

Returns each found profile with public metrics (followers, following, tweets, listed), verification status and bio, plus the list of usernames X did not resolve.

Category: Web & documents · Tags: x twitter social x-api tweets users bulk lookup

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
usernamesarray of stringyes1-10 usernames (array, or a comma-separated string).

Example request

curl -i -X POST https://agent402.tools/api/x-users-lookup \
  -H "Content-Type: application/json" \
  -d '{"usernames":["coinbase","base"]}'

Without payment this returns HTTP 402 Payment Required with the exact price for x-users-lookup; any x402 v2 or MPP client pays it and retries.

Example response

{
  "source": "x-api-v2",
  "fetchedAt": "2026-08-20T14:10:00.000Z",
  "count": 1,
  "users": [
    {
      "id": "574032254",
      "username": "coinbase",
      "name": "Coinbase",
      "description": "The future of money is here.",
      "createdAt": "2012-05-07T23:46:41.000Z",
      "verified": true,
      "verifiedType": "business",
      "location": "Global",
      "url": "https://coinbase.com",
      "protected": false,
      "profileImageUrl": "https://pbs.twimg.com/profile_images/.../normal.jpg",
      "metrics": {
        "followers": 6400000,
        "following": 250,
        "tweets": 19000,
        "listed": 9000
      },
      "profileUrl": "https://x.com/coinbase"
    }
  ],
  "notFound": [
    "nosuchuser_xyz"
  ]
}
FieldTypeAlways presentIn the example
sourcestringyesx-api-v2
fetchedAtstringyes2026-08-20T14:10:00.000Z
countnumberyes1
usersarray of objectsyes1 item in the example
notFoundarray of stringyes1 item in the example

From an MCP client

catalog.call {
  "slug": "x-users-lookup",
  "params": {
    "usernames": [
      "coinbase",
      "base"
    ]
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for x-users-lookup; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/x-users-lookup", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "usernames": [
      "coinbase",
      "base"
    ]
  }),
});

Related tools

X recent tweet search

$0.08 · POST /api/x-search-recent

Search public tweets from the last 7 days on X (Twitter) by query, using X API v2 search operators (keywords, from:, #ha…

X tweet lookup

$0.008 · POST /api/x-tweet

Fetch one public tweet on X (Twitter) by id: text, created time, language, conversation id, engagement metrics (likes, r…

X user profile

$0.015 · POST /api/x-user

Look up one X (Twitter) account by username: id, display name, bio, account creation date, verification status and type,…

X user timeline

$0.08 · POST /api/x-user-tweets

Fetch an X (Twitter) account's most recent tweets by user id or username (username is resolved first). Options to exclud…

Farcaster cast lookup

$0.003 · POST /api/fc-cast

Fetch one Farcaster cast by hash or warpcast.com / farcaster.xyz URL. Returns the compact cast: author (fid, username, f…

Farcaster cast volume

$0.005 · POST /api/fc-cast-metrics

Cast volume over time for a search query: how many Farcaster casts matched per bucket across the last 1d, 7d, 30d, 90d o…