{"uid":"cap_6koL5Bsr0Z528EPEOJihU","slug":"agentwork-web-fetch-url-to-markdown-batch-js-rendering-a6ed8175","name":"AgentWork Web Fetch — URL to Markdown (Batch, JS Rendering)","description":"Web read / URL to markdown (batch, JavaScript rendering), PDF text extraction and website change monitoring for agents. From $0.003 per URL on Base. x402 USDC, no API key.","url":"https://api.agentwork.run/v1/web/fetch?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"url":{"type":"string","description":"Public HTTP/HTTPS URL (URL-encoded)"},"format":{"enum":["text","markdown"],"type":"string"},"selector":{"type":"string","maxLength":300},"max_chars":{"type":"integer","maximum":60000,"minimum":1000}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"url":"https://example.com/","text":"Example Domain\nThis domain is for use in illustrative examples.","title":"Example Domain","warnings":[],"final_url":"https://example.com/","truncated":false,"characters":62,"fetched_at":"2026-10-09T00:00:00Z","text_sha256":"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","content_type":"text/html","source_status":200,"javascript_rendered":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NHR2kf1TiTobwDO_WwLnc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a public URL and returns its content as clean text or markdown, with optional JavaScript rendering and CSS selector targeting.","exampleAgentPrompt":"Fetch the content of https://docs.openai.com/api-reference and return it as markdown so I can read through the API reference — render JavaScript if needed.","exampleUseCases":[{"title":"Ingest documentation for RAG","prompt":"Pull the full text from https://stripe.com/docs/api as markdown so I can chunk it and load it into my vector store for RAG."},{"title":"Summarize a competitor pricing page","prompt":"Fetch https://www.competitor.com/pricing as clean text — make sure JavaScript is rendered — so I can summarize their current pricing tiers."},{"title":"Extract a specific page section","prompt":"Get the content from https://news.ycombinator.com using the CSS selector '.athing' so I can pull just the story headlines from Hacker News front page."}],"resultDescription":"Returns a JSON object containing: the extracted page text or markdown (up to 60,000 characters), the page title, the final URL after any redirects, the HTTP status code from the origin server, content-type header, a SHA-256 hash of the extracted text (useful for change detection), a timestamp of when the page was fetched, a boolean indicating whether JavaScript rendering was used, a truncated flag if the content exceeded the character limit, and any warnings encountered during fetch.","failureModes":["URL is not publicly accessible or requires authentication — returns an error or empty content","JavaScript rendering timeout for very complex SPAs","Content exceeds max_chars limit — response will be truncated with truncated: true flag","PDF or binary content served at URL instead of HTML — may return empty or garbled text","DNS resolution failure or network timeout for the target URL","Rate limiting or bot protection (e.g. Cloudflare) on the target site blocking the fetch"],"whenToPreferThis":"Choose this endpoint when you need to fetch a single public URL and convert it to clean text or markdown for LLM consumption, especially when the target page uses JavaScript rendering. It is ideal for RAG ingestion pipelines, one-off research tasks, and agent workflows that need webpage content without managing browser infrastructure. Prefer this over the change-monitoring sibling when you want raw content rather than diffs, and over the PDF-extraction sibling when the target is an HTML page rather than a PDF document. The x402/USDC pay-per-call model makes it attractive for agents that need web access without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:33:51.382Z","isFirstParty":false,"canonicalSlug":"agentwork-web-fetch-url-to-markdown-batch-js-rendering-a6ed8175"}