{
  "x402Version": 2,
  "id": 36314,
  "slug": "36314",
  "resource": "https://api.duoleads.com/v1/text/similarity",
  "description": "Compare two strings and return every standard similarity measure in one call: Levenshtein and Damerau-Levenshtein edit distance, normalised similarity, Jaro and Jaro-Winkler, longest common subsequence, Dice coefficient on character bigrams, and the Soundex, Metaphone and NYSIIS phonetic keys of each string. Optional case folding, accent folding and whitespace normalisation before comparison.",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "damerau_levenshtein": {
                "type": "number"
              },
              "dice": {
                "type": "number"
              },
              "equal_after_fold": {
                "type": "boolean"
              },
              "folded": {
                "properties": {
                  "a": {
                    "type": "string"
                  },
                  "b": {
                    "type": "string"
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              },
              "jaro": {
                "type": "number"
              },
              "jaro_winkler": {
                "type": "number"
              },
              "lcs_length": {
                "type": "integer"
              },
              "levenshtein": {
                "type": "number"
              },
              "normalised_similarity": {
                "type": "number"
              },
              "phonetic": {
                "properties": {
                  "a": {
                    "properties": {
                      "metaphone": {
                        "type": "string"
                      },
                      "nysiis": {
                        "type": "string"
                      },
                      "soundex": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "b": {
                    "properties": {
                      "metaphone": {
                        "type": "string"
                      },
                      "nysiis": {
                        "type": "string"
                      },
                      "soundex": {
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              }
            },
            "required": [
              "equal_after_fold",
              "folded"
            ],
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/text/similarity"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "a": "kitten",
            "b": "sitting"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "damerau_levenshtein": 3,
              "dice": 0.36363636363636365,
              "equal_after_fold": false,
              "folded": {
                "a": "kitten",
                "b": "sitting"
              },
              "jaro": 0.746031746031746,
              "jaro_winkler": 0.746031746031746,
              "lcs_length": 4,
              "levenshtein": 3,
              "normalised_similarity": 0.5714285714285714,
              "phonetic": {
                "a": {
                  "metaphone": "KTN",
                  "nysiis": "CATAN",
                  "soundex": "K350"
                },
                "b": {
                  "metaphone": "STNK",
                  "nysiis": "SATANG",
                  "soundex": "S352"
                }
              }
            },
            "meta": {
              "computed_at": "2026-09-28T12:00:00.000Z",
              "deterministic": true,
              "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
              "price_usd": "0.05",
              "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
            },
            "ok": true,
            "route": "/v1/text/similarity",
            "version": "1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "a": {
                    "description": "First string, at most 512 characters.",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "b": {
                    "description": "Second string, at most 512 characters.",
                    "maxLength": 512,
                    "type": "string"
                  },
                  "fold": {
                    "default": "case",
                    "description": "Comma-separated folds before comparing: case, accents, space, punct. Default case.",
                    "maxLength": 64,
                    "type": "string"
                  },
                  "only": {
                    "description": "Comma-separated measure names to compute: levenshtein, damerau_levenshtein, normalised_similarity, jaro, jaro_winkler, lcs_length, dice, phonetic (all three keys), soundex, metaphone, nysiis. Default all.",
                    "maxLength": 256,
                    "type": "string"
                  }
                },
                "required": [
                  "a",
                  "b"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "damerau_levenshtein": {
                        "type": "number"
                      },
                      "dice": {
                        "type": "number"
                      },
                      "equal_after_fold": {
                        "type": "boolean"
                      },
                      "folded": {
                        "properties": {
                          "a": {
                            "type": "string"
                          },
                          "b": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "a",
                          "b"
                        ],
                        "type": "object"
                      },
                      "jaro": {
                        "type": "number"
                      },
                      "jaro_winkler": {
                        "type": "number"
                      },
                      "lcs_length": {
                        "type": "integer"
                      },
                      "levenshtein": {
                        "type": "number"
                      },
                      "normalised_similarity": {
                        "type": "number"
                      },
                      "phonetic": {
                        "properties": {
                          "a": {
                            "properties": {
                              "metaphone": {
                                "type": "string"
                              },
                              "nysiis": {
                                "type": "string"
                              },
                              "soundex": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "b": {
                            "properties": {
                              "metaphone": {
                                "type": "string"
                              },
                              "nysiis": {
                                "type": "string"
                              },
                              "soundex": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          }
                        },
                        "required": [
                          "a",
                          "b"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "equal_after_fold",
                      "folded"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/text/similarity"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "text",
    "similarity",
    "phonetic",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:51:49.616Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:51:49.479Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "a": "kitten",
              "b": "sitting"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "damerau_levenshtein": 3,
                "dice": 0.36363636363636365,
                "equal_after_fold": false,
                "folded": {
                  "a": "kitten",
                  "b": "sitting"
                },
                "jaro": 0.746031746031746,
                "jaro_winkler": 0.746031746031746,
                "lcs_length": 4,
                "levenshtein": 3,
                "normalised_similarity": 0.5714285714285714,
                "phonetic": {
                  "a": {
                    "metaphone": "KTN",
                    "nysiis": "CATAN",
                    "soundex": "K350"
                  },
                  "b": {
                    "metaphone": "STNK",
                    "nysiis": "SATANG",
                    "soundex": "S352"
                  }
                }
              },
              "meta": {
                "computed_at": "2026-09-28T12:00:00.000Z",
                "deterministic": true,
                "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
                "price_usd": "0.05",
                "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D"
              },
              "ok": true,
              "route": "/v1/text/similarity",
              "version": "1.0.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "a": {
                      "description": "First string, at most 512 characters.",
                      "maxLength": 512,
                      "type": "string"
                    },
                    "b": {
                      "description": "Second string, at most 512 characters.",
                      "maxLength": 512,
                      "type": "string"
                    },
                    "fold": {
                      "default": "case",
                      "description": "Comma-separated folds before comparing: case, accents, space, punct. Default case.",
                      "maxLength": 64,
                      "type": "string"
                    },
                    "only": {
                      "description": "Comma-separated measure names to compute: levenshtein, damerau_levenshtein, normalised_similarity, jaro, jaro_winkler, lcs_length, dice, phonetic (all three keys), soundex, metaphone, nysiis. Default all.",
                      "maxLength": 256,
                      "type": "string"
                    }
                  },
                  "required": [
                    "a",
                    "b"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "damerau_levenshtein": {
                          "type": "number"
                        },
                        "dice": {
                          "type": "number"
                        },
                        "equal_after_fold": {
                          "type": "boolean"
                        },
                        "folded": {
                          "properties": {
                            "a": {
                              "type": "string"
                            },
                            "b": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "a",
                            "b"
                          ],
                          "type": "object"
                        },
                        "jaro": {
                          "type": "number"
                        },
                        "jaro_winkler": {
                          "type": "number"
                        },
                        "lcs_length": {
                          "type": "integer"
                        },
                        "levenshtein": {
                          "type": "number"
                        },
                        "normalised_similarity": {
                          "type": "number"
                        },
                        "phonetic": {
                          "properties": {
                            "a": {
                              "properties": {
                                "metaphone": {
                                  "type": "string"
                                },
                                "nysiis": {
                                  "type": "string"
                                },
                                "soundex": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "b": {
                              "properties": {
                                "metaphone": {
                                  "type": "string"
                                },
                                "nysiis": {
                                  "type": "string"
                                },
                                "soundex": {
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            }
                          },
                          "required": [
                            "a",
                            "b"
                          ],
                          "type": "object"
                        }
                      },
                      "required": [
                        "equal_after_fold",
                        "folded"
                      ],
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/text/similarity"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "data": {
        "damerau_levenshtein": 0,
        "dice": 0,
        "equal_after_fold": true,
        "folded": {
          "a": "string",
          "b": "string"
        },
        "jaro": 0,
        "jaro_winkler": 0,
        "lcs_length": 0,
        "levenshtein": 0,
        "normalised_similarity": 0,
        "phonetic": {
          "a": {
            "metaphone": "string",
            "nysiis": "string",
            "soundex": "string"
          },
          "b": {
            "metaphone": "string",
            "nysiis": "string",
            "soundex": "string"
          }
        }
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}