Farcaster trending channels
POST /api/fc-trendingTrending Farcaster channels ranked by casting activity over 1d, 7d or 30d, with cast counts for all three windows, follower and member counts, and the channel lead. Send POST /api/fc-trending with no required fields (3 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, timeWindow and 3 more.
Cached 60 s. Use to spot where attention is moving on Farcaster right now, then pull the feed with fc-channel-feed.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
timeWindow | string (one of: 1d, 7d, 30d) | no | Ranking window (default 1d). |
limit | integer (1-25) | no | Results per page (default 10). |
cursor | string | no | Opaque pagination cursor from a previous call's nextCursor. |
Example request
curl -i -X POST https://agent402.tools/api/fc-trending \
-H "Content-Type: application/json" \
-d '{"timeWindow":"1d","limit":10}'
Without payment this returns HTTP 402 Payment Required with the exact price for fc-trending; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "neynar",
"fetchedAt": "2026-08-22T13:19:12.000Z",
"cached": false,
"rateLimit": {
"limit": 300,
"remaining": 299,
"resetAt": "2026-08-22T13:20:00.000Z"
},
"timeWindow": "1d",
"count": 1,
"channels": [
{
"id": "base",
"name": "Base",
"description": "Bringing the world onchain - a community of builders on Base",
"parentUrl": "https://onchainsummer.xyz",
"imageUrl": "https://warpcast.com/~/channel-images/base.png",
"followerCount": 481202,
"memberCount": 813,
"publicCasting": false,
"createdAt": "2023-08-17T19:23:11.150Z",
"lead": {
"fid": 12142,
"username": "base.base.eth",
"displayName": "Base",
"followerCount": 194536
},
"moderatorFids": [
12142,
15211,
99
],
"pinnedCastHash": null,
"url": "https://warpcast.com/~/channel/base",
"castCount": {
"1d": 120,
"7d": 800,
"30d": 3100
}
}
],
"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 |
timeWindow | string | yes | 1d |
count | number | yes | 1 |
channels | array of objects | yes | 1 item in the example |
nextCursor | string | yes | eyJ0aW1lc3RhbXAiOi... |
From an MCP client
catalog.call {
"slug": "fc-trending",
"params": {
"timeWindow": "1d",
"limit": 10
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for fc-trending; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
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 is cancelled when the tool fails. 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-trending 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?.(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/fc-trending", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"timeWindow": "1d",
"limit": 10
}),
});
Related tools
Farcaster cast lookup
POST /api/fc-castFetch one Farcaster cast by hash or warpcast.com / farcaster.xyz URL. Returns the compact cast: author (fid, username, f…
Farcaster cast volume
POST /api/fc-cast-metricsCast volume over time for a search query: how many Farcaster casts matched per bucket across the last 1d, 7d, 30d, 90d o…
Farcaster cast replies
POST /api/fc-cast-repliesThe reply thread under a Farcaster cast (by hash or URL): the root cast plus replies flattened with their depth (1-5 lev…
Farcaster cast search
POST /api/fc-cast-searchSearch Farcaster casts by keyword (literal, semantic or hybrid match), newest first, optionally filtered to one author o…
Farcaster channel details
POST /api/fc-channelDetails for one Farcaster channel by id (e.g. base) or FIP-2 parent URL: name, description, follower and member counts, …
Farcaster channel feed
POST /api/fc-channel-feedLatest casts in one or more Farcaster channels (e.g. base, farcaster, ethereum), newest first, with optional replies. Co…