# Liangyi Domain Audit API

> Liangyi Domain Audit API is a paid API for AI agents from liangyi-domain-audit.orelumia-offer-worker.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Audits a public domain's DNS and email-delivery records, returning MX, SPF, DMARC, DNSSEC, and resolver status in a single call.

## Facts

- Endpoint: GET https://liangyi-domain-audit.orelumia-offer-worker.workers.dev/v1/domain-email-audit
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liangyi-domain-audit-api-d3c0a012
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1aw_Spd7P8_wWKRJazaMJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability liangyi-domain-audit-api-d3c0a012
```

Example prompt: Can you run a full DNS and email-delivery audit on acmecorp.com — I want to know if they have MX, SPF, and DMARC records set up and whether DNSSEC is authenticated?

## When to prefer this

Choose this endpoint when you need a single, pay-per-call lookup of a domain's email-delivery and DNS security posture — specifically MX, SPF, DMARC presence, and DNSSEC authentication — without managing DNS resolver infrastructure yourself. Ideal for one-off audits, agent-driven domain vetting workflows, or pre-send email deliverability checks where bulk subscription pricing is unnecessary.

## Known failure modes

- Invalid or non-existent domain returns resolver error or empty records
- Domain without any DNS records may return all 'has*' flags as false
- Payment not processed (402) blocks the request
- Malformed domain input (e.g. includes scheme or path) may cause validation error
- Temporary DNS resolver unavailability may yield incomplete results

## How this service works

Pay-per-call audit of public DNS and email-delivery records.

## Output

Returns a structured object containing the audited domain name, the timestamp of the check, a boolean for DNSSEC authentication, resolver status details, and an email sub-object with booleans and raw record arrays for MX, SPF, and DMARC presence.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "domain"
 ],
 "properties": {
  "domain": {
   "type": "string",
   "description": "Public domain to audit, without a scheme or path."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "domain",
  "checkedAt",
  "dnssecAuthenticated",
  "email",
  "records",
  "resolverStatus"
 ],
 "properties": {
  "email": {
   "type": "object",
   "required": [
    "hasMx",
    "hasSpf",
    "hasDmarc",
    "mx",
    "spf",
    "dmarc"
   ],
   "properties": {
    "mx": {
     "type": "array",
     "items": {
      "type": "object"
     }
    },
    "spf": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "dmarc": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "hasMx": {
     "type": "boolean"
    },
    "hasSpf": {
     "type": "boolean"
    },
    "hasDmarc": {
     "type": "boolean"
    }
   }
  },
  "domain": {
   "type": "string"
  },
  "records": {
   "type": "object"
  },
  "checkedAt": {
   "type": "string",
   "format": "date-time"
  },
  "resolverStatus": {
   "type": "object"
  },
  "dnssecAuthenticated": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liangyi-domain-audit-api-d3c0a012/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from liangyi-domain-audit.orelumia-offer-worker.workers.dev](https://www.zero.xyz/host/liangyi-domain-audit.orelumia-offer-worker.workers.dev/llms.txt)
