Jina
URL scraper and web search
LLM-friendly URL reader and search client by Jina AI with a basic free tier.
- package:
@deepagent/jina - exports:
class JinaClient,namespace jina - env vars:
JINA_API_KEY - source
- jina api docs
Install
npm install @deepagent/jinayarn add @deepagent/jinapnpm add @deepagent/jinaUsage
import { JinaClient } from '@deepagent/jina'
const jina = new JinaClient()
const res0 = await jina.readUrl('https://example.com')
const res1 = await jina.search({ query: 'latest news', json: true })Notes
- Does not support "stream mode".
- Results default to markdown text format.
- To return JSON (especially useful for
search), setjson: truein the options.