# Fuzzy Deduplication for JSON Arrays

> Fuzzy Deduplication for JSON Arrays 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-14).

Removes duplicate objects from a JSON array using fuzzy string matching (Levenshtein + token sort) with configurable match fields and threshold

## Facts

- Endpoint: GET https://api.strale.io/x402/deduplicate
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-90d357dc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hgXf2kjfbYIAj2IWQnh4e

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-90d357dc
```

Example prompt: I have this array of company objects and some of them are near-duplicates with slightly different spellings — can you deduplicate them using fuzzy matching on the 'name' and 'address' fields with a similarity threshold of 0.85?

## When to prefer this

Use this endpoint when you need to clean a JSON array of objects that may contain near-duplicate entries differing by typos, abbreviations, or minor formatting differences — especially when exact-match deduplication is insufficient. Ideal for customer lists, product catalogs, or any structured dataset where human-entered data introduces slight variations.

## Known failure modes

- Missing required 'data' query parameter returns error
- Threshold outside 0-1 range may produce unexpected results
- Non-array input for 'data' field causes validation error
- Non-existent match_fields silently skipped or cause error
- Very large arrays may hit timeout or size limits

## How this service works

Deduplicate a JSON array of objects using fuzzy string matching (Levenshtein + token sort). Specify match fields and threshold.

## Output

Returns a deduplicated JSON array with near-duplicate objects removed based on fuzzy similarity scoring across the specified match fields and threshold

## Example request

```json
{
 "data": [
  {
   "name": "Acme Corporation",
   "address": "123 Main Street"
  },
  {
   "name": "Acme Corp",
   "address": "123 Main St"
  },
  {
   "name": "TechStart Inc",
   "address": "456 Oak Avenue"
  }
 ],
 "threshold": 0.85,
 "match_fields": [
  "name",
  "address"
 ]
}
```

## 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": "Array of objects to deduplicate"
      },
      "threshold": {
       "type": "number",
       "description": "Match threshold 0-1 (default 0.8)"
      },
      "match_fields": {
       "type": "array",
       "description": "Fields to compare"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-90d357dc/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)
