{"uid":"cap_y9_DiPF0UK8UE2-taQmJi","slug":"api-strale-io-18dad88d","name":"Strale Data Quality Check","description":"Check data quality with custom rules (email_format, range, pattern, etc.) or auto-detect issues. Returns quality score and field-level report. Algorithmic.","url":"https://api.strale.io/x402/data-quality-check","method":"GET","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":{"request":{"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"}]},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0x90f025c168d3adc6db9ef3956e7c60ad1edda139eb3f6147ca93b749dc62934e"},"capability":"data-quality-check","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-13T04:23:21.859Z"}},"issues":[],"total_rows":3,"valid_rows":3,"issue_count":0,"field_report":[{"field":"name","null_count":0,"completeness":100,"unique_count":3},{"field":"email","null_count":0,"completeness":100,"unique_count":3},{"field":"age","null_count":0,"completeness":100,"unique_count":3}],"invalid_rows":0,"quality_score":100}},"exampleRequest":{"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"}]},"tags":["x402"],"displayCostAmount":"0.0216","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0216/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0216","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KTlykTl1lcHp1wagkHcPN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0216","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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","exampleAgentPrompt":"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}]","exampleUseCases":[{"title":"Verify customer records before CRM import","prompt":"I'm about to load 500 customer records into our CRM system. Can you validate them for me? Check that all emails are properly formatted, phone numbers match a pattern like +1-XXX-XXX-XXXX, and that any revenue fields are positive numbers. Let me know which records have problems so I can clean them up first."},{"title":"Audit financial transaction dataset quality","prompt":"We just received a batch of transaction data from our accounting team. I need you to validate it before we process payroll. Make sure all amounts are between 0 and 999999, dates follow YYYY-MM-DD format, and employee IDs are 6-digit numbers. Give me a quality score and tell me exactly which rows are broken."},{"title":"Check for malformed product data","prompt":"Our e-commerce platform is acting up and I suspect some product records got corrupted in the database. Can you scan this JSON export and auto-detect any data quality issues? I don't have specific rules — just find missing fields, weird values, and anything else that looks wrong. Then give me a summary so I know what to fix."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:02:30.083Z","isFirstParty":false}