Fuzzy Match String Similarity Deduplication API
Free tier included · Text AnalysisFuzzy Match API provides robust string similarity scoring, best-match lookup, top-N ranked matching, and batch comparison to remove duplicates and clean messy datasets. Powered by rapidfuzz, it supports four core matching algorithms: `ratio` (character similarity), `partial_ratio` (best matching substring), `token_sort_ratio` (words sorted before comparison), and `token_set_ratio` (order-insensitive token sets). Whether you are merging customer records, cleaning messy product catalogs, or matching user search queries against a fixed vocabulary, this API handles it instantly.
Use cases include: - **Data Deduplication:** Clean customer databases by finding and merging duplicate entries with slight spelling variations or typos. - **Search & Autocomplete:** Rank candidate results against user search strings using configurable similarity thresholds. - **Record Linkage:** Compare batches of string pairs in a single request to process large ingestion files efficiently. - **Data Cleaning:** Normalize messy data fields by matching incoming records against standardized lookup lists.
The service is fully offline and stateless, performing all computations in-memory with zero external network calls or persistent data logging.
Honest limits: strings are limited to 2,000 characters per text parameter. Candidate lists are capped at 100 choices per request (or 20,000 total characters), and batch comparison accepts up to 100 pairs per call. Inputs exceeding these limits return a 422 error.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | Returns the API name, version and links to /docs and /health. |
GET | /health | Liveness probe: always {"status": "ok"} when the process is up. |
GET | /compare | Compares two strings with rapidfuzz and returns a 0…100 similarity score. |
GET | /best-match | Finds the candidate that best matches the query and returns it with its 0…100 score. |
POST | /batch | Compares multiple pairs of strings in a single request (up to 100 pairs) using the specified similarity scorer. |
GET | /match | Finds candidates matching the query string, filters by minimum score threshold, and returns a ranked list up to the specified limit. |
Quick start
curl -X GET "https://fuzz.p.rapidapi.com/compare?a=john%20smith&b=Jon%20Smith&scorer=ratio" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: fuzz.p.rapidapi.com"
FAQ
Which similarity algorithms are supported?
Four algorithms are available via the `scorer` parameter: `ratio`, `partial_ratio`, `token_sort_ratio`, and `token_set_ratio`.
Are my input strings stored or logged?
No. All requests are processed entirely in-memory and statelessly. No data is saved or logged.
What is the maximum number of candidates I can pass to `/best-match` or `/match`?
You can supply up to 100 candidates separated by pipes (`|`) in a single query, with a total string length of 20,000 characters.
How many pairs can I compare in a single batch request?
The `POST /batch` endpoint accepts up to 100 string pairs per request.
Try Fuzzy Match String Similarity Deduplication free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI