[{"data":1,"prerenderedAt":492},["ShallowReactive",2],{"navigation_docs":3,"-providers-jina":96,"-providers-jina-surround":487},[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":95},"Providers","\u002Fproviders","2.providers\u002F0.index",[49,51,55,59,63,67,71,75,79,83,87,91],{"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","i-lucide-library",{"id":97,"title":68,"body":98,"description":480,"extension":481,"links":482,"meta":483,"navigation":169,"path":69,"seo":485,"stem":70,"__hash__":486},"docs\u002F2.providers\u002F05.jina.md",{"type":99,"value":100,"toc":473},"minimark",[101,105,110,298,302,306,369,384,388,436,440,459,463,469],[102,103],"provider-facts",{"provider":104},"jina",[106,107,109],"h2",{"id":108},"address-it","Address it",[111,112,117],"pre",{"className":113,"code":114,"language":115,"meta":116,"style":116},"language-ts shiki shiki-themes github-light github-light poimandres","import { create, readUrl } from \"@agntn\u002Fweb\";\n\nconst jina = 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","",[118,119,120,164,171,204,255],"code",{"__ignoreMap":116},[121,122,125,129,133,137,140,143,146,150,154,158,161],"span",{"class":123,"line":124},"line",1,[121,126,128],{"class":127},"sP0CR","import",[121,130,132],{"class":131},"sKlNE"," {",[121,134,136],{"class":135},"snHMy"," create",[121,138,139],{"class":131},",",[121,141,142],{"class":135}," readUrl",[121,144,145],{"class":131}," }",[121,147,149],{"class":148},"stCPd"," from",[121,151,153],{"class":152},"scVjq"," \"",[121,155,157],{"class":156},"sQ7BG","@agntn\u002Fweb",[121,159,160],{"class":152},"\"",[121,162,163],{"class":131},";\n",[121,165,167],{"class":123,"line":166},2,[121,168,170],{"emptyLinePlaceholder":169},true,"\n",[121,172,174,178,182,185,188,191,193,195,197,200],{"class":123,"line":173},3,[121,175,177],{"class":176},"s1TYA","const",[121,179,181],{"class":180},"saoiD"," jina",[121,183,184],{"class":176}," =",[121,186,136],{"class":187},"sULi6",[121,189,190],{"class":131},"(",[121,192,160],{"class":152},[121,194,104],{"class":156},[121,196,160],{"class":152},[121,198,199],{"class":131},"); ",[121,201,203],{"class":202},"sjhu3","\u002F\u002F JINA_API_KEY, required for search\n",[121,205,207,209,212,214,218,221,224,227,229,231,234,236,239,242,245,247,250,252],{"class":123,"line":206},4,[121,208,177],{"class":176},[121,210,211],{"class":180}," results",[121,213,184],{"class":176},[121,215,217],{"class":216},"sZW6a"," await",[121,219,181],{"class":220},"spVlQ",[121,222,223],{"class":131},".",[121,225,226],{"class":187},"search",[121,228,190],{"class":131},[121,230,160],{"class":152},[121,232,233],{"class":156},"model context protocol",[121,235,160],{"class":152},[121,237,238],{"class":131},", {",[121,240,241],{"class":135}," category",[121,243,244],{"class":131},":",[121,246,153],{"class":152},[121,248,249],{"class":156},"news",[121,251,160],{"class":152},[121,253,254],{"class":131}," });\n",[121,256,258,260,263,265,267,269,271,273,276,278,280,283,285,287,290,292,295],{"class":123,"line":257},5,[121,259,177],{"class":176},[121,261,262],{"class":180}," page",[121,264,184],{"class":176},[121,266,217],{"class":216},[121,268,142],{"class":187},[121,270,190],{"class":131},[121,272,160],{"class":152},[121,274,275],{"class":156},"https:\u002F\u002Fmodelcontextprotocol.io",[121,277,160],{"class":152},[121,279,238],{"class":131},[121,281,282],{"class":135}," format",[121,284,244],{"class":131},[121,286,153],{"class":152},[121,288,289],{"class":156},"markdown",[121,291,160],{"class":152},[121,293,294],{"class":131}," }); ",[121,296,297],{"class":202},"\u002F\u002F Jina first, no key needed\n",[299,300,301],"p",{},"The key is sent as a Bearer token. Search needs it, reading works without one and sends it when present.",[106,303,305],{"id":304},"what-it-reads","What it reads",[307,308,309,322],"table",{},[310,311,312],"thead",{},[313,314,315,319],"tr",{},[316,317,318],"th",{},"Call",[316,320,321],{},"Endpoint",[323,324,325,341],"tbody",{},[313,326,327,332],{},[328,329,330],"td",{},[118,331,226],{},[328,333,334,337,338],{},[118,335,336],{},"GET https:\u002F\u002Fs.jina.ai\u002F…"," with ",[118,339,340],{},"Accept: application\u002Fjson",[313,342,343,348],{},[328,344,345],{},[118,346,347],{},"read",[328,349,350,337,353,356,357,356,360,356,363,356,366],{},[118,351,352],{},"GET https:\u002F\u002Fr.jina.ai\u002F\u003Curl>",[118,354,355],{},"X-Return-Format",", ",[118,358,359],{},"X-Target-Selector",[118,361,362],{},"X-Remove-Selector",[118,364,365],{},"X-Timeout",[118,367,368],{},"X-No-Cache",[299,370,371,372,375,376,379,380,383],{},"The reader host is derived from the search host, so a custom ",[118,373,374],{},"baseURL"," for ",[118,377,378],{},"s."," moves ",[118,381,382],{},"r."," with it.",[106,385,387],{"id":386},"what-comes-back","What comes back",[299,389,390,391,394,395,356,398,401,402,405,406,409,410,413,414,356,417,420,421,423,424,356,426,420,428,431,432,435],{},"Search results carry the page content in ",[118,392,393],{},"text",", plus ",[118,396,397],{},"publishedDate",[118,399,400],{},"image"," and ",[118,403,404],{},"metadata",". ",[118,407,408],{},"includeDomains"," and a ",[118,411,412],{},"category"," of ",[118,415,416],{},"web",[118,418,419],{},"images"," or ",[118,422,249],{}," work. Reads give ",[118,425,289],{},[118,427,393],{},[118,429,430],{},"html"," and take ",[118,433,434],{},"maxTokens"," natively.",[106,437,439],{"id":438},"gotchas","Gotchas",[441,442,443,447,450],"ul",{},[444,445,446],"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.",[444,448,449],{},"A 409 from the reader (could not fetch the page right now) is eligible for fallback too.",[444,451,452,454,455,458],{},[118,453,393],{}," on search results is the whole page. Ten results can be huge, keep ",[118,456,457],{},"maxResults"," low.",[106,460,462],{"id":461},"where-it-lives","Where it lives",[299,464,465,468],{},[118,466,467],{},"src\u002Fproviders\u002Fjina.ts",", the template for a reader.",[470,471,472],"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 .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 .sZW6a, html code.shiki .sZW6a{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#5DE4C7C0}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":116,"searchDepth":166,"depth":166,"links":474},[475,476,477,478,479],{"id":108,"depth":166,"text":109},{"id":304,"depth":166,"text":305},{"id":386,"depth":166,"text":387},{"id":438,"depth":166,"text":439},{"id":461,"depth":166,"text":462},"Jina's s.jina.ai for search and r.jina.ai for reading, the default reader, with an optional key.","md",null,{"icon":484},"i-lucide-file-text",{"title":68,"description":480},"9YEep62Iqe1nHcbPZ-q8l5CMsgNalZ8JEw0Nh4am9xo",[488,490],{"title":64,"path":65,"stem":66,"description":489,"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":491,"children":-1},"The Mojeek Search API, an independent index with classic SERP metadata, domain and date filters and paging.",1788509441443]