# Strale Data Quality Check

> Strale Data Quality Check is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-15).

Validates a JSON array of objects against custom rules (email_format, range, pattern, etc.) or auto-detects issues, returning a quality score and field-level report

## Facts

- Endpoint: GET https://api.strale.io/x402/data-quality-check
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-18dad88d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y9_DiPF0UK8UE2-taQmJi

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 api-strale-io-18dad88d
```

Example prompt: Check the data quality of these user records and flag any issues — use rules for email_format on the 'email' field and a range of 0–120 on the 'age' field: [{"name":"Alice","email":"alice@example.com","age":25},{"name":"Bob","email":"not-an-email","age":999}]

## When to prefer this

Use this endpoint when you need programmatic, rule-based data validation with a structured quality score and field-level breakdown — especially when you have JSON records to check for format compliance, range violations, or pattern mismatches before ingesting into a pipeline or database.

## Known failure modes

- Missing required 'data' query parameter returns error
- Malformed JSON array causes parse error
- Invalid rule type (e.g. unsupported rule name) may be ignored or return error
- Empty data array returns score of 100 with no issues
- Very large arrays may time out or be truncated

## How this service works

Check data quality with custom rules (email_format, range, pattern, etc.) or auto-detect issues. Returns quality score and field-level report. Algorithmic.

## Output

Returns an overall quality score (0–100) and a field-level report identifying which records and fields failed which rules, including auto-detected anomalies if no rules are specified.

## Example request

```json
{
 "data": [
  {
   "age": 28,
   "name": "Alice",
   "email": "alice@example.com"
  },
  {
   "age": 35,
   "name": "Bob",
   "email": "bob@example.com"
  },
  {
   "age": 42,
   "name": "Charlie",
   "email": "invalid-email"
  }
 ],
 "rules": [
  {
   "type": "email_format",
   "field": "email"
  },
  {
   "max": 120,
   "min": 0,
   "type": "range",
   "field": "age"
  }
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "data"
     ],
     "properties": {
      "data": {
       "type": "array",
       "description": "JSON array of objects"
      },
      "rules": {
       "type": "array",
       "description": "Optional validation rules"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-18dad88d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
