# Delx Commerce Word Count API

> Delx Commerce Word Count API is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Counts the number of words in a given text body, returning the result as a pay-per-use JSON response via x402 micropayment on Base or Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/word-count?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-word-count-api-03346bce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mirQPwHiz26vAJfs3Ejrv

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 delx-commerce-word-count-api-03346bce -d '<json body>'
```

Example prompt: Count the words in this paragraph for me: 'The quick brown fox jumps over the lazy dog. It was a bright cold day in April and the clocks were striking thirteen.'

## When to prefer this

Prefer this endpoint when you need a pay-per-use, no-signup word count computation, especially in agent workflows that use x402 micropayments on Base or Solana. It is ideal for agents that must avoid subscription overhead for infrequent or burst word-count tasks, or when verifiable on-chain payment receipts are required for auditing. Choose this over free or bundled alternatives when operating in a trustless, per-result billing environment.

## Known failure modes

- Empty or missing body field causes validation error
- Non-text or malformed JSON body may return a parsing error
- Payment failure or insufficient USDC balance results in 402 Payment Required response
- Unsupported bodyType enum value (not json/form-data/text) causes schema validation failure
- Network latency or blockchain confirmation delays may cause timeout

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the computed word count for the submitted text body. The response is returned after a $0.001 USDC micropayment is processed via x402 protocol on Base or Solana, with verifiable delivery confirmed on-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-word-count-api-03346bce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
