# Revenue Agent – OpenAPI Drift Detector

> Revenue Agent – OpenAPI Drift Detector is a paid API for AI agents from agent.prh.news, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-23).

Detects breaking changes and API drift in a public OpenAPI/Swagger spec by comparing it against the last stored snapshot and returning a JSON change report plus Markdown summary.

## Facts

- Endpoint: POST https://agent.prh.news/v1/check?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/revenue-agent-openapi-drift-detector-743123bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4gWSI_YUTHuol33kxAne8

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 revenue-agent-openapi-drift-detector-743123bb -d '<json body>'
```

Example prompt: Check https://api.myservice.com/openapi.json for any breaking changes or API drift compared to the last snapshot — give me a full change report.

## When to prefer this

Choose this endpoint when you need deterministic, structured change detection between two versions of a public OpenAPI or Swagger spec without maintaining your own diffing infrastructure. It is ideal for CI/CD pipelines, automated API governance workflows, or scheduled monitoring jobs where a canonical JSON diff and Markdown summary are required. Prefer it over manual diff tools when you want automatic baseline management — the first call records the snapshot so subsequent calls always compare against the last known state.

## Known failure modes

- URL is not publicly accessible or requires authentication — returns error indicating inaccessible spec
- URL does not point to a valid OpenAPI/Swagger JSON or YAML document — returns parse error
- Network timeout fetching the remote spec URL — returns fetch failure
- Payment not completed (x402 protocol) — request not processed
- Invalid URL format or query string included — returns validation error

## How this service works

Use to detect breaking changes and API drift in a public OpenAPI/Swagger spec (JSON or YAML URL). Compares the spec with the service's last stored snapshot of that URL (first check records the baseline) and returns a deterministic JSON change report plus a Markdown summary. 0.10 USDC per completed analysis.

## Output

A deterministic JSON change report listing all detected additions, removals, modifications, and breaking changes between the current spec and the stored snapshot, plus a human-readable Markdown summary. On the first call for a given URL, the spec is recorded as the baseline and the report indicates no prior version to compare against.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "pattern": "^https?://",
   "description": "Public OpenAPI/Swagger JSON or YAML URL. Structural oneOf/anyOf and local references are supported; not and external references are rejected. Credentials and query strings are rejected; redirects and resolved addresses must remain public."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/revenue-agent-openapi-drift-detector-743123bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.prh.news](https://www.zero.xyz/host/agent.prh.news/llms.txt)
