Docs/Validation Utils/GET /v1/url-syntax

GET /v1/url-syntaxValidate URL syntax & parse components

Validation Utils lf-validation-utils

Checks that a web address is written correctly and splits it into its parts. Validates a URL's syntax and parses it into components: scheme, host, port, path, query, fragment.

Query Parameters

ParameterTypeRequiredDescription
urlstringYesURL to validate

Response Schema

success (boolean): Operation success
url (string): Original URL
valid (boolean): Whether valid
parsed (object): URL component breakdown

cURL Example

curl 'https://lf-validation-utils.laminarforge.dev/v1/url-syntax?url=https://example.com/path' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-validation-utils.laminarforge.dev/v1/url-syntax'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'url': 'https://example.com/path'}
response = requests.get(url, headers=headers, params=params)
print(response.json())