{"uid":"cap_71q0NGGCMhy25mtFplp6v","slug":"extract-api-javascript-rendered-html-fetch-2249987a","name":"Extract API – JavaScript-Rendered HTML Fetch","description":"Paid web & document extraction (single or batch), rendering, screenshots, URL-to-PDF and site intelligence for AI agents. Payment via x402 (HTTP 402) in USDC on Base (eip155:8453). $0.01 per extract/sitemap/feed, $0.02 per render/screenshot/pdf, $0.03 per site-intel, $0.05 per 10-URL batch.","url":"https://extract-x402.vercel.app/v1/render?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":"Absolute http(s) URL"},"waitMs":{"type":"string","description":"Extra wait after network idle, max 8000"},"fullPage":{"type":"string","description":"1 for full-page screenshot"},"screenshot":{"type":"string","description":"1 to include a base64 screenshot"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"lang":"en","meta":{"og:title":"Example page"},"text":"Clean main content as plain text...","type":"html","bytes":48213,"links":[{"href":"https://example.com/about","text":"About"}],"title":"Example page","jsonld":[],"excerpt":"Short description","headings":[{"text":"Example page","level":1}],"markdown":"# Example page\n\nClean main content as Markdown...","renderMs":2100,"rendered":true,"wordCount":420,"httpStatus":200,"processingMs":180}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_gOQShEQY2E07PJIUvwXDV","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a URL with a headless browser, executes JavaScript, and returns rendered HTML as structured text, Markdown, links, metadata, and optionally a base64 screenshot.","exampleAgentPrompt":"Render the page at https://example.com/dashboard using a headless browser, wait 3000ms after network idle, and give me the clean text, Markdown, all links, and a full-page screenshot.","exampleUseCases":[{"title":"Extract SPA content for AI pipeline","prompt":"Can you fully render https://news.ycombinator.com using a headless browser and return the clean Markdown text and all links so I can feed it into my summarization pipeline?"},{"title":"Full-page screenshot for visual QA","prompt":"Take a full-page screenshot of https://mystore.com/checkout and return it as a base64 image so I can check how the page looks after our latest deployment."},{"title":"Scrape JS-rendered product page","prompt":"Fetch https://shop.example.com/products/widget-pro with JavaScript enabled, wait 2000ms for everything to load, and extract the title, main text, and any JSON-LD structured data you find."}],"resultDescription":"A JSON object containing: rendered plain text, Markdown version of main content, page title, language, meta tags (including Open Graph), headings array with levels, links array with href and text, JSON-LD blobs, excerpt, word count, byte size, HTTP status, render time in ms, and optionally a base64-encoded screenshot — all extracted after full JavaScript execution.","failureModes":["Target URL is unreachable or returns a non-2xx HTTP status (httpStatus field reflects the upstream code)","waitMs exceeds 8000ms maximum — request is rejected or capped","Page uses bot-detection or Cloudflare challenge — rendered content may be incomplete or a challenge page","URL is not an absolute http/https URL — request fails schema validation","Page takes too long to reach network idle — render may time out","Screenshot is very large for full-page captures — response payload may be very large"],"whenToPreferThis":"Choose this endpoint when the target page relies on JavaScript rendering (React, Vue, Angular SPAs) and a plain HTTP fetch would return an empty or partial DOM. It is ideal when you need a screenshot alongside extracted content, or when you need Markdown/structured output plus metadata like JSON-LD and Open Graph tags from a fully rendered page. For static HTML pages where JS is not needed, the cheaper $0.01 extract endpoint is more appropriate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-24T12:33:53.943Z","isFirstParty":false,"canonicalSlug":"extract-api-javascript-rendered-html-fetch-2249987a"}