Link Validator

The Link Validator endpoint allows you to validate a given URL and retrieve information such as its protocol, primary domain, and the route. This endpoint is ideal for applications requiring URL validation or metadata extraction from links.

Endpoint

  • URL: https://api.erensko.xyz/v1/link-validator

  • Method: POST

  • Description: Validates a URL provided in the request body and extracts detailed information, including its protocol, primary domain, and route.

Request Body

Key
Value

url

The URL to be validated in your request.

Headers

Key
Value

Authorization

Your own personal API key, create one by clicking here. This is required.

Request Example

POST https://api.erensko.xyz/v1/link-validator

{
  "url": "https://api.erensko.xyz/v1/link-validator"
}

Response Example

{
  "message": "Valid URL",
  "protocol": "https",
  "primaryDomain": "api.erensko.xyz",
  "route": "/v1/link-validator"
}

Last updated