Discover / Data & Research
Jina Reader
by jina-aiTypeScript
Converts any URL into clean LLM friendly markdown for retrieval and agents
Maturity: experimental because active but has never tagged a release. Derived from release and commit history, not a rating.
- Stars
- 12k
- Forks
- 863
- Downloads / mo
- —
- Last commit
- 2026-05-22
- License
- Apache-2.0
- Open issues
- 27
Market and trust evidence
Edition not yet matchedNo exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.
Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.
In practice
Written by AI from this repository’s README · high confidenceFeeding web pages to an LLM means handling headless browsers, blocking, PDFs and stripping HTML noise yourself.
Use it when
Use it when an agent or RAG pipeline needs clean markdown from arbitrary URLs or from the top search results.
Not the right pick when
The open source branch is not the full product, since the MongoDB backed SaaS storage layer is stripped out.
Capabilities
- URL to markdown by prefixing https://r.jina.ai/
- search to markdown by prefixing https://s.jina.ai/
- fetches and reads the top 5 search results automatically
- web pages rendered with headless Chrome or curl-impersonate
- PDF and MS Office parsing, plus direct file uploads
- images captioned by a vision language model
Requirements
- Rate limits apply to the hosted API
Cost: Open source with a paid cloud option
Video walkthroughs
How to scrape the web for LLM in 2024: Jina AI (Reader API), Mendable (firecrawl) and Scrapegraph-ai
Jina Reader API: Build better AI Agents and RAG systems with Reader
Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.
What the repository ships
Detected from the actual files in the repository root.
Tags
README
Reader
Your LLMs deserve better input.
Reader does two things:
- Read: It converts any URL to an LLM-friendly input with
https://r.jina.ai/https://your.url. Get improved output for your agent and RAG systems at no cost. - Search: It searches the web for a given query with
https://s.jina.ai/your+query. This allows your LLMs to access the latest world knowledge from the web.
Check out the live demo
Or just visit these URLs (Read) https://r.jina.ai/https://github.com/jina-ai/reader, (Search) https://s.jina.ai/Who%20will%20win%202024%20US%20presidential%20election%3F and see yourself.
Feel free to use Reader API in production. It is free, stable and scalable. We are maintaining it actively as one of the core products of Jina AI. Check out rate limit
<img width="973" alt="image" src="https://github.com/jina-ai/reader/assets/2041322/2067c7a2-c12e-4465-b107-9a16ca178d41">
<img width="973" alt="image" src="https://github.com/jina-ai/reader/assets/2041322/675ac203-f246-41c2-b094-76318240159f">
This repository is the open source branch of the codebase behind
https://r.jina.aiandhttps://s.jina.ai. It runs in stateless or bucket-cached mode; the MongoDB-backed SaaS storage layer is not included here.
Updates
- 2026-04 — Re-synchronized the open source branch with the SaaS code. The MongoDB-backed storage layer is stripped; the oss branch runs in stateless mode out of the box, with optional MinIO/S3-compatible bucket caching via
docker compose. See Local development. - 2025-12 — Storage layer decoupled and binary file uploads landed. PDFs and MS Office documents (Word, Excel, PowerPoint) can now be POSTed directly via the
filebody field — no need to host them first. See cookbooks.md. - 2025-03 — Major refactor: Reader is no longer a Firebase application. The SaaS migrated off Firestore + Cloud Functions to a Cloud Run image with MongoDB Atlas, removing the platform-coupled bits and unblocking the local-Docker path above.
- 2024-05 —
s.jina.ailaunched, extending Reader from URL→markdown to search→markdown. PDFs added the same month — any URL ending in.pdfis parsed with PDF.js and returned as markdown. - 2024-04 — Reader released and
r.jina.aiwent live as Jina AI's first SaaS API for converting URLs to LLM-friendly input.
What Reader can read
- Web pages — rendered with headless Chrome, or fetched lightweight via
curl-impersonate. Reader picks intelligently between the two. - PDFs — any URL, parsed with PDF.js. See this NASA PDF result vs the original.
- MS Office documents — Word, Excel, PowerPoint, converted via LibreOffice and then processed as HTML/PDF.
- Images — captioned by a vision-language model, so your downstream text-only LLM gets just enough hints to reason about them.
Usage
Using r.jina.ai for single URL fetching
Simply prepend https://r.jina.ai/ to any URL. For example, to convert the URL https://en.wikipedia.org/wiki/Artificial_intelligence to an LLM-friendly input, use the following URL:
https://r.jina.ai/https://en.wikipedia.org/wiki/Artificial_intelligence
Using r.jina.ai for a full website fetching (Google Colab)
Using s.jina.ai for web search
Simply prepend https://s.jina.ai/ to your search query. Note that if you are using this in the code, make sure to encode your search query first, e.g. if your query is Who will win 2024 US presidential election? then your url should look like:
https://s.jina.ai/Who%20will%20win%202024%20US%20presidential%20election%3F
Behind the scenes, Reader searches the web, fetches the top 5 results, visits each URL, and applies r.jina.ai to it. This is different from many web search function-calling in agent/RAG frameworks, which often return only the title, URL, and description provided by the search engine API. If you want to read one result more deeply, you have to fetch the content yourself from that URL. With Reader, http://s.jina.ai automatically fetches the content from the top 5 search result URLs for you (reusing the tech stack behind http://r.jina.ai). This means you don't have to handle browser rendering, blocking, or any issues related to JavaScript and CSS yourself.
Using s.jina.ai for in-site search
Simply specify site in the query parameters such as:
curl 'https://s.jina.ai/When%20was%20Jina%20AI%20founded%3F?site=jina.ai&site=github.com'
Interactive Code Snippet Builder
We highly recommend using the code builder to explore different parameter combinations of the Reader API.
<a href="https://jina.ai/reader#apiform"><img width="973" alt="image" src="https://github.com/jina-ai/reader/assets/2041322/a490fd3a-1c4c-4a3f-a95a-c481c2a8cc8f"></a>
Using request headers
You can control the behavior of the Reader API using request headers. The list below covers the most useful ones — for the full surface with up-to-date defaults and validation rules, see the live API docs at https://r.jina.ai/docs, or the source of truth in src/dto/crawler-options.ts.
x-respond-with— select the output format.markdownreturns markdown without going throughreadabilityhtmlreturnsdocumentElement.outerHTMLtextreturnsdocument.body.innerTextscreenshotreturns the URL of the webpage's screenshotpageshotsimilar toscreenshotbut tries to capture the whole page instead of just the viewportfrontmatterreturns Markdown with a YAML frontmatter block. The default plain-text response uses a customTitle: …/URL Source: …header format;frontmatterreplaces that with a front matter block. Example:
curl -H 'X-Respond-With: frontmatter' 'https://r.jina.ai/https://example.com'
---
title: "Example Domain"
description: "This domain is for use in illustrative examples."
url: "https://example.com/"
---
## Example Domain
This domain is for use in illustrative examples in documents. ...
markdown+frontmatter— likefrontmatterbut covers the full page without readability filtering.x-engine— enforces a fetching engine:browser(headless Chrome),curl(lightweight, no JS), orauto(the default — Combined use of both browser and curl).x-proxy-url— route the traffic through your designated proxy.x-cache-tolerance— integer seconds; how stale a cached page is acceptable.x-no-cache: true— bypass the cached page (lifetime 3600s). Equivalent tox-cache-tolerance: 0.x-target-selector— a CSS selector. Reader returns content within the matched element instead of the full page. Useful when automatic content extraction misses what you want.x-wait-for-selector— a CSS selector. Reader waits until the matched element is rendered before returning. Ifx-target-selectoris set, this can be omitted to wait for the same element.x-timeout— integer seconds (max 180). When set, Reader will not return early; it waits for network idle or until the timeout is reached.x-max-tokens— integer (≥500). Trim the response so it never exceeds this many tokens. Useful as a per-request guardrail when feeding a fixed-size context window — Reader truncates rather than rejects.x-token-budget— integer. Reject the request if the resulting content would exceed this many tokens. Use this when over-budget output is worse than no output (e.g. cost control). Ignored on the search endpoint.x-respond-timing— explicit control over when Reader is willing to return. Trade off latency against completeness:html— return as soon as the raw HTML lands. No JS execution, no waiting.visible-content— return the moment readable content is parseable. Lowest latency that still produces text.mutation-idle— wait for DOM mutations to settle for ≥0.2s. Good default for SPAs that lazy-render above the fold.resource-idle— wait for content-affecting resources to finish loading (≥0.5s quiet). The default heuristic for content-shaped requests.media-idle— wait for media (images, video, fonts) to also finish. Use withscreenshot/pageshot/vlm.network-idle— fullnetworkidle0. Slowest, most complete. Implied whenx-timeout≥ 20.
When omitted, Reader picks one based on x-respond-with, x-timeout, and x-with-iframe. See presumedRespondTiming in src/dto/crawler-options.ts for the exact rules.
x-with-generated-alt: true— caption images on the page with a VLM.x-retain-images— control how images survive into the output:all(default) — keepaltmarkdown for every image.none— drop images entirely.alt— keep alt text only, no URLs. Cheap on tokens; useful when the downstream LLM has no use for the image link.x-retain-links— control how links survive into the output:all(default) — keeptextmarkdown.none— drop links entirely.text— keep link anchor text only, drop URLs. Best for embedding / semantic-index pipelines where URLs are noise.gpt-oss— emit citations in gpt-oss's【{id}†...】format and append a numbered URL footer (also auto-enablesx-with-links-summary).x-retain-media— control how<video>,<audio>, and embedded video iframes (<iframe>from YouTube, Vimeo, Bilibili, etc.) appear in the output:link(default) — markdown link, e.g.Video 1. Embedded iframes are rewritten to their canonical watch URL. Respectsx-md-link-style.none— drop media entirely; non-video iframes fall back to their inner text content.text— bare label only, e.g.Video 1orAudio 1. No URL.image— markdown image syntax, e.g.Video 1.html— the original HTML element with cosmetic attributes (class,id,style,data-,aria-) stripped. Embedded video iframes keep their original embedsrcrather than the canonical watch URL.x-with-links-summary/x-with-images-summary— append a deduplicated footer of all links / images to the output. Combine withx-retain-links: textorx-retain-images: altto get inline anchor/alt text plus one canonical URL list at the end — convenient when you want the model to see URLs without paying for them inline.x-with-links-summary: allkeeps every link instead of only the unique ones.x-markdown-chunking— opt-in semantic chunking of the markdown response. Returns a JSON array (or-delimited text) of chunks instead of one blob:true/h1…h5— heading-based split at the given heading level (e.g.h3chunks at#,##, and###).structured/s1…s5— block-level structured split.s1is coarsest,s5finest.x-preset— apply a pre-packaged option bundle for common scenarios. Preset values only take effect for options the caller does not set explicitly (via body or another header). See cookbooks.md for examples.reader— for displaying content to human users.index— for semantic indexing / embedding pipelines.research— for AI research agents needing structured, citable output.agent— for AI agents doing everyday browsing tasks.spider— for recursive site crawling with a full link inventory.x-detach-invisibles— detach elements with eventualdisplay:nonebefore snapshotting. Implies browser engine; disables caching.x-set-cookie— forward cookie settings. Requests with cookies are not cached.x-md-*— fine-tune markdown output (heading style, bullet markers, link style, etc.). See src/dto/turndown-tweakable-options.ts.
Using r.jina.ai for single page application (SPA) fetching
Many websites nowadays rely on JavaScript frameworks and client-side rendering, usually known as Single Page Applications (SPA). Thanks to Puppeteer and headless Chrome, Reader natively supports fetching these websites. However, due to specific approaches some SPAs are developed with, there may be some extra precautions to take.
SPAs with hash-based routing
By definition of the web standards, content after # in a URL is not sent to the server. To mitigate this, use POST with the url parameter in the body:
curl -X POST 'https://r.jina.ai/' -d 'url=https://example.com/#/route'
SPAs with preloading contents
Some SPAs (and even some non-SPAs) show preload content before later loading the main content dynamically. In this case, Reader may capture the preload content instead. Two ways to mitigate:
# wait for network idle or until timeout
curl 'https://r.jina.ai/https://example.com/' -H 'x-timeout: 10'
# wait for a specific element
curl 'https://r.jina.ai/https://example.com/' -H 'x-wait-for-selector: #content'
# combined use of both to wait for non-existent element (which means waiting for the full timeout duration)
curl 'https://r.jina.ai/https://example.com/' -H 'x-timeout: 30' -H 'x-wait-for-selector: non-existent-elemen
Truncated. Read the full README on GitHub ↗