anyapi_x_search_posts $0.001 per call

X / Twitter Search. Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane. (AnyAPI · X (Twitter))

For AI agents: call anyapi_x_search_posts
POST https://toll402.dev/v1/p/anyapi.x.search.posts
{
 "query": "openai",
 "limit": 20
}
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": {
  "cursor": {
   "type": "string",
   "description": "Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of search results."
  },
  "limit": {
   "type": "integer",
   "description": "Per-page maximum number of results to return (1-50, default 20). A provider may return a smaller native page; follow nextCursor for more.",
   "default": 20,
   "examples": [
    20
   ]
  },
  "query": {
   "type": "string",
   "description": "Search query using X (Twitter) advanced-search syntax. IMPORTANT: bare terms are ANDed - a tweet must contain EVERY word, so a list of loosely related keywords matches nothing; use one short phrase or OR between alternatives (e.g. 'anyapi O",
   "examples": [
    "openai"
   ]
  },
  "queryType": {
   "type": "string",
   "description": "Result ranking: 'Latest', 'Top', 'Photos', or 'Videos' (e.g. Latest).",
   "default": "Latest"
  }
 },
 "additionalProperties": true,
 "required": [
  "query"
 ]
}

MCP

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

All tools · OpenAPI