# Agent Miner Tools – Web Resource Preflight Check

> Agent Miner Tools – Web Resource Preflight Check is a paid API for AI agents from agent-api-production.tim1712.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Resolves redirects and returns deterministic HTTP facts (final URL, status, content type, robots.txt access, title) for a URL so an agent can decide whether to fetch it fully.

## Facts

- Endpoint: POST https://agent-api-production.tim1712.workers.dev/v1/web/resource-preflight
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-miner-tools-web-resource-preflight-check-5c0a5359
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XfKJ1H4hI-2sQdhg4SU-o

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 agent-miner-tools-web-resource-preflight-check-5c0a5359 -d '<json body>'
```

Example prompt: Before you go ahead and fetch that article at https://example.com/article, can you do a quick preflight check to see if it's accessible, what it resolves to, and whether bots are allowed?

## When to prefer this

Use this endpoint whenever an agent is about to fetch an unfamiliar URL and wants to avoid wasting tokens, money, or crawler capacity on dead links, redirects to unexpected content, or bot-blocked resources. Prefer it over a full fetch when you only need HTTP metadata, redirect resolution, or robots.txt compliance status — not the full page body. It does not scrape page content, render JavaScript, or perform safety classification, so pair it with a scraping tool when full content is needed.

## Known failure modes

- URL is unreachable or DNS fails — ok:false with network error details
- Redirect loop detected — bounded hop limit stops resolution early with warning
- URL returns non-HTML resource — likelyHtml:false, title absent
- robots.txt not found — found:false in robots object
- Malformed or excessively long URL — validation error before any fetch
- Remote server rate-limits or blocks the preflight request — non-200 status returned

## How this service works

Use before spending tokens, money or crawler capacity fetching an unfamiliar web resource. Resolves redirects (manually, bounded, re-validated per hop) and returns deterministic HTTP/resource facts — final URL, status, content type and length, response time, a bounded HTML title/canonical peek, and a lightweight generic-bot robots.txt indication — so an agent can decide whether a normal web fetch is worthwhile. It does not scrape, render JavaScript, or judge safety.

## Output

A JSON object containing: whether the request succeeded (ok), the final resolved URL, HTTP status code, content type and length, response time in ms, HTML page title, canonical URL, the full redirect chain with per-hop status codes, a robots.txt check result (found, URL, and whether generic bots are allowed), a timestamp, and any warnings encountered.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "maxLength": 2048,
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "title": "Example article title",
  "robots": {
   "url": "https://www.example.com/robots.txt",
   "found": true,
   "allowedForGenericBot": true
  },
  "status": 200,
  "finalUrl": "https://www.example.com/article",
  "warnings": [],
  "checkedAt": "2026-08-30T10:00:02.000Z",
  "redirects": [
   {
    "to": "https://www.example.com/article",
    "from": "https://example.com/article",
    "status": 301
   }
  ],
  "likelyHtml": true,
  "contentType": "text/html; charset=utf-8",
  "canonicalUrl": "https://www.example.com/article",
  "requestedUrl": "https://example.com/article",
  "contentLength": 123456,
  "responseTimeMs": 184
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-miner-tools-web-resource-preflight-check-5c0a5359/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-api-production.tim1712.workers.dev](https://www.zero.xyz/host/agent-api-production.tim1712.workers.dev/llms.txt)
