Docs/Web Intel/GET /v1/url-reachability

GET /v1/url-reachabilityCheck if a URL is reachable

Web Intel lf-web-intel

Checks whether a link actually answers, and how fast. Checks if a URL is reachable by making an HTTP HEAD request and returning status code, response time, and redirect info.

Query Parameters

ParameterTypeRequiredDescription
urlstringYesURL to check
timeoutintegerNoTimeout in seconds

Response Schema

success (boolean): Operation success
url (string): Checked URL
reachable (boolean): Whether reachable
status_code (integer): HTTP status
response_time_ms (integer): Response time

cURL Example

curl 'https://lf-web-intel.laminarforge.dev/v1/url-reachability?url=https://example.com' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

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