{"slug":"agent-api-testnet-tim1712-workers-dev-v1-web-resource-prefli-9b5b2f","title":"Use before spending tokens, money or crawler capacity fetching an unfamiliar web","host":"agent-api-testnet.tim1712.workers.dev","method":"POST","resource":"https://agent-api-testnet.tim1712.workers.dev/v1/web/resource-preflight","category":"code","description":"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 ","price_listed":0.003,"price_asked":0.003,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":364,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:84532"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"url":"https://example.com/article"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"url":{"maxLength":2048,"minLength":1,"type":"string"}},"required":["url"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"canonicalUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"checkedAt":{"type":"string"},"contentLength":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}]},"contentType":{"anyOf":[{"type":"string"},{"type":"null"}]},"finalUrl":{"type":"string"},"likelyHtml":{"type":"boolean"},"ok":{"type":"boolean"},"redirects":{"items":{"additionalProperties":false,"properties":{"from":{"type":"string"},"status":{"type":"integer"},"to":{"type":"string"}},"required":["status","from","to"],"type":"object"},"type":"array"},"requestedUrl":{"type":"string"},"responseTimeMs":{"minimum":0,"type":"integer"},"robots":{"additionalProperties":false,"properties":{"allowedForGenericBot":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"found":{"type":"boolean"},"url":{"type":"string"}},"required":["url","found","allowedForGenericBot"],"type":"object"},"status":{"type":"integer"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"warnings":{"items":{"type":"string"},"type":"array"}},"required":["requestedUrl","finalUrl","redirects","status","ok","contentType","contentLength","responseTimeMs","likelyHtml","title","canonicalUrl","robots","warnings","checkedAt"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.003,"price_match":true,"latency_ms":364,"error":null}],"description_full":"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.","last_updated":"2026-08-30T15:47:58.539Z","schemes":["exact"]}