RAG pipelines
Index documentation, help centers and articles as Markdown, so chunks keep their headings and tables.
formats=markdown
Send a URL and get the content back as Markdown. Headings, lists, tables, links and code come through; scripts, styles and tag soup do not. Ready for a prompt, a vector store or an agent.
Add unwrap=true and the Markdown is the whole response body, with Content-Type: text/markdown.
curl -G https://api.grabber.sh/fetch \
-H "Authorization: Bearer $GRABBER_API_KEY" \
--data-urlencode "url=https://example.com/blog/rag-guide" \
-d "formats=markdown" \
-d "unwrap=true"Response body
# A practical guide to RAG
Retrieval-augmented generation answers questions from your own documents.
## 1. Split pages into chunks
- Keep each heading with its text
- Aim for 300 to 800 tokens per chunk
| Chunk size | Recall |
| --- | --- |
| 300 tokens | 0.81 |
[Next: choosing embeddings](https://example.com/blog/embeddings)Call GET /fetch with url and formats=markdown. Add unwrap=true to get the Markdown as the body.
It follows redirects, reads the HTML or the PDF, and converts the content to Markdown.
Put it in a prompt, split it into chunks for a vector store, or save it. X-Grabber-Cost says what it cost.
Index documentation, help centers and articles as Markdown, so chunks keep their headings and tables.
Give an agent a tool that reads a page in a few thousand tokens instead of tens of thousands of HTML.
Feed the current docs of a library to Cursor or Claude, so they code against the version you use.
Move pages from an old site into a Markdown-based CMS or a static site generator.
Prepaid credit, taken one request at a time. Ask for several formats in one request at the price of one.
| Request | Price |
|---|---|
| A page | $0.001 |
A page with js_render=true | $0.005 |
| Any error | $0 |
| Credit when you sign up | $1, about 1,000 pages |
Something else? The docs cover every parameter and error, and you can reach us from the dashboard.
Markdown keeps the structure a model needs, such as headings, lists, tables and links, and drops the markup it does not. The same page is usually several times smaller, so it costs fewer tokens and leaves more room in the context window.
Yes. Point url at a PDF and you get its text back as Markdown, at the same price as a web page.
Yes. Ask for formats=markdown,links and both come back in the JSON envelope. It is one page load, so it costs $0.001, the same as one format.
Add js_render=true. The page runs in a headless browser first, and the Markdown is made from what it shows. A rendered page costs $0.005.
Sign up in a minute and fetch your first 1,000 pages for free.