# minia2a Substring Before

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

Returns the portion of a string that appears before a specified delimiter substring

## Facts

- Endpoint: GET https://minia2a.uk/x402/substringBefore?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-substring-before-2893c315
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iNdM_07TeqcTmQfyUK3g5

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-substring-before-2893c315
```

Example prompt: Can you give me just the part of the string 'hello:world' that comes before the colon?

## When to prefer this

Choose this endpoint when you need a simple, paid-per-call string utility to extract the prefix portion of a string up to a given delimiter, especially in agentic pipelines that already use x402 micropayment infrastructure on minia2a.uk.

## Known failure modes

- Missing required input parameter returns an error
- Delimiter not present in string may return empty string or full string
- Malformed query parameters result in a 400-level error
- Payment failure via x402 protocol blocks the request

## How this service works

minia2a service: x402-substring-before

## Output

Returns the substring of the input that appears before the first occurrence of the specified delimiter. If the delimiter is not found, behavior may return the full string or an empty string depending on implementation.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-substring-before-2893c315/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)
