{"uid":"cap_VgvteAkuW6mi81lGvJUhq","slug":"agishub-web-scraper-url-to-markdown-0db598e8","name":"AGISHub Web Scraper – URL to Markdown","description":"Fetch any public web page and return its main content as clean, token-efficient Markdown (title, description, headings, links, lists). Set render:true to execute JavaScript first for single-page apps or JS-heavy pages that would otherwise come back empty. Built for RAG and for agents that need to read the contents of a URL.","url":"https://api.agishub.com/paid/web-scraper","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"Full http/https URL of the page to extract."},"render":{"type":"boolean","description":"Render JavaScript with a headless browser before extracting (default false). Enable for SPAs / JS-heavy pages that return empty content otherwise. Slower."},"max_chars":{"type":"integer","minimum":0,"description":"Truncate the markdown to at most this many characters (sets truncated:true).","exclusiveMinimum":true},"include_links":{"type":"boolean","description":"Keep hyperlinks in the markdown output (default true)."},"include_images":{"type":"boolean","description":"Keep images as markdown (default false)."}},"additionalProperties":false},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j5_L0VAumK6kM4Or_Zi50","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches any public web page and returns its main content as clean, token-efficient Markdown, with optional JavaScript rendering for SPAs.","exampleAgentPrompt":"Can you fetch the page at https://example.com/blog/ai-trends and give me its content as clean markdown? It's a JavaScript-heavy site so make sure to render it first.","exampleUseCases":[{"title":"RAG pipeline ingestion from URLs","prompt":"Pull the content of https://docs.openai.com/guides/function-calling as clean markdown so I can add it to my knowledge base — use JavaScript rendering since it's a docs SPA."},{"title":"Competitor pricing page monitoring","prompt":"Fetch https://www.competitor.com/pricing and return all the text and links as markdown so I can compare their plans to ours."},{"title":"News article extraction for summarization","prompt":"Grab the article at https://techcrunch.com/2024/05/01/some-article and convert it to markdown — cap it at 5000 characters so it fits in my prompt."}],"resultDescription":"A JSON object containing the page's main content rendered as clean Markdown, including title, meta description, headings, lists, and optionally links and images. May include a `truncated` flag if max_chars was applied.","failureModes":["URL is not publicly accessible or returns 4xx/5xx — scrape fails or returns error","JavaScript-heavy page returns empty content when render:false is used — set render:true","Page blocks bots via CAPTCHA or anti-scraping measures — content may be empty or partial","Invalid URL format causes a validation error","max_chars too small — returns heavily truncated content with truncated:true"],"whenToPreferThis":"Use this endpoint when an AI agent needs to read or ingest a web page's content as clean, LLM-friendly Markdown — especially for RAG pipelines, content summarization, or any task where stripping HTML boilerplate matters. Prefer it over raw HTTP fetches when you need structured, token-efficient text. Enable render:true for SPAs or JS-heavy pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:53:56.659Z","isFirstParty":false}