[{"data":1,"prerenderedAt":502},["ShallowReactive",2],{"navigation_docs":3,"-providers-jina":104,"-providers-jina-surround":497},[4,44],{"title":5,"path":6,"stem":7,"children":8,"icon":43},"Guide","\u002Fguide","1.guide\u002F1.index",[9,11,15,19,23,27,31,35,39],{"title":10,"path":6,"stem":7},"Getting Started",{"title":12,"path":13,"stem":14},"Searching","\u002Fguide\u002Fsearch","1.guide\u002F2.search",{"title":16,"path":17,"stem":18},"Fan-out","\u002Fguide\u002Ffanout","1.guide\u002F3.fanout",{"title":20,"path":21,"stem":22},"Reading","\u002Fguide\u002Fread","1.guide\u002F4.read",{"title":24,"path":25,"stem":26},"Reverse Image Search","\u002Fguide\u002Fimage","1.guide\u002F5.image",{"title":28,"path":29,"stem":30},"CLI","\u002Fguide\u002Fcli","1.guide\u002F6.cli",{"title":32,"path":33,"stem":34},"Agents","\u002Fguide\u002Fagents","1.guide\u002F7.agents",{"title":36,"path":37,"stem":38},"Custom Providers","\u002Fguide\u002Fcustom","1.guide\u002F8.custom",{"title":40,"path":41,"stem":42},"Explorer","\u002Fguide\u002Fexplorer","1.guide\u002F9.explorer","i-lucide-book-open",{"title":45,"path":46,"stem":47,"children":48,"icon":103},"Providers","\u002Fproviders","2.providers\u002F0.index",[49,51,55,59,63,67,71,75,79,83,87,91,95,99],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Brave","\u002Fproviders\u002Fbrave","2.providers\u002F01.brave",{"title":56,"path":57,"stem":58},"Context.dev","\u002Fproviders\u002Fcontext","2.providers\u002F02.context",{"title":60,"path":61,"stem":62},"Exa","\u002Fproviders\u002Fexa","2.providers\u002F03.exa",{"title":64,"path":65,"stem":66},"Firecrawl","\u002Fproviders\u002Ffirecrawl","2.providers\u002F04.firecrawl",{"title":68,"path":69,"stem":70},"Jina","\u002Fproviders\u002Fjina","2.providers\u002F05.jina",{"title":72,"path":73,"stem":74},"Mojeek","\u002Fproviders\u002Fmojeek","2.providers\u002F06.mojeek",{"title":76,"path":77,"stem":78},"SearXNG","\u002Fproviders\u002Fsearxng","2.providers\u002F07.searxng",{"title":80,"path":81,"stem":82},"SerpAPI","\u002Fproviders\u002Fserpapi","2.providers\u002F08.serpapi",{"title":84,"path":85,"stem":86},"SerpBase","\u002Fproviders\u002Fserpbase","2.providers\u002F09.serpbase",{"title":88,"path":89,"stem":90},"Tavily","\u002Fproviders\u002Ftavily","2.providers\u002F10.tavily",{"title":92,"path":93,"stem":94},"TinyFish","\u002Fproviders\u002Ftinyfish","2.providers\u002F11.tinyfish",{"title":96,"path":97,"stem":98},"OpenAI Codex","\u002Fproviders\u002Fopenai-codex","2.providers\u002F12.openai-codex",{"title":100,"path":101,"stem":102},"Marginalia","\u002Fproviders\u002Fmarginalia","2.providers\u002F13.marginalia","i-lucide-library",{"id":105,"title":68,"body":106,"description":490,"extension":491,"links":492,"meta":493,"navigation":177,"path":69,"seo":495,"stem":70,"__hash__":496},"docs\u002F2.providers\u002F05.jina.md",{"type":107,"value":108,"toc":483},"minimark",[109,113,118,308,312,316,379,394,398,446,450,469,473,479],[110,111],"provider-facts",{"provider":112},"jina",[114,115,117],"h2",{"id":116},"address-it","Address it",[119,120,125],"pre",{"className":121,"code":122,"language":123,"meta":124,"style":124},"language-ts shiki shiki-themes github-light github-light poimandres","import { create, readUrl } from \"@agntn\u002Fweb\";\n\nconst jina = await create(\"jina\"); \u002F\u002F JINA_API_KEY, required for search\nconst results = await jina.search(\"model context protocol\", { category: \"news\" });\nconst page = await readUrl(\"https:\u002F\u002Fmodelcontextprotocol.io\", { format: \"markdown\" }); \u002F\u002F Jina first, no key needed\n","ts","",[126,127,128,172,179,216,265],"code",{"__ignoreMap":124},[129,130,133,137,141,145,148,151,154,158,162,166,169],"span",{"class":131,"line":132},"line",1,[129,134,136],{"class":135},"sP0CR","import",[129,138,140],{"class":139},"sKlNE"," {",[129,142,144],{"class":143},"snHMy"," create",[129,146,147],{"class":139},",",[129,149,150],{"class":143}," readUrl",[129,152,153],{"class":139}," }",[129,155,157],{"class":156},"stCPd"," from",[129,159,161],{"class":160},"scVjq"," \"",[129,163,165],{"class":164},"sQ7BG","@agntn\u002Fweb",[129,167,168],{"class":160},"\"",[129,170,171],{"class":139},";\n",[129,173,175],{"class":131,"line":174},2,[129,176,178],{"emptyLinePlaceholder":177},true,"\n",[129,180,182,186,190,193,197,200,203,205,207,209,212],{"class":131,"line":181},3,[129,183,185],{"class":184},"s1TYA","const",[129,187,189],{"class":188},"saoiD"," jina",[129,191,192],{"class":184}," =",[129,194,196],{"class":195},"sZW6a"," await",[129,198,144],{"class":199},"sULi6",[129,201,202],{"class":139},"(",[129,204,168],{"class":160},[129,206,112],{"class":164},[129,208,168],{"class":160},[129,210,211],{"class":139},"); ",[129,213,215],{"class":214},"sjhu3","\u002F\u002F JINA_API_KEY, required for search\n",[129,217,219,221,224,226,228,231,234,237,239,241,244,246,249,252,255,257,260,262],{"class":131,"line":218},4,[129,220,185],{"class":184},[129,222,223],{"class":188}," results",[129,225,192],{"class":184},[129,227,196],{"class":195},[129,229,189],{"class":230},"spVlQ",[129,232,233],{"class":139},".",[129,235,236],{"class":199},"search",[129,238,202],{"class":139},[129,240,168],{"class":160},[129,242,243],{"class":164},"model context protocol",[129,245,168],{"class":160},[129,247,248],{"class":139},", {",[129,250,251],{"class":143}," category",[129,253,254],{"class":139},":",[129,256,161],{"class":160},[129,258,259],{"class":164},"news",[129,261,168],{"class":160},[129,263,264],{"class":139}," });\n",[129,266,268,270,273,275,277,279,281,283,286,288,290,293,295,297,300,302,305],{"class":131,"line":267},5,[129,269,185],{"class":184},[129,271,272],{"class":188}," page",[129,274,192],{"class":184},[129,276,196],{"class":195},[129,278,150],{"class":199},[129,280,202],{"class":139},[129,282,168],{"class":160},[129,284,285],{"class":164},"https:\u002F\u002Fmodelcontextprotocol.io",[129,287,168],{"class":160},[129,289,248],{"class":139},[129,291,292],{"class":143}," format",[129,294,254],{"class":139},[129,296,161],{"class":160},[129,298,299],{"class":164},"markdown",[129,301,168],{"class":160},[129,303,304],{"class":139}," }); ",[129,306,307],{"class":214},"\u002F\u002F Jina first, no key needed\n",[309,310,311],"p",{},"The key is sent as a Bearer token. Search needs it, reading works without one and sends it when present.",[114,313,315],{"id":314},"what-it-reads","What it reads",[317,318,319,332],"table",{},[320,321,322],"thead",{},[323,324,325,329],"tr",{},[326,327,328],"th",{},"Call",[326,330,331],{},"Endpoint",[333,334,335,351],"tbody",{},[323,336,337,342],{},[338,339,340],"td",{},[126,341,236],{},[338,343,344,347,348],{},[126,345,346],{},"GET https:\u002F\u002Fs.jina.ai\u002F…"," with ",[126,349,350],{},"Accept: application\u002Fjson",[323,352,353,358],{},[338,354,355],{},[126,356,357],{},"read",[338,359,360,347,363,366,367,366,370,366,373,366,376],{},[126,361,362],{},"GET https:\u002F\u002Fr.jina.ai\u002F\u003Curl>",[126,364,365],{},"X-Return-Format",", ",[126,368,369],{},"X-Target-Selector",[126,371,372],{},"X-Remove-Selector",[126,374,375],{},"X-Timeout",[126,377,378],{},"X-No-Cache",[309,380,381,382,385,386,389,390,393],{},"The reader host is derived from the search host, so a custom ",[126,383,384],{},"baseURL"," for ",[126,387,388],{},"s."," moves ",[126,391,392],{},"r."," with it.",[114,395,397],{"id":396},"what-comes-back","What comes back",[309,399,400,401,404,405,366,408,411,412,415,416,419,420,423,424,366,427,430,431,433,434,366,436,430,438,441,442,445],{},"Search results carry the page content in ",[126,402,403],{},"text",", plus ",[126,406,407],{},"publishedDate",[126,409,410],{},"image"," and ",[126,413,414],{},"metadata",". ",[126,417,418],{},"includeDomains"," and a ",[126,421,422],{},"category"," of ",[126,425,426],{},"web",[126,428,429],{},"images"," or ",[126,432,259],{}," work. Reads give ",[126,435,299],{},[126,437,403],{},[126,439,440],{},"html"," and take ",[126,443,444],{},"maxTokens"," natively.",[114,447,449],{"id":448},"gotchas","Gotchas",[451,452,453,457,460],"ul",{},[454,455,456],"li",{},"Without a key r.jina.ai is rate limited per address. With a key, an empty balance answers 402, which is eligible for fallback to the next configured reader.",[454,458,459],{},"A 409 from the reader (could not fetch the page right now) is eligible for fallback too.",[454,461,462,464,465,468],{},[126,463,403],{}," on search results is the whole page. Ten results can be huge, keep ",[126,466,467],{},"maxResults"," low.",[114,470,472],{"id":471},"where-it-lives","Where it lives",[309,474,475,478],{},[126,476,477],{},"src\u002Fproviders\u002Fjina.ts",", the template for a reader.",[480,481,482],"style",{},"html pre.shiki code .sP0CR, html code.shiki .sP0CR{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7}html pre.shiki code .sKlNE, html code.shiki .sKlNE{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#A6ACCD}html pre.shiki code .snHMy, html code.shiki .snHMy{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#ADD7FF}html pre.shiki code .stCPd, html code.shiki .stCPd{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#A6ACCD}html pre.shiki code .scVjq, html code.shiki .scVjq{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#A6ACCD}html pre.shiki code .sQ7BG, html code.shiki .sQ7BG{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#5DE4C7}html pre.shiki code .s1TYA, html code.shiki .s1TYA{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#91B4D5}html pre.shiki code .saoiD, html code.shiki .saoiD{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#E4F0FB}html pre.shiki code .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}html pre.shiki code .sULi6, html code.shiki .sULi6{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#E4F0FBD0}html pre.shiki code .sjhu3, html code.shiki .sjhu3{--shiki-light:#6A737D;--shiki-light-font-style:inherit;--shiki-default:#6A737D;--shiki-default-font-style:inherit;--shiki-dark:#767C9DB0;--shiki-dark-font-style:italic}html pre.shiki code .spVlQ, html code.shiki .spVlQ{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E4F0FB}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":124,"searchDepth":174,"depth":174,"links":484},[485,486,487,488,489],{"id":116,"depth":174,"text":117},{"id":314,"depth":174,"text":315},{"id":396,"depth":174,"text":397},{"id":448,"depth":174,"text":449},{"id":471,"depth":174,"text":472},"Jina's s.jina.ai for search and r.jina.ai for reading, the default reader, with an optional key.","md",null,{"icon":494},"i-lucide-file-text",{"title":68,"description":490},"01x9D99IcLlU3aGvM46zqIIW8xKuKRu5RLeZ5ehsCUA",[498,500],{"title":64,"path":65,"stem":66,"description":499,"children":-1},"The Firecrawl v2 API for search with scraped passages and for scraping a page into Markdown or HTML.",{"title":72,"path":73,"stem":74,"description":501,"children":-1},"The Mojeek Search API, an independent index with classic SERP metadata, domain and date filters and paging.",1790257650384]