Skip to main content

Compliance Score API

pro
GET/v1/score/compliance

Calculates a composite compliance score (0-100) from 12 weighted components: cookie consent mechanism (16%), privacy policy presence and quality (15%), GDPR compliance signals (14%), terms of service (8%), CCPA/CPRA compliance (8%), security disclosure via security.txt (8%), contact/DPO information (8%), accessibility statement (6%), technical accessibility (5%), children's data protection (4%), cookie technical compliance (4%), and multi-state US privacy (4%). Returns a letter grade (A+ to F), detailed breakdown with per-component findings, and actionable recommendations for improving compliance posture across GDPR, CCPA, ePrivacy Directive, and accessibility requirements.

What It Does

Fetches the domain's main page and up to 5 sub-pages (privacy policy, terms, accessibility statement, contact, CCPA opt-out) plus /.well-known/security.txt. Detects consent management platforms (OneTrust, CookieBot, Quantcast, etc.), IAB TCF v2 API signals, and granular consent options. Analyzes privacy policy content for GDPR terms (data rights, legal basis, DPO, consent withdrawal, transfer mechanisms) and CCPA terms (California disclosures, right to know/delete). Parses security.txt per RFC 9116 for required fields. Detects accessibility statement with WCAG level references. Checks contact pages for physical address, email, and impressum compliance. Also evaluates technical accessibility via automated audit, children's data protection (COPPA, age gates), cookie security attributes, and multi-state US privacy signals (GPC, universal opt-out, AI disclosure).

Why It's Useful

Prioritize qualified manual review using observed documentation and configuration signals. Obligations depend on jurisdiction, processing and business context. A score cannot establish lawful consent, honored opt-outs, WCAG conformance or legal compliance.

Use Cases

Legal / Compliance Team

Self-Audit Before Launch

Run a compliance score check on your own domain before launching to new markets (EU, California). Identify missing privacy policy sections, absent cookie consent, or missing security.txt before regulatory exposure increases.

Catch compliance gaps before regulators or users flag them — avoid fines and reputational damage.

Privacy Engineer / DPO

Continuous Compliance Monitoring

Schedule periodic compliance score checks via domain monitoring subscriptions. Get alerted when score drops — for example, when a CMS update removes the cookie consent banner or a deploy breaks the privacy policy page.

Detect compliance regressions immediately rather than during the next manual audit.

Third-Party Risk Manager

Vendor Privacy Assessment

Score vendor and partner domains for compliance signals as part of due diligence. A vendor without a privacy policy, cookie consent, or security.txt may pose data handling risks to your organization.

Quantify vendor compliance posture with a single metric for risk assessments and procurement decisions.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to calculate compliance score for (e.g., example.com)Example: edgedns.dev
verbosequerystringOptionalPass "true" to receive the full recommendation list. By default the response is capped at the top 15 highest-impact items (sorted by priority, estimated effort, and score gain); the remaining items are still counted in totalRecommendations and recommendationsTruncated will be true.Example: true

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
assessmentobjectSource-evidence status, observed/applicable weights and coverage; missing observations remain unavailable, not legally inapplicable.
legalAssessmentstringAlways unverified. Static documentation and header signals do not establish legal compliance or runtime enforcement.
applicabilitystringUnknown: jurisdiction, processing purpose and covered-business duties require separate review.
finalUrlstringFinal inspected homepage/document URL after redirects; secondary sources retain their own scope.
domainstringThe scored domain
scorenumberComposite compliance score 0-100 (weighted sum of 12 components)
gradestringComplete static-signal grade; null for provisional/unavailable evidence
gradeDescriptionstringHuman-readable grade description (e.g., "Good - adequate with room for improvement")
breakdownobjectPer-component scores with score, max, and details for each of the 12 compliance factors
breakdown.cookieConsentobjectCookie consent mechanism: CMP detection, IAB TCF, granular options, reject-all (max 16 pts)
breakdown.privacyPolicyobjectPrivacy policy presence, word count, GDPR/CCPA terms, contact info (max 15 pts)
breakdown.gdprobjectGDPR signals: data rights, legal basis, DPO, consent withdrawal, transfer mechanism (max 14 pts)
breakdown.termsOfServiceobjectTerms of service presence and document quality (max 8 pts)
breakdown.ccpaobjectCCPA/CPRA: Do Not Sell link, opt-out, California disclosures (max 8 pts)
breakdown.securityDisclosureobjectsecurity.txt per RFC 9116: Contact, Expires, Policy, PGP signing (max 8 pts)
breakdown.contactInfoobjectContact page, physical address, email, impressum (max 8 pts)
breakdown.accessibilityStatementobjectAccessibility statement with WCAG level and contact info (max 6 pts)
breakdown.technicalAccessibilityobjectTechnical accessibility from automated WCAG audit score (max 5 pts)
breakdown.childrenProtectionobjectChildren's data protection: COPPA notice, age gate, parental consent (max 4 pts)
breakdown.cookieTechnicalobjectCookie security: Secure flag, SameSite, third-party count, cookie wall penalty (max 4 pts)
breakdown.multiStatePrivacyobjectMulti-state US privacy: GPC policy self-declarations, opt-out documentation, state references, AI disclosure (max 4 pts)
recommendationsarrayPrioritized list of actionable compliance improvements. Each item carries priority (critical/high/medium/low), component, issue, regulation citation, action, estimatedEffort (minutes/hours/days), and approximate scoreGain points. Capped at the top 15 by default — pass ?verbose=true to receive the full list.
totalRecommendationsnumberTotal number of recommendations generated before any cap (so you can tell how many were trimmed when recommendationsTruncated is true).
recommendationsTruncatedbooleanTrue when the recommendations array was capped to the top 15 highest-impact items. Pass ?verbose=true to retrieve the full list.
componentCountnumberNumber of compliance components evaluated (12)
partialFailurebooleanTrue when a required source observation fails; inspect assessment coverage and provisionalGrade before comparison.
failedComponentsarrayHuman-readable names of sub-fetches that failed (e.g., "privacy policy", "terms of service") for debugging and confidence reporting.
excludedComponentsarrayUnavailable component keys excluded from arithmetic but retained in the evidence-coverage denominator; failures are not legal inapplicability.
confidenceobjectResult confidence indicator: level (high/medium/low) and limitations list
discoveryMetadataobjectURL discovery debugging metadata: urlsDiscovered (per-type), cmsDetected (platform or null), sitemapFound (boolean)
methodologyobjectMethodology metadata: version (e.g., "2026.05"), docsUrl, and per-component weight rationale. Lets callers detect when scoring has shifted between versions and explain "why did my grade change?" without guessing.

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/compliance?domain=edgedns.dev' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/score/compliance?domain=edgedns.dev",
  {
    "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/compliance?domain=edgedns.dev",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full Compliance Score guide

Learn the concepts, choose a practical workflow, and interpret the observations from Compliance 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 Compliance Score endpoint live in the playground.

    Compliance Score API Reference | EdgeDNS