Farcaster user casts
POST /api/fc-user-castsA Farcaster user's recent casts by fid or username, newest first, optionally including replies or limited to one channel. Send POST /api/fc-user-casts with no required fields (6 optional) and pay $0.004 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, rateLimit, fid and 5 more.
Compact cast shape with reactions, reply count and embed URLs. Use to read what a founder, builder or KOL has been posting, or to build a per-account timeline.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fid | integer | no | Farcaster ID (one of fid/username required). |
username | string | no | Farcaster username, optional leading @ (one of fid/username required; costs one extra upstream lookup). |
includeReplies | boolean | no | Include the user's replies (default false). |
channel | string | no | Only casts in this channel id. |
limit | integer (1-100) | no | Results per page (default 25). |
cursor | string | no | Opaque pagination cursor from a previous call's nextCursor. |
Example request
curl -i -X POST https://agent402.tools/api/fc-user-casts \
-H "Content-Type: application/json" \
-d '{"fid":3,"limit":10}'Without payment this returns HTTP 402 Payment Required with the exact price for fc-user-casts; any x402 v2 or MPP client pays it and retries.
Watch a call get paid
POST /api/fc-user-casts$0.004 USDCPAYMENT-SIGNATUREon 14 chains200 OKAgent402-ReceiptEd25519Example response
{
"source": "neynar",
"fetchedAt": "2026-08-22T13:19:12.000Z",
"cached": false,
"rateLimit": {
"limit": 300,
"remaining": 299,
"resetAt": "2026-08-22T13:20:00.000Z"
},
"fid": 3,
"includeReplies": false,
"channel": null,
"count": 1,
"casts": [
{
"hash": "0xab5aca846db8af6fa3dc2d25dc66171cd040def4",
"author": {
"fid": 3,
"username": "dwr",
"displayName": "Dan Romero",
"followerCount": 630338
},
"text": "Paid an x402 endpoint for the first time today.",
"timestamp": "2026-08-22T12:49:27.000Z",
"channel": null,
"parentHash": null,
"reactions": {
"likes": 4,
"recasts": 1
},
"replies": 2,
"embeds": [
"https://example.com/post"
],
"url": "https://warpcast.com/askew-ai/0xab5aca84"
}
],
"nextCursor": "eyJ0aW1lc3RhbXAiOi..."
}| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | neynar |
fetchedAt | string | yes | 2026-08-22T13:19:12.000Z |
cached | boolean | yes | false |
rateLimit | object | yes | 3 fields: limit, remaining, resetAt |
fid | number | yes | 3 |
includeReplies | boolean | yes | false |
channel | null | no | null |
count | number | yes | 1 |
casts | array of objects | yes | 1 item in the example |
nextCursor | string | yes | eyJ0aW1lc3RhbXAiOi... |
From an MCP client
catalog.call {
"slug": "fc-user-casts",
"params": {
"fid": 3,
"limit": 10
}
}The hosted connector at https://agent402.tools/mcp needs a payment for fc-user-casts; the stdio package pays it from a wallet or from an AGENT402_CREDITS_KEY issued earlier. Local install: npx -y agent402-mcp@0.14.1.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement runs after the tool and only on a successful response. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/fc-user-casts returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
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?.({ maxAmountPerPayment: "$0.004" }); // refuse any quote above this tool's price
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/fc-user-casts", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"fid": 3,
"limit": 10
}),
});Related tools
Farcaster cast search
Search Farcaster casts by keyword (literal, semantic or hybrid match), newest first, optionally filtered to one author.
Farcaster channel feed
Latest casts in one or more Farcaster channels (e.g. base, farcaster, ethereum), newest first, with optional replies.
Farcaster user search
Search Farcaster users by name or username fragment.
Farcaster cast lookup
Fetch one Farcaster cast by hash or warpcast.com / farcaster.xyz URL.
Farcaster cast volume
Cast volume over time for a search query: how many Farcaster casts matched per bucket across the last 1d, 7d, 30d, 90d.
Farcaster cast replies
The reply thread under a Farcaster cast (by hash or URL): the root cast plus replies flattened with their depth (1-5.