anyapi_reddit_subreddit_posts $0.0015 per call

Reddit Subreddit Posts. Fetch posts from a subreddit listing (hot, new, or top). (AnyAPI · Reddit)

For AI agents: call anyapi_reddit_subreddit_posts
POST https://toll402.dev/v1/p/anyapi.reddit.subreddit_posts
{
 "limit": 5,
 "subreddit": "programming"
}
Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server: npx -y toll402-mcp · remote https://toll402.dev/mcp.

Input schema

{
 "type": "object",
 "properties": {
  "after": {
   "type": "string",
   "description": "Legacy pagination alias. Prefer `cursor`; omit both fields for the first page."
  },
  "cursor": {
   "type": "string",
   "description": "Opaque pagination cursor from a previous response's `nextCursor`; omit for the first page."
  },
  "limit": {
   "type": "integer",
   "description": "Requested number of posts. Note: the upstream returns one page (about 25 posts) per call; values larger than a page are not delivered in a single response. To fetch more, pass `nextCursor` back as `cursor`.",
   "default": 25,
   "examples": [
    5
   ]
  },
  "sort": {
   "type": "string",
   "description": "Listing sort order.",
   "default": "hot",
   "enum": [
    "hot",
    "new",
    "top"
   ]
  },
  "subreddit": {
   "type": "string",
   "description": "Subreddit name without the leading r/ (e.g. \"golang\").",
   "examples": [
    "programming"
   ]
  },
  "timeframe": {
   "type": "string",
   "description": "Time window, applied when sort is \"top\" (e.g. \"year\" for the year's top posts). Ignored for hot/new. Omit to default to the current day for top.",
   "enum": [
    "all",
    "year",
    "month",
    "week",
    "day",
    "hour"
   ]
  }
 },
 "additionalProperties": true,
 "required": [
  "subreddit"
 ]
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI