Skip to main content

Trust Score API

pro
GET/v1/score/trust

Combines 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

SOC Analyst / Threat Intelligence

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.

Fraud Analyst / Payment Security

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 Protection / Digital Risk

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.

Third-Party Risk Analyst

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

NameLocationTypeRequiredDescription
domainquerystringRequiredThe 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.

FieldTypeDescription
domainstringThe evaluated domain
scorenumberComposite trust score 0-100 (weighted sum of 7 factors)
gradestringLetter grade: A+ (95-100), A (85-94), B (70-84), C (50-69), D (30-49), F (0-29)
gradeDescriptionstringHuman-readable description of the grade meaning
breakdownobjectIndividual trust factor scores with score, max, and details
breakdown.ageobjectDomain registration age analysis (max 20 pts)
breakdown.rankingobjectTranco global popularity ranking (max 20 pts)
breakdown.whoisPrivacyobjectWHOIS registrant transparency (max 15 pts)
breakdown.certificateobjectCertificate type EV/OV/DV and validity (max 15 pts)
breakdown.registrarobjectRegistrar accreditation level (max 15 pts)
breakdown.dnssecobjectDNSSEC chain validation (max 10 pts)
breakdown.typosquatobjectTyposquat pattern detection (max 5 pts)
recommendationsarrayActionable recommendations for improving trust score (e.g., enable DNSSEC, upgrade to EV certificate)
componentCountnumberNumber of trust factors evaluated (max 7, fewer if data unavailable)
partialFailurebooleanWhether any data sources failed during evaluation — score may be less reliable when true
failedComponentsarrayList 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
curl --request GET 'https://api.edgedns.dev/v1/score/trust?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
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);
Python
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

External References

Learn more about the standards and protocols behind this endpoint.

Try This Endpoint

Test the Trust Score endpoint live in the playground.

Trust Score API Reference | EdgeDNS