{"uid":"cap_-0RcUuR95-AWkpC9VXkSd","slug":"agentwork-web-contents-url-to-markdown-746d5783","name":"AgentWork Web Contents — URL to Markdown","description":"Web read / URL to markdown (batch, JavaScript rendering), PDF text extraction, website change monitoring, prompt-injection check and sanctions screening for agents. From $0.001 per call on Base. x402 USDC, no API key.","url":"https://api.agentwork.run/v1/web/contents?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","properties":{"url":{"type":"string","format":"uri","maxLength":2048},"format":{"enum":["markdown","text"],"type":"string"},"max_chars":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"count":1,"failed":0,"format":"markdown","results":[{"ok":true,"url":"https://example.com/","title":"Example Domain","markdown":"# Example Domain\n\nThis domain is for use in illustrative examples.","markdown_sha256":"0000000000000000000000000000000000000000000000000000000000000000"}],"succeeded":1,"charged_urls":1}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SsdSuEKqrDbWNLKsMWuwW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 markdown (with JavaScript rendering support), priced per-call via x402 USDC on Base.","exampleAgentPrompt":"Can you fetch the content of https://example.com/article and return it as markdown so I can read it?","exampleUseCases":[{"title":"LLM context from live webpage","prompt":"Pull the content of https://techcrunch.com/2024/01/15/openai-news/ and give it to me as markdown — I want to include it as context for a summary I'm writing."},{"title":"JavaScript-rendered SPA content extraction","prompt":"That page at https://app.someproduct.com/changelog uses JavaScript to load its content — can you fetch and convert it to markdown so I can read what changed?"},{"title":"Web evidence for agent fact-checking","prompt":"Grab the text from https://en.wikipedia.org/wiki/Nikola_Tesla in markdown format, limiting to 5000 characters, so I can verify some facts."}],"resultDescription":"Returns a JSON object with ok status, result count, format used, and an array of results — each containing the URL, page title, full markdown (or plain text) content, and a SHA-256 hash of that content. Also reports how many URLs succeeded, failed, and were charged.","failureModes":["URL is unreachable or returns non-200 HTTP status — result entry has ok:false","URL points to non-HTML content that cannot be rendered as markdown","JavaScript rendering times out for complex single-page apps","Malformed or invalid URL input causes schema validation error","Insufficient USDC balance causes x402 payment failure before the call completes"],"whenToPreferThis":"Choose this endpoint when you need to fetch and convert a live public webpage into clean markdown or plain text for LLM consumption, especially when JavaScript rendering is required. Prefer it over generic scraping services when you want per-call micropayment pricing via x402 USDC with no API key setup, and when you need a content hash for change detection or deduplication downstream.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:24.112Z","isFirstParty":false,"canonicalSlug":"agentwork-web-contents-url-to-markdown-746d5783"}