# Jaro / Jaro-Winkler String Similarity

> Jaro / Jaro-Winkler String Similarity is a paid API for AI agents from similarity.openverbs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Computes Jaro similarity and the Jaro-Winkler variant (with configurable prefix boost) between two strings, returning scores in [0,1].

## Facts

- Endpoint: POST https://similarity.openverbs.com/v1/jaro
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jaro-jaro-winkler-string-similarity-1e3ce1a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yj9dXnFWwF9YKX-zRn8Hp

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 jaro-jaro-winkler-string-similarity-1e3ce1a3 -d '<json body>'
```

Example prompt: Can you compute the Jaro-Winkler similarity between 'Jonathan' and 'Johnathan' using a prefix boost of 0.1?

## When to prefer this

Choose this endpoint when comparing short strings such as personal names, place names, or short codes where character-level proximity and shared prefixes matter most. Jaro-Winkler is especially effective for name deduplication and typo correction in short tokens. Prefer it over Levenshtein when you need a normalized [0,1] score and when prefix agreement should increase similarity (e.g., 'Martha' vs 'Marthaa'). Use Sørensen-Dice or Jaccard instead for longer strings or when word/bigram overlap is more meaningful than character transpositions.

## Known failure modes

- Missing required fields 'a' or 'b' returns a 400 validation error
- String length exceeding 20,000 characters is rejected
- prefixScale value outside [0, 0.25] is rejected with a validation error
- Non-JSON body type may cause parse errors
- Payment not included or insufficient USDC causes 402 Payment Required

## How this service works

Jaro similarity and the Jaro-Winkler variant (which boosts scores for a shared prefix), both in [0,1]. The prefix boost factor is configurable (default 0.1, max 0.25). Well suited to short strings like names.

## Output

A JSON object containing the Jaro similarity score and the Jaro-Winkler similarity score, both as floating-point numbers in [0,1], where 1.0 means identical strings and 0.0 means completely dissimilar. The Jaro-Winkler score also reflects any shared prefix up to a configurable boost factor.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "a",
      "b"
     ],
     "properties": {
      "a": {
       "type": "string",
       "maxLength": 20000,
       "description": "First string."
      },
      "b": {
       "type": "string",
       "maxLength": 20000,
       "description": "Second string."
      },
      "prefixScale": {
       "type": "number",
       "maximum": 0.25,
       "minimum": 0,
       "description": "Jaro-Winkler prefix boost factor. Default 0.1."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jaro-jaro-winkler-string-similarity-1e3ce1a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from similarity.openverbs.com](https://www.zero.xyz/host/similarity.openverbs.com/llms.txt)
