# ProfitCollector Data Transform API

> ProfitCollector Data Transform API is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Applies deterministic text transformations (JSON formatting, Base64 encoding/decoding, line deduplication) to a supplied string and returns the transformed result.

## Facts

- Endpoint: POST https://api.bakhour.ca/data/transform
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollector-data-transform-api-4824ff14
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O545gcjGw0ZCHtZua5Ww5

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 profitcollector-data-transform-api-4824ff14 -d '<json body>'
```

Example prompt: Can you pretty-print this JSON for me so it's readable? Just run it through json_pretty: {"hello":"world","foo":"bar"}

## When to prefer this

Choose this endpoint when you need a quick, deterministic, single-step text transformation — specifically JSON pretty-printing or minification, Base64 encoding or decoding, or line deduplication — within an automated agent workflow where consistency and low latency matter more than advanced text processing capabilities.

## Known failure modes

- Invalid JSON input when operation requires valid JSON (json_pretty/json_minify) — likely returns an error or malformed result
- Unsupported operation value outside the defined enum — request may be rejected
- Empty or missing 'text' field — may return empty result or error
- Base64 decoding of invalid base64 string — may produce garbled output or error
- Payment failure (HTTP 402) if USDC payment is not provided or is insufficient

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

A JSON object containing 'result' (the transformed string) and 'operation' (the name of the transformation that was applied, e.g. 'json_pretty' or 'base64_encode').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "operation": {
   "enum": [
    "auto",
    "json_pretty",
    "json_minify",
    "base64_encode",
    "base64_decode",
    "dedupe_lines"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "{\n  \"hello\": \"world\"\n}",
  "operation": "json_pretty"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollector-data-transform-api-4824ff14/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
