LMCS API Endpoints
Overview
The LMCS (Link Management, Correction, and Statistics) API is a REST API which offers several endpoints to help you automatically fix broken links, provide suggestions for your users, and filter out suspicious traffic. Detailed information regarding pricing, input arguments, and JSON outputs can be found in the individual documentation pages.
Available Endpoints
Multi-match endpoints
These endpoints return multiple URL suggestions divided into two sets: "matches" (highly likely to contain the intended URL) and "semimatches" (possible alternatives). This is crucial if you want to create a "Did you mean to visit ...?" page.
| Endpoint | Description |
|---|---|
/api/lmcscloud/urls/matches/best |
Recommended. Combines algorithmic and LLM approaches. First it validates that the request isn't for a URL commonly visited by automated bots. Then it attempts algorithmic link correction to save costs, falling back to an LLM if necessary. |
/api/lmcscloud/urls/matches/algo |
Uses our proprietary string-matching algorithm to return multiple URL suggestions. Very fast and cost-effective solution. Helpful when a single definitive match cannot be determined. |
Single-match endpoints
These endpoints are designed to return a single, correct link for a given incorrect link or no link. We compare the user's input with the list of available pages to find the best matching link.
| Endpoint | Description |
|---|---|
/api/lmcscloud/urls/match/best |
Recommended. Combines algorithmic and LLM approaches. First it validates that the request isn't for a URL commonly visited by automated bots. Then it attempts algorithmic link correction to save costs, falling back to an LLM if necessary. |
/api/lmcscloud/urls/match/llm |
Corrects an incorrect URL by comparing it to your list of available pages using an AI language model. Extremely accurate. |
/api/lmcscloud/urls/match/algo |
Uses our proprietary string-matching algorithm to correct the URL. Very fast and cost-effective solution. |
Validation endpoints
These endpoints are only meant for traffic filtering.
| Endpoint | Description |
|---|---|
/api/lmcscloud/urls/validate/path |
Allows you to check if a requested path is commonly used by malicious bots (e.g., automated vulnerability scanners). This endpoint does not perform any link correction. |