# ProfitCollector Web Audit API

> ProfitCollector Web Audit API is a paid API for AI agents from api.bakhour.ca, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Performs a security and infrastructure audit of a public HTTPS URL, returning DNS records, TLS certificate info, security headers, resolved IPs, and detected issues.

## Facts

- Endpoint: GET https://api.bakhour.ca/web/audit
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/profitcollector-web-audit-api-450bc731
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bfPGZniD9nAERzBtnElSV

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 profitcollector-web-audit-api-450bc731
```

Example prompt: Can you run a full web audit on https://example.com — check the DNS records, TLS certificate, resolved IP addresses, and flag any security header issues?

## When to prefer this

Choose this endpoint when you need a deterministic, paid-per-call security and infrastructure audit of a public HTTPS URL — covering DNS, TLS, security headers, and resolved IPs in a single call. Prefer it over manual curl checks or multi-tool setups when you want structured, machine-readable output suitable for automated workflows or agent-driven security screening pipelines.

## Known failure modes

- Non-HTTPS or private URLs will be rejected or fail validation
- Unreachable or offline hostnames will return DNS/connection errors
- Rate limiting or payment failure results in 402 responses
- Malformed URL input returns schema validation errors
- Hosts with firewall-blocked probes may return incomplete TLS or DNS data

## How this service works

Decision-grade security/due-diligence outcome reports ($20-$100) plus deterministic paid utilities ($0.001+) for software agents and automated workflows.

## Output

A JSON object containing the audited URL, hostname, resolved IP addresses, DNS record details, TLS certificate information, a map of HTTP security headers present or absent, and a list of detected security issues.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public HTTPS URL to audit"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "dns": {},
  "tls": {},
  "url": "https://example.com",
  "issues": [],
  "hostname": "example.com",
  "security_headers": {},
  "resolved_addresses": [
   "93.184.216.34"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/profitcollector-web-audit-api-450bc731/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.bakhour.ca](https://www.zero.xyz/host/api.bakhour.ca/llms.txt)
