{"uid":"cap_twn5ta2g3jdPcf-YXKmD1","slug":"website-to-rag-pack-75572abd","name":"Website to RAG Pack","description":"FreeTier Website to RAG pack: Turn any web page into clean AI-ready data in one call: the page as markdown, a RAG-ready index for retrieval, and page metadata (title, description). Built for agents that need to read, quote and answer from a URL. Info: https://freetier-agent-api.pages.dev/packs/website-to-rag","url":"https://freetier-agent-api.pages.dev/api/pack/website-to-rag?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":"URL of the page to convert, e.g. https://example.com/about"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"meta":{"related":[{"url":"https://freetier-agent-api.pages.dev/packs/wallet-safety","slug":"wallet-safety","title":"Wallet Safety Scan"}]},"pack":"website-to-rag","input":{"url":"https://example.com"},"errors":[],"results":{},"summary":{"status":"ok"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cpGv4pccB8fgFfgYDzoyU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any public web page URL into a markdown rendering, a RAG-ready retrieval index, and page metadata (title, description) in a single API call","exampleAgentPrompt":"Can you fetch https://en.wikipedia.org/wiki/Retrieval-augmented_generation and turn it into clean markdown plus a RAG index so I can answer questions from it?","exampleUseCases":[{"title":"Answer questions from a product page","prompt":"Grab the content from https://stripe.com/docs/payments/accept-a-payment and convert it into a RAG-ready format so you can answer my questions about how Stripe payments work."},{"title":"Quote from a news article","prompt":"Convert https://www.theguardian.com/technology/2024/jan/10/openai-gpt4 into clean markdown and a retrieval index so you can accurately quote and summarize what it says."},{"title":"Index a competitor's landing page","prompt":"Take https://www.notion.so/product and extract the page content into an AI-ready RAG pack — markdown, index, and metadata — so I can compare their feature list against ours."}],"resultDescription":"Returns a JSON object containing: the page rendered as clean markdown, a RAG-ready retrieval index for embedding-based lookup, and page metadata including title and description. Also includes the input URL echoed back, a status summary, and any errors encountered.","failureModes":["URL is unreachable or returns a non-200 HTTP status — results may be empty or partial","Private or paywalled pages that block headless access return limited or no content","Very large pages may be truncated or slow to process","Dynamic JavaScript-heavy pages may not render fully, producing incomplete markdown","Invalid or malformed URL parameter returns an error response"],"whenToPreferThis":"Choose this endpoint when an agent needs to both read a web page as human-readable markdown AND prepare it for retrieval-augmented generation in a single call. It is ideal when you want page metadata (title, description) alongside structured content without chaining multiple API calls. Prefer it over a plain markdown converter when you need a RAG index, and over a raw scraper when you need clean, AI-ready output with metadata bundled together.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T18:43:02.175Z","isFirstParty":false,"canonicalSlug":"website-to-rag-pack-75572abd"}