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