# ProfitCollector JSON Validator

> ProfitCollector JSON Validator is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Validates a JSON string and returns whether it is valid, along with its parsed representation

## Facts

- Endpoint: POST https://api.bakhour.ca/json/validate
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollector-json-validator-2cbb7836
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1MBNX3K8AFCT5Q3IDtyzv

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-json-validator-2cbb7836 -d '<json body>'
```

Example prompt: Can you check if this text is valid JSON and show me the parsed result: '{"hello":"world","count":42}'?

## When to prefer this

Use this endpoint when you need a quick, deterministic, paid-API validation of a JSON string within an automated workflow — especially when you need both the validity check and the parsed output in a single call. Prefer this over client-side parsing when you need an auditable, agent-friendly remote validation step.

## Known failure modes

- Malformed or non-JSON input returns valid=false with no parsed output
- Empty string input may return invalid or undefined behavior
- Extremely large payloads may be rejected or time out
- Network or payment processing errors may result in 402 or 5xx responses

## 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

Returns a JSON object indicating whether the input text is valid JSON (boolean 'valid' field), the detected type of the parsed value, and the fully parsed JSON object or value if valid.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "type": "dict",
  "valid": true,
  "parsed": {
   "hello": "world"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollector-json-validator-2cbb7836/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)
