# X Pay Keywords Extraction

> X Pay Keywords Extraction is a paid API for AI agents from www.api-xpay.com, paid per call via x402, $10/call, status unknown (last checked 2026-10-02).

Extracts relevant keywords from provided content via a pay-per-request API using USDC on Base via x402 protocol.

## Facts

- Endpoint: POST https://www.api-xpay.com/x402/keywords?utm_source=zero.xyz
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x-pay-keywords-extraction-051114fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6cjFpKmV4IfgBfnUHylEe

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-pay-keywords-extraction-051114fa -d '<json body>'
```

Example prompt: Pull out the main keywords from this paragraph about blockchain payments: 'USDC on Base enables fast, low-cost payments for Web3 applications using the x402 protocol.'

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use keyword extraction service billed in USDC on Base with no subscription required. Ideal for agents operating in Web3 or crypto-native environments that already handle x402 payments, and when you need simple keyword lists without complex NLP pipeline setup.

## Known failure modes

- Payment not included or invalid x402 payment header — returns 402 Payment Required
- Malformed request body or missing required fields (type, method, bodyType, body) — returns 400 Bad Request
- Empty or unprocessable input content — may return empty keywords array or error
- Network or service downtime — returns 5xx error
- Incorrect bodyType enum value — schema validation failure

## How this service works

AI keyword extraction from text

## Output

Returns a JSON object containing a 'keywords' array of extracted keyword strings, a 'success' boolean, the payment asset (USDC), and the network (base) used for the transaction.

## 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": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": "USDC",
  "network": "base",
  "success": true,
  "keywords": [
   "payments",
   "base",
   "usdc"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x-pay-keywords-extraction-051114fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.api-xpay.com](https://www.zero.xyz/host/www.api-xpay.com/llms.txt)
