Trust Score API
pro/v1/score/trustCombines domain registration, ranking, DNSSEC, email and certificate evidence into a trust score. The certificate component uses the certificate currently served by the host, while CT history remains a separate historical signal.
What It Does
Evaluates registration and reputation sources alongside the directly measured served certificate and its validity, identity and certificate type. Retains CT issuance history independently. Missing live evidence is reported as partial, and the score does not prove that a business or website is trustworthy.
Why It's Useful
Trust scoring is critical for phishing detection, fraud prevention, and brand protection. Over 70% of newly registered domains are malicious or suspicious according to Palo Alto Unit 42 research. A composite trust score enables automated triage of suspicious domains, real-time fraud scoring for payment transactions, and proactive brand impersonation detection. The multi-signal approach avoids false positives — a single weak signal (like privacy-protected WHOIS) does not unfairly penalize legitimate domains when other trust factors are strong.
Use Cases
Phishing Triage & Investigation
Score domains reported in phishing emails or extracted from threat feeds to prioritize investigation. Low-trust domains (score <30) with recent registration dates, no DNSSEC, and DV certificates are strong phishing indicators.
Prioritize domains for phishing investigation using the available trust and registration signals.
Real-Time Fraud Prevention
Evaluate the trustworthiness of domains used in e-commerce transactions, referral URLs, or checkout redirects. Block or flag transactions involving domains with critical or high risk levels before payment processing.
Prevent payment fraud by blocking transactions routed through low-trust domains — catching infrastructure that traditional blocklists miss during the 24-48 hour gap.
Brand Impersonation Detection
Monitor for low-trust domains that incorporate your brand name, trademarks, or product names. Combine trust scoring with typosquat detection to identify domains registered specifically for brand abuse campaigns.
Identify brand impersonation domains before they launch phishing campaigns — the first 32 days after registration is the optimal detection window.
Vendor & Partner Due Diligence
Score partner and vendor domains as part of onboarding due diligence. Flag vendors with trust scores below your organization threshold (e.g., <60) for manual review. Check domain age, registrar quality, and certificate type as baseline trust indicators.
Data-driven vendor trust assessment that catches domains with suspicious registration patterns or poor infrastructure hygiene.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to evaluate trustworthiness for. Analyzed via WHOIS, DNS, CT logs, and Tranco ranking.Example: example.com |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
domain | string | The evaluated domain |
score | number | Composite trust score 0-100 (weighted sum of 7 factors) |
grade | string | Letter grade: A+ (95-100), A (85-94), B (70-84), C (50-69), D (30-49), F (0-29) |
gradeDescription | string | Human-readable description of the grade meaning |
breakdown | object | Individual trust factor scores with score, max, and details |
breakdown.age | object | Domain registration age analysis (max 20 pts) |
breakdown.ranking | object | Tranco global popularity ranking (max 20 pts) |
breakdown.whoisPrivacy | object | WHOIS registrant transparency (max 15 pts) |
breakdown.certificate | object | Certificate type EV/OV/DV and validity (max 15 pts) |
breakdown.registrar | object | Registrar accreditation level (max 15 pts) |
breakdown.dnssec | object | DNSSEC chain validation (max 10 pts) |
breakdown.typosquat | object | Typosquat pattern detection (max 5 pts) |
recommendations | array | Actionable recommendations for improving trust score (e.g., enable DNSSEC, upgrade to EV certificate) |
componentCount | number | Number of trust factors evaluated (max 7, fewer if data unavailable) |
partialFailure | boolean | Whether any data sources failed during evaluation — score may be less reliable when true |
failedComponents | array | List of components that failed: whois, certificate, dnssec. Empty when all sources succeed |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/score/trust?domain=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/score/trust?domain=example.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/score/trust?domain=example.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Trust Score guide
Learn the concepts, choose a practical workflow, and interpret the observations from Trust Score before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
Domain Registration (RDAP)
Get domain registration data via RDAP — the post-WHOIS standard. Detects privacy-proxy registrants and GDPR redactions.
SSL Certificates
Analyze active SSL/TLS certificate details
Security Score
Evidence-weighted security score from 12 components
Email Score
Rate email security (SPF, DKIM, DMARC)
Typosquatting Detection
Detect typosquat domains that could impersonate your brand
External References
Learn more about the standards and protocols behind this endpoint.