{"uid":"cap_hgXf2kjfbYIAj2IWQnh4e","slug":"api-strale-io-90d357dc","name":"Fuzzy Deduplication for JSON Arrays","description":"Deduplicate a JSON array of objects using fuzzy string matching (Levenshtein + token sort). Specify match fields and threshold.","url":"https://api.strale.io/x402/deduplicate","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":"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}}},"responseSchema":null,"example":{"request":{"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"]},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.0216,"settlement_id":"0x3d090e4944714a19a324c304e532368ab94b22cb029b15fb2076b2f9b5440950"},"capability":"deduplicate","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-16T01:24:13.367Z"}},"threshold":0.85,"deduplicated":[{"name":"Acme Corporation","address":"123 Main Street"},{"name":"Acme Corp","address":"123 Main St"},{"name":"TechStart Inc","address":"456 Oak Avenue"}],"match_fields":["name","address"],"removed_count":0,"original_count":3,"duplicates_found":[],"deduplicated_count":3}},"exampleRequest":{"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"]},"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_XhmkuIHxopPvQ078GbfGM","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":"Removes duplicate objects from a JSON array using fuzzy string matching (Levenshtein + token sort) with configurable match fields and threshold","exampleAgentPrompt":"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?","exampleUseCases":null,"resultDescription":"Returns a deduplicated JSON array with near-duplicate objects removed based on fuzzy similarity scoring across the specified match fields and threshold","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:57:32.782Z","isFirstParty":false}