Skip to main content
Jina Reader lets an agent turn any URL into clean, LLM-ready text.

Overview

Jina Reader API converts any URL into clean, LLM-ready text. It handles JavaScript rendering, removes ads, and extracts the main content.

Installation

Environment Variables

Get your API key from Jina AI.

How It Works

Quick Start

1

Simple Usage

2

With Configuration

Use the same tool with an agent — see Usage with Agent below, or pass env vars and options from the sections above.

Usage with Agent

Available Methods

read(url)

Read and extract content from a URL.

search(query)

Search the web and get content.

Configuration Options

Function-Based Usage

CLI Usage

Error Handling

Common Errors

Features

  • JavaScript rendering - Handles dynamic content
  • Ad removal - Extracts only main content
  • Clean output - LLM-ready text format
  • No API key required - Works with limits

Best Practices

Jina Reader works without a key at low rate limits. Set JINA_API_KEY in your shell or .env for production throughput.
Reader output can be large. Cap or summarise the returned content before feeding it back so the agent stays within its context window.
JinaTool(timeout=30) sets a request timeout. Check for an error key in the result and retry or fall back to another reader when Jina rate-limits.

Firecrawl

Web scraping API

Crawl4AI

Open-source crawler

Trafilatura

Content extraction