# minia2a Digit Count

> minia2a Digit Count is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Counts the number of digits in a given numeric input

## Facts

- Endpoint: GET https://minia2a.uk/x402/digitCount?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-digit-count-2a382936
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-k8EUBkE9UpZoue4iR8wp

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 minia2a-digit-count-2a382936
```

Example prompt: How many digits does the number 9843726501 have?

## When to prefer this

Use this endpoint when you need a quick, reliable digit count for a numeric value without implementing custom logic. Ideal for validation steps in agent workflows (e.g., checking ID length, PIN format, or numeric magnitude checks) where a dedicated micro-service call is preferable to inline computation.

## Known failure modes

- Missing required 'input' parameter returns an error
- Non-numeric or malformed input may return an unexpected count or error
- Empty input field causes request failure
- Network or payment authorization failure returns HTTP 402

## How this service works

minia2a service: x402-digit-count

## Output

Returns the count of digits present in the provided numeric input as an integer value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 },
 "answerAt": "result"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-digit-count-2a382936/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
