lighthouse>get
request in 5 secs to see if the response is ready. Please wait.lighthouse>get
response is ready below:
"//////REQUEST"
"curl --location 'https://hi.websiteapi.com/brokenLink/set/
--header 'Authorization: YourAPIKey'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'targetValue=https://websiteapi.com'
"
"//////RESPONSE"
{
"status": "success",
"data": {
"queue": {
"id": 2095
}
}
}
brokenLink>get
request in 5 secs to see if the response is ready. Please wait.brokenLink>get
response is ready below:
"//////REQUEST"
"curl --location 'https://hi.websiteapi.com/brokenLink/get?queueID=2095
--header 'Authorization: YourAPIKey'
--header 'Content-Type: application/x-www-form-urlencoded'
"
"//////RESPONSE"
{
"status": "success",
"data": {
"result": {
"total_links": 265,
"total_unique_links": 58,
"total_broken_links": 1,
"broken_links": [
{
"url": "https://test.websiteapi.com/",
"reason": "404",
"exists_in":
[
"https://websiteapi.com/",
"https://websiteapi.com/support"
]
}
}
},
"queue": {
"id": 2095,
"addedDateTime": "2023-11-10 09:50:01",
"completedDateTime": "2023-11-10 09:55:18"
}
}
A very simplistic REST API which makes it possible to get started within minutes. Here are the details:
It is needed to create an api key from the Settings page (once logged in). After that, just make sure that the api key is sent in the Authorization
header of each request.
The list of methods with sample request and responses:
The method returns whois data for any TLD in a unified format.
Request URL: https://hi.websiteapi.com/whois
Parameters:
targetValue
(domain name) (required)The method checks many blacklist/DNSBL databases and returns if the gien IP is blacklisted in any of them.
Request URL: https://hi.websiteapi.com/blacklistCheck
Parameters:
targetValue
(IP address) (IPv4 and IPv6 are both supported) (required)The method identifies the technologies used in a given web page.
As the identification process takes time, it works with a set>get mechanism where we add the request to the queue with set
and fetch the response 30 secs later with get
.
Request URL: https://hi.websiteapi.com/techDetection/set
Parameters:
targetValue
(URL) (required)The method fetches the response of a previously added techDetection
request.
Request URL: https://hi.websiteapi.com/techDetection/get
Parameters:
queueID
(ID value returned with the set
request) (required if targetValue
is not set)targetValue
(URL) (required if queueID
is not set)The method runs a lighthouse check against the given web page.
As the identification process takes time, it works with a set>get mechanism where we add the request to the queue with set
and fetch the response 30 secs later with get
.
Request URL: https://hi.websiteapi.com/lighthouse/set
Parameters:
targetValue
(URL) (required)The method fetches the response of a previously added lighthouse
request.
Request URL: https://hi.websiteapi.com/lighthouse/get
Parameters:
queueID
(ID value returned with the set
request) (required if targetValue
is not set)targetValue
(URL) (required if queueID
is not set)The method crawls the web-page and its sub-pages by following the links and finds the broken links.
As the identification process takes time, it works with a set>get mechanism where we add the request to the queue with set
and fetch the response later with get
.
Request URL: https://hi.websiteapi.com/brokenLink/set
Parameters:
targetValue
(URL) (required)The method fetches the response of a previously added brokenLink
request.
Request URL: https://hi.websiteapi.com/brokenLink/get
Parameters:
queueID
(ID value returned with the set
request) (required if targetValue
is not set)targetValue
(URL) (required if queueID
is not set)If the API call fails for a reason, here are the HTTP statuses, error codes and details returned:
1000
Unable to return a response. Please try again.1001
Invalid API key.1002
apiKey is required and must be sent as Authorization HTTP header.1003
No data available yet. Please retry within few seconds if the check was already added with a set request.2000
targetValue is required.2001
queueID or targetValue is required.2002
Invalid tld.