Fuzzy Text Search API
ApyHub
25 atoms
Base tier
About
The Fuzzy Text Search API allows developers to perform flexible, typo-tolerant searches across large text datasets. It identifies keywords even if they're misspelled or include accented characters (diacritics), making it ideal for handling user-input errors. Unlike exact-match searches, the API finds relevant results despite spelling variations, ensuring better user experiences and more accurate data retrieval. Perfect for applications that need robust, fault-tolerant search functionality.
Try the Fuzzy Text Search API now and deliver more accurate, user-friendly search results with minimal setup.
API Playground
API Documentation
fuzzy
POST
https://api.apyhub.com/search/text/fuzzy
Request example
Method:
POST
Content Type:
application/json
Query Parameter(s)
Attribute | Data Type | Description |
---|---|---|
unicode-normalized | boolean | Default false. Must be true, in case accents need to be taken into consideration |
Request Body
Attribute | Type | Mandatory | Description |
---|---|---|---|
source | String | No | The term that you want to search for. |
target | String | No | The target in which you want to search for the term. |
Sample Response
Returns an array of terms that match the
source
. But if source
or target
is missing or is null
or empty string
then this returns an empty array.Sample with unicode-normalized true
HTTP Response Codes
The method may return one of the following HTTP status codes:
Status Code | Description |
---|---|
200 | The request was successful. |
400 | Invalid input or mandatory params are missing. |
401 | Required authentication information is either missing or not valid for the resource. |
500 | Potential error that might occur, if any unexpected error occurs while processing the request. |
Authentication
All API requests to ApyHub services need to be authenticated. Currently we support
tokens
or basic authentication
mechanisms.
You can generate and view your existing credentials from your workspace settings (on the left side of the navbar) and go to “API Keys".Points to note:
- Credential secrets are generated on the fly and are not stored in plain text, so on generating a credential please save the secrets somewhere safe.
- Use the
apy-token
as the header parameter to pass the token. - Use the
Authorization
header to send the basic authentication credentials.
Error codes
To search for a specific error code, enter the code in the search box below. Alternatively, you can click on the button to view a complete list of all error codes.
Table of contents