Farcaster profile

$0.002 per call · USDC via x402 · POST /api/farcaster-profile

Lookup a Farcaster profile by username or FID. Send POST /api/farcaster-profile with no required fields (2 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with fid, username, displayName, pfpUrl, bio and 6 more.

Returns FID, username, display name, bio, profile picture URL, follower/following counts, and the canonical Warpcast URL. Use to label cast authors, validate a Farcaster handle, or fetch a profile for display.

Category: Crypto & onchain data · Tags: farcaster warpcast identity profile social

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
fidnumbernoFarcaster ID (integer; one of fid/username required).
usernamestringnoFarcaster handle, with or without leading @ (one of fid/username required).

Example request

curl -i -X POST https://agent402.tools/api/farcaster-profile \
  -H "Content-Type: application/json" \
  -d '{"fid":3}'

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

Example response

{
  "fid": 3,
  "username": "dwr",
  "displayName": "Dan Romero",
  "pfpUrl": "https://...",
  "bio": "Working on Farcaster.",
  "followerCount": 500000,
  "followingCount": 1000,
  "activeOnFcNetwork": true,
  "powerBadge": true,
  "venueUrl": "https://warpcast.com/dwr",
  "source": "neynar"
}
FieldTypeAlways presentIn the example
fidnumberyes3
usernamestringyesdwr
displayNamestringyesDan Romero
pfpUrlstringyeshttps://...
biostringyesWorking on Farcaster.
followerCountnumberyes500000
followingCountnumberyes1000
activeOnFcNetworkbooleanyestrue
powerBadgebooleanyestrue
venueUrlstringyeshttps://warpcast.com/dwr
sourcestringyesneynar

From an MCP client

catalog.call {
  "slug": "farcaster-profile",
  "params": {
    "fid": 3
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for farcaster-profile; 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/farcaster-profile", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "fid": 3
  }),
});

Related tools

Farcaster by Ethereum address

$0.002 · POST /api/farcaster-by-address

Reverse-lookup an Ethereum address to its Farcaster account (via verified address). Returns FID, username, display name,…

Farcaster user search

$0.003 · POST /api/fc-user-search

Search Farcaster users by name or username fragment. Returns up to 10 compact profiles: fid, username, display name, bio…

Coin profile

$0.008 · GET /api/coin-profile

Full profile of one coin by id: name/symbol, description, categories, contract addresses per platform, links (homepage, …

DeFi protocol profile

$0.002 · POST /api/defi-protocol

Profile of one DeFi protocol by DefiLlama slug (aave-v3, uniswap-v3, lido, morpho-v1...): TVL rank among all protocols, …

EAS attestations

$0.002 · POST /api/eas-attestations

List EAS (Ethereum Attestation Service) attestations for an address as recipient, attester, or either, on mainnet/Base/O…

ENS bulk reverse resolver

$0.002 · POST /api/ens-bulk-resolve

Reverse-resolve a batch of Ethereum addresses to ENS primary names + avatar URLs (up to 50 per call). Returns one row pe…