{"uid":"cap_VMbDA58ZexPF2aLCpUxx8","slug":"utilsforagents-com-a2d8752d","name":"utilsforagents.com Fetch URL as Text","description":"Fetch a URL and return its text content. Auto-detects the format: HTML is converted to Markdown, JSON is returned as formatted text, and Markdown or plain text is returned as-is. Use when you need to read any URL without knowing its content type in advance. Send {\"url\": \"https://...\"}. Remote fetch timeout: 5s, max download size: 2 MB.","url":"https://utilsforagents.com/v1/text/fetch-content","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL to fetch — auto-detects HTML, JSON, Markdown, or plain text"}}},"responseSchema":{"type":"json","example":{"ok":true,"markdown":"# README\n\nProject documentation...","sourceUrl":"https://quotes.toscrape.com/readme.md","charsAfter":2048,"charsBefore":2048,"detectedFormat":"markdown","processingTimeMs":85.2}},"example":{"request":{"url":"https://example.com"},"response":{"ok":true,"text":"# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)","content":"<!doctype html><html lang=\"en\"><head><title>Example Domain</title><link rel=\"icon\" href=\"data:,\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style></head><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p><p><a href=\"https://iana.org/domains/example\">Learn more</a></p></div></body></html>\n","markdown":"# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)","sourceUrl":"https://example.com/","charsAfter":167,"charsBefore":559,"contentType":"text/html","detectedFormat":"html","processingTimeMs":0}},"exampleRequest":{"url":"https://example.com"},"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vyTGFWzuOFmFS_91QzpeL","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL and returns its content as text, auto-detecting format: HTML→Markdown, JSON→formatted text, or plain/Markdown returned as-is.","exampleAgentPrompt":"Fetch the content at https://example.com/docs/api-reference and give me back the text — I don't know if it's HTML, JSON, or plain text, just auto-detect and return it in readable form.","exampleUseCases":[{"title":"Monitor competitor pricing pages","prompt":"Check the pricing page at https://competitors-site.com/pricing and pull out all the text content so I can see what plans and features they're offering. Auto-detect whatever format it's in."},{"title":"Extract structured data from APIs","prompt":"Fetch the JSON response from https://api.example.com/v1/products and convert it to readable text format so I can review the data structure and content without parsing it myself."},{"title":"Gather web content for analysis","prompt":"Pull the text from https://blog.example.com/latest-article and give me the full readable content in Markdown format — handle whatever format the page is in automatically."}],"resultDescription":"Returns the text content of the requested URL. HTML pages are converted to Markdown, JSON responses are returned as formatted text, and Markdown or plain text files are returned as-is. Subject to a 5-second remote fetch timeout and 2 MB download limit.","failureModes":["URL is unreachable or returns non-2xx HTTP status — fetch fails with error","Response exceeds 2 MB download limit — content truncated or rejected","Remote server takes longer than 5 seconds to respond — timeout error","URL is malformed or missing — validation error returned","Content type is binary (e.g. PDF, image) and cannot be converted to text"],"whenToPreferThis":"Use this endpoint when you need to read the content of any URL without knowing its format in advance. It is the best choice for generic web fetching where the content type may be HTML, JSON, or plain text, and you want a unified text/Markdown output without calling separate format-specific endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:41:23.917Z","isFirstParty":false}