API Access & Integration
Integrate powerful domain security analysis into your applications with our comprehensive REST API
Available API Endpoints
/api/v1/domain-analysisGet comprehensive domain analysis including trust score, security, and business information
/api/v1/security-analysisSecurity-focused analysis including SSL certificates, blacklists, and vulnerability scans
/api/v1/technology-stackDetect technologies, frameworks, and tools used by the domain
/api/v1/whois-dataDomain registration information and WHOIS data
Authentication
API Key Required
All API endpoints require authentication via API key. Include your API key in the request header:
Authorization: Bearer YOUR_API_KEYDon't have an API key? Contact us to get started
Get Started
1. Request API Access
Contact our team to get your API credentials and access to our comprehensive domain analysis platform.
Request API Access2. Integration Support
Our technical team provides comprehensive integration support and documentation to get you up and running quickly.
Get Integration SupportCode Examples
JavaScript (Node.js)
const params = new URLSearchParams({
domain: 'example.com',
detailed: 'true'
});
const response = await fetch(
`https://api.scamorlegit.ai/v1/domain-analysis?${params}`,
{
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
}
);
if (!response.ok) {
throw new Error(`API returned HTTP ${response.status}`);
}
const data = await response.json();
console.log('Trust Score:', data.trustScore);
console.log('Security Analysis:', data.securityInfo);Python
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
params = {
'domain': 'example.com',
'detailed': True
}
response = requests.get(
'https://api.scamorlegit.ai/v1/domain-analysis',
headers=headers,
params=params
)
data = response.json()
print(f"Trust Score: {data['trustScore']}")
print(f"Security Analysis: {data['securityInfo']}")PHP
$headers = [
'Authorization: Bearer YOUR_API_KEY',
'Content-Type: application/json'
];
$params = http_build_query([
'domain' => 'example.com',
'detailed' => true
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.scamorlegit.ai/v1/domain-analysis?' . $params,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_TIMEOUT => 30,
]);
$response = curl_exec($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$error = curl_error($curl);
curl_close($curl);
if ($response === false) {
die('Curl error: ' . $error);
}
if ($httpCode !== 200) {
die('API returned HTTP code: ' . $httpCode);
}
$data = json_decode($response, true);
if ($data === null) {
die('Failed to parse JSON response');
}
echo "Trust Score: " . $data['trustScore'] . "\n";
echo "Security Analysis: " . json_encode($data['securityInfo']);Ready to Get Started?
Join hundreds of developers and businesses using our API to protect their users and make informed decisions about website security.