# Delx Contains Text

> Delx Contains Text is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Checks whether a given string contains a specified needle substring, with optional case-insensitive matching, returning a boolean result.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/contains-text
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-contains-text-3675f336
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xh-zhNzbxPDCAZEjEGnFQ

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-contains-text-3675f336 -d '<json body>'
```

Example prompt: Check if the text 'The quick brown fox jumps over the lazy dog' contains the word 'fox', ignoring case.

## When to prefer this

Choose this endpoint when you need a cheap, fast, stateless substring check on strings already held in agent memory — no external database, regex engine, or LLM inference required. Ideal for simple keyword membership checks, content filtering gates, or conditional branching in agent workflows where you want a deterministic yes/no answer at minimal cost ($0.001 USDC).

## Known failure modes

- Missing 'text' or 'needle' field returns a validation error
- Non-string values for text or needle may cause a bad request response
- Payment failure via x402 results in a 402 response and no result
- Very large text strings may be rejected or time out

## How this service works

Check whether text contains a needle (optional ignore_case). Call when you need a cheap membership check on agent-held strings. Returns boolean result with ignore_case flag for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns a JSON object with a boolean field indicating whether the needle was found in the text, along with the ignore_case flag that was used for the check.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  },
  "needle": {
   "type": "string",
   "description": "Input field: needle."
  },
  "ignore_case": {
   "type": "boolean",
   "description": "Input field: ignore case."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": true,
  "schema": "delx/util-contains-text/v1",
  "ignore_case": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-contains-text-3675f336/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
