
Jina Reader Tutorial: Turn Any Web Page Into Clean Markdown for Your LLM With r.jina.ai
Also available in Hindi: यह लेख हिंदी में पढ़ें
Jina Reader converts a web page into Markdown that a language model can read: put https://r.jina.ai/ in front of any URL and you get the page's main content back. It is handy when an LLM needs to summarise an article, answer from documentation or feed a RAG index. This guide covers the basic call, the headers that matter most, and the limits.
Step 1: Make your first call
curl https://r.jina.ai/https://example.com
We ran this on 19 Nov 2026 without an API key. The reply starts with Title:, URL Source: and Published Time: lines, then Markdown Content: with the page text. Reader renders pages with headless Chrome or a lightweight fetcher and can also read PDFs, Word, Excel and PowerPoint files. For JSON instead of text, send Accept: application/json.
Step 2: Keep only the part you need
Most pages carry menus, footers and comment boxes. Reader's headers fix that:
X-Target-Selector: articlereturns only the matching element.X-Remove-Selector: nav, footerstrips noise before conversion.X-Wait-For-Selectorwaits for a late-loading element on JavaScript-heavy pages.X-Retain-Images: nonedrops images, andX-Retain-Links: textkeeps anchor text but removes URLs, which suits embedding pipelines.
Step 3: Control token cost
X-Max-Tokens trims the output to a ceiling, while X-Token-Budget rejects the request if the content would be larger. Pages are cached for an hour; send X-No-Cache: true when you need a fresh copy. If a page needs time to render, X-Timeout accepts up to 180 seconds.
Step 4: Add a key and try search
Without a key, r.jina.ai allows 20 requests per minute per IP. With a key in Authorization: Bearer ... it rises to 500, and Jina says every new key includes 10 million free tokens. The search endpoint s.jina.ai needs a key (our keyless test returned 401); it searches the web and returns the top results as Markdown, and a site= parameter limits it to one domain.
Never put the key in front-end code.
Related reading: Firecrawl for whole-site Markdown, Tavily web search for agents, a persistent Chroma vector store and the Jina AI tool page.
Sources
- Reader API, Jina AI
- jina-ai/reader README, GitHub
- Jina AI API reference
- Jina AI Reader, Simon Willison's Weblog
FAQ
Is Jina Reader free?
You can call r.jina.ai without a key at 20 requests per minute. A free key raises that to 500 and includes free tokens.
Can Jina Reader read PDFs?
Yes. Pass a PDF URL the same way; Office files are supported too.
Why do I get the wrong part of the page?
Add X-Target-Selector for the main element, or X-Wait-For-Selector if the content loads late.
Does s.jina.ai work without an API key?
No. Search needs a key; only the Read endpoint answers keyless requests.