# agentdiet-subdomain-scan

> agentdiet-subdomain-scan is a paid API for AI agents from agentdiet.dev, paid per call via x402 or MPP, $0.01/call, status unknown (last checked 2026-10-20).

Performs domain OSINT recon by checking live DNS resolution (IPv4/IPv6), TLS certificate details, and HTTP security headers for a given domain.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/subdomain-scan?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-subdomain-scan-e2640c21
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QqtT93dtBJTivRnHmhJo-

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 agentdiet-subdomain-scan-e2640c21
```

Example prompt: Can you run a security recon on stripe.com — I want to see its DNS resolution (IPv4 and IPv6), TLS certificate issuer and expiry date, and its HTTP security header grade?

## When to prefer this

Choose this endpoint when you need a quick, combined OSINT snapshot of a domain's DNS posture, TLS certificate health, and HTTP security header grade in a single call, without spinning up separate DNS, SSL, and header-checking tools. Ideal for security audits, vendor assessments, and pre-deployment checks where a fast, paid-per-call model is acceptable.

## Known failure modes

- Domain does not exist or fails DNS resolution — returns empty or null DNS records
- Domain is unreachable over HTTP/HTTPS — TLS and security header data unavailable
- Invalid domain format supplied — input validation error
- Domain resolves but has no TLS certificate (HTTP only) — TLS fields empty
- Rate limit or payment failure — request rejected with 402 or 429 status

## How this service works

Inspects live IPv4/IPv6 DNS resolution, TLS certificate issuer/expiry, and HTTP security grade. (Live x402 v2, IETF MPP & MCP endpoint at https://agentdiet.dev/v1/subdomain-scan)

## Output

Returns live DNS resolution results (IPv4 and IPv6 addresses), TLS certificate metadata (issuer name, expiry date), and an HTTP security grade derived from the presence and quality of security response headers for the queried domain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "domain"
 ],
 "properties": {
  "domain": {
   "type": "string",
   "minLength": 1,
   "description": "Target domain name (e.g. anthropic.com, openai.com) for DNS, TLS certificate, and security header OSINT"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-subdomain-scan-e2640c21/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
