---
title: "Levenshtein Distance"
method: POST
path: "/v1/levenshteindistance"
tags: ["Text Processing"]
---

# Levenshtein Distance

`POST /v1/levenshteindistance`

## Request

- Base URL: `https://api.apiverve.com`
- URL: `https://api.apiverve.com/v1/levenshteindistance`
- Auth: API key in header `x-api-key`

Calculate Levenshtein distance between two strings

## Request body

- object
  - `string1` string, required: First string to compare (max 10,000 characters)
  - `string2` string, required: Second string to compare (max 10,000 characters)

## Response `200`

Successful Response

- object
  - `status` string: status
  - `error` string: error
  - `data` object: data

## Other responses

- `401`: Your request was not authorized, or your API Key was invalid
- `404`: Requested resource was not found
- `500`: A server error has occurred, try again later

---

[API](https://skmtc.dev/apiverve/apis/apiverve-api.md) · [All operations](https://skmtc.dev/apiverve/apis/apiverve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/apiverve/apis/apiverve-api/revisions/4b9a77598eb4?raw)
