# WebLens Domain Intelligence API

> WebLens Domain Intelligence API is a paid API for AI agents from api.weblens.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Looks up comprehensive domain intelligence for a given hostname, including DNS records, email configuration, tech stack, WHOIS registration data, and hosting details.

## Facts

- Endpoint: POST https://api.weblens.dev/domain?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-domain-intelligence-api-bc8668ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F_j6tB_RGCwEr6buuBUfn

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 weblens-domain-intelligence-api-bc8668ec -d '<json body>'
```

Example prompt: Can you pull up the full domain intelligence for acme.com — I want to see their DNS records, email provider, tech stack, and when their domain registration expires?

## When to prefer this

Choose this endpoint when you need a single consolidated view of a domain's technical infrastructure — combining DNS, email security posture, tech stack, and WHOIS registration in one call. It is especially useful for vendor due diligence, competitive research, or validating domain health without requiring an account or monthly subscription. Prefer it over manual DNS tools when you need structured, machine-readable output with no setup friction and pay-per-call pricing.

## Known failure modes

- Domain not found or unregistered — partial or empty registration object returned
- DNS resolution failure — missing or empty DNS record fields
- WHOIS data unavailable for some TLDs — registration.found may be false
- Invalid domain format in request — API returns error response
- Rate limiting or payment failure via x402 protocol — request rejected before processing

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

Returns a structured JSON object containing: DNS records (A, MX, NS), email security configuration (SPF, DMARC presence and policy, email provider), detected technology stack, domain age in days, hosting and DNS provider, WHOIS registration details (registrar, registered date, expiry date, transfer status), and a unique request ID with inspection timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "domain": {
   "type": "string",
   "description": "Domain to inspect, e.g. \"stripe.com\". A full URL is reduced to its hostname."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dns": {
   "A": [
    "198.137.150.111"
   ],
   "MX": [
    "10 aspmx.l.google.com."
   ],
   "NS": [
    "ns-1087.awsdns-07.org."
   ]
  },
  "email": {
   "hasSpf": true,
   "hasDmarc": true,
   "provider": "Google Workspace",
   "dmarcPolicy": "reject"
  },
  "stack": [
   "Microsoft 365",
   "Salesforce"
  ],
  "domain": "stripe.com",
  "ageDays": 11282,
  "hosting": {
   "dnsProvider": "AWS Route 53"
  },
  "signals": [],
  "requestId": "req_domain123",
  "inspectedAt": "2026-08-02T12:00:00.000Z",
  "registration": {
   "found": true,
   "status": [
    "client transfer prohibited"
   ],
   "expiresAt": "2027-09-11T04:00:00Z",
   "registrar": "MarkMonitor Inc.",
   "nameservers": [
    "ns-1087.awsdns-07.org"
   ],
   "registeredAt": "1995-09-12T04:00:00Z"
  },
  "expiresInDays": 405
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-domain-intelligence-api-bc8668ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
