# X Mentions Search API (x402.agentutility.ai)

> X Mentions Search API (x402.agentutility.ai) is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.006/call, status unknown (last checked 2026-10-17).

Searches recent public X (Twitter) posts mentioning a brand, handle, URL, ticker, or phrase and returns matched posts with author and engagement metrics.

## Facts

- Endpoint: POST https://x402.agentutility.ai/mentions?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-mentions-search-api-x402-agentutility-ai-ec8b92a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M5aRJ_QcJE2dpNnADZRuc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x-mentions-search-api-x402-agentutility-ai-ec8b92a2 -d '<json body>'
```

Example prompt: Search X for recent public mentions of '@MorningBloomCoffee' and show me the posts along with who wrote them and their like and retweet counts.

## When to prefer this

Choose this endpoint when you need read-only, near-real-time monitoring of public X posts mentioning a specific brand, handle, URL, ticker, or phrase, especially in an agentic or automated pipeline that settles micropayments via x402/USDC on Base. Prefer this over scraping or manual search when you need structured output with author and metric fields ready for downstream analysis.

## Known failure modes

- No matching posts found for the query within the recent search window (7-day limit on X API v2 recent search)
- Query too broad returns too many results or hits rate limits
- Invalid or malformed query string causes API error
- X API v2 backend outage or rate limit exceeded returns error response
- Payment failure via x402 protocol prevents request from completing

## How this service works

Monitors public X mentions of a brand, handle, URL, ticker, or phrase by searching recent posts and returning matches with author and metric fields. Uses X API v2 recent search. Read-only; no posting, replying, liking, following, or account mutation. Use it as a mentions API, X mentions search, Twitter mention monitor, or public social mention search.

## Output

A list of recent public X posts matching the query, each including the post text, author username, post ID, timestamp, and engagement metrics such as likes, retweets, and replies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Mention query, e.g. '@bankrbot', 'agentutility.ai', or 'x402 payments'."
      },
      "language": {
       "type": "string",
       "description": "Optional two-letter language filter."
      },
      "max_results": {
       "type": "number",
       "description": "Number of recent posts to fetch. Clamped to 10-50. Default 10."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "mode": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "result_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mode": "search",
  "source": "X API v2 recent search",
  "result_count": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-mentions-search-api-x402-agentutility-ai-ec8b92a2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
