{"uid":"cap_ekNicXdGOEZkPkl2jNq15","slug":"afterimage-page-fetch-80762e88","name":"AfterImage Page Fetch","description":"Fetch any public URL. If AfterImage already has a copy, reuse it (timestamp + sha256). Live fetch if not.","url":"https://afterimage.page/v1/page","method":"GET","headers":{},"bodySchema":{"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 http(s) URL to snapshot"},"max_age_s":{"type":"string","description":"Reuse a stored copy no older than this many seconds"}}}},"additionalProperties":false},"output":{"type":"object","properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bDUAFH6YItHs-25yYpS6L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches any public HTTP URL, returning a cached copy with timestamp and SHA256 if available, or performing a live fetch if not cached","exampleAgentPrompt":"Can you fetch the content of https://example.com/article for me — reuse a cached copy if one exists from the last 3600 seconds, otherwise grab it fresh?","exampleUseCases":[{"title":"Cache-aware news article retrieval","prompt":"Grab the latest content from https://techcrunch.com/startups/ — if AfterImage already has a copy from the last 10 minutes, just use that, otherwise fetch it live."},{"title":"Immutable page snapshot for audit trail","prompt":"Fetch https://company.com/terms-of-service and give me a snapshot with the timestamp and SHA256 hash so I can verify the exact content I reviewed today."},{"title":"Reduce redundant fetches in a research pipeline","prompt":"I need the HTML from https://arxiv.org/abs/2301.00000 — if you already have a copy cached in the last hour, use it to save time and cost."}],"resultDescription":"Returns the page content of the requested URL along with a timestamp of when it was fetched and a SHA256 hash of the content. If a valid cached copy exists within the requested max_age_s window, that stored copy is returned instead of hitting the live web.","failureModes":["URL is not publicly accessible (private/authenticated resource) — fetch fails","URL is malformed or missing — validation error on required 'url' query param","Cached copy is older than max_age_s and live fetch also fails (network error, timeout)","Non-GET/HEAD/DELETE method requested — rejected by schema enum constraint","Rate limiting or payment failure at $0.01 USDC per call via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need to fetch a public URL and want automatic cache reuse to avoid redundant fetches — especially useful for pipelines that repeatedly access the same URLs, when you need content integrity verification via SHA256, or when you want timestamped snapshots. Prefer over raw HTTP fetching when deduplication, audit trails, or cost efficiency across repeated fetches matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:34:55.441Z","isFirstParty":false}