[{"data":1,"prerenderedAt":423},["ShallowReactive",2],{"navigation_docs":3,"-providers-context":104,"-providers-context-surround":418},[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":56,"body":106,"description":411,"extension":412,"links":413,"meta":414,"navigation":156,"path":57,"seo":416,"stem":58,"__hash__":417},"docs\u002F2.providers\u002F02.context.md",{"type":107,"value":108,"toc":404},"minimark",[109,113,118,256,264,268,311,315,362,366,391,395,400],[110,111],"provider-facts",{"provider":112},"context",[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 web web web","import { create, readUrl } from \"@agntn\u002Fweb\";\n\nconst context = await create(\"context\"); \u002F\u002F CONTEXT_DEV_API_KEY\nconst results = await context.search(\"nitro cloudflare preset\", { includeDomains: [\"nitro.build\"] });\nconst page = await readUrl(\"https:\u002F\u002Fnitro.build\u002Fdeploy\", { provider: \"context\", format: \"markdown\" });\n","ts","",[126,127,128,151,158,190,222],"code",{"__ignoreMap":124},[129,130,133,137,141,144,148],"span",{"class":131,"line":132},"line",1,[129,134,136],{"class":135},"skH_V","import",[129,138,140],{"class":139},"s38Sx"," { create, readUrl } ",[129,142,143],{"class":135},"from",[129,145,147],{"class":146},"shU9J"," \"@agntn\u002Fweb\"",[129,149,150],{"class":139},";\n",[129,152,154],{"class":131,"line":153},2,[129,155,157],{"emptyLinePlaceholder":156},true,"\n",[129,159,161,164,167,170,173,177,180,183,186],{"class":131,"line":160},3,[129,162,163],{"class":135},"const",[129,165,166],{"class":139}," context ",[129,168,169],{"class":135},"=",[129,171,172],{"class":135}," await",[129,174,176],{"class":175},"sK71F"," create",[129,178,179],{"class":139},"(",[129,181,182],{"class":146},"\"context\"",[129,184,185],{"class":139},"); ",[129,187,189],{"class":188},"scIB-","\u002F\u002F CONTEXT_DEV_API_KEY\n",[129,191,193,195,198,200,202,205,208,210,213,216,219],{"class":131,"line":192},4,[129,194,163],{"class":135},[129,196,197],{"class":139}," results ",[129,199,169],{"class":135},[129,201,172],{"class":135},[129,203,204],{"class":139}," context.",[129,206,207],{"class":175},"search",[129,209,179],{"class":139},[129,211,212],{"class":146},"\"nitro cloudflare preset\"",[129,214,215],{"class":139},", { includeDomains: [",[129,217,218],{"class":146},"\"nitro.build\"",[129,220,221],{"class":139},"] });\n",[129,223,225,227,230,232,234,237,239,242,245,247,250,253],{"class":131,"line":224},5,[129,226,163],{"class":135},[129,228,229],{"class":139}," page ",[129,231,169],{"class":135},[129,233,172],{"class":135},[129,235,236],{"class":175}," readUrl",[129,238,179],{"class":139},[129,240,241],{"class":146},"\"https:\u002F\u002Fnitro.build\u002Fdeploy\"",[129,243,244],{"class":139},", { provider: ",[129,246,182],{"class":146},[129,248,249],{"class":139},", format: ",[129,251,252],{"class":146},"\"markdown\"",[129,254,255],{"class":139}," });\n",[257,258,259,260,263],"p",{},"Bearer auth against ",[126,261,262],{},"api.context.dev\u002Fv1",".",[114,265,267],{"id":266},"what-it-reads","What it reads",[269,270,271,284],"table",{},[272,273,274],"thead",{},[275,276,277,281],"tr",{},[278,279,280],"th",{},"Call",[278,282,283],{},"Endpoint",[285,286,287,299],"tbody",{},[275,288,289,294],{},[290,291,292],"td",{},[126,293,207],{},[290,295,296],{},[126,297,298],{},"POST \u002Fweb\u002Fsearch",[275,300,301,306],{},[290,302,303],{},[126,304,305],{},"read",[290,307,308],{},[126,309,310],{},"GET \u002Fweb\u002Fscrape\u002Fmarkdown?…",[114,312,314],{"id":313},"what-comes-back","What comes back",[257,316,317,318,321,322,325,326,329,330,329,333,336,337,340,341,344,345,348,349,329,352,329,355,358,359,263],{},"Each search result carries the page's Markdown in ",[126,319,320],{},"text"," when Context.dev has it, plus ",[126,323,324],{},"metadata.relevance"," (",[126,327,328],{},"high",", ",[126,331,332],{},"medium",[126,334,335],{},"low",") and ",[126,338,339],{},"metadata.markdownCode",". Domain filters work. No categories, sources or dates. Reads give ",[126,342,343],{},"markdown"," or ",[126,346,347],{},"html"," and take ",[126,350,351],{},"targetSelector",[126,353,354],{},"removeSelector",[126,356,357],{},"timeout"," and ",[126,360,361],{},"noCache",[114,363,365],{"id":364},"gotchas","Gotchas",[367,368,369,385],"ul",{},[370,371,372,373,376,377,380,381,384],"li",{},"Spent credits are not a bad key. Context.dev returns 401 with ",[126,374,375],{},"error_code: \"USAGE_EXCEEDED\"","; the adapter reports ",[126,378,379],{},"PaymentError",", preserving the HTTP status and body. Automatic search and read can try the next configured provider. Other 401 responses remain ",[126,382,383],{},"AuthError"," and stop the chain; an explicit provider never switches.",[370,386,387,390],{},[126,388,389],{},"maxResults"," goes up to 100, default 10.",[114,392,394],{"id":393},"where-it-lives","Where it lives",[257,396,397,263],{},[126,398,399],{},"src\u002Fproviders\u002Fcontext.ts",[401,402,403],"style",{},"html pre.shiki code .skH_V, html code.shiki .skH_V{--shiki-light:var(--shiki-token-keyword);--shiki-default:var(--shiki-token-keyword);--shiki-dark:var(--shiki-token-keyword)}html pre.shiki code .s38Sx, html code.shiki .s38Sx{--shiki-light:var(--ui-text-highlighted);--shiki-default:var(--ui-text-highlighted);--shiki-dark:var(--ui-text-highlighted)}html pre.shiki code .shU9J, html code.shiki .shU9J{--shiki-light:var(--shiki-token-string);--shiki-default:var(--shiki-token-string);--shiki-dark:var(--shiki-token-string)}html pre.shiki code .sK71F, html code.shiki .sK71F{--shiki-light:var(--shiki-token-function);--shiki-default:var(--shiki-token-function);--shiki-dark:var(--shiki-token-function)}html pre.shiki code .scIB-, html code.shiki .scIB-{--shiki-light:var(--shiki-token-comment);--shiki-default:var(--shiki-token-comment);--shiki-dark:var(--shiki-token-comment)}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":153,"depth":153,"links":405},[406,407,408,409,410],{"id":116,"depth":153,"text":117},{"id":266,"depth":153,"text":267},{"id":313,"depth":153,"text":314},{"id":364,"depth":153,"text":365},{"id":393,"depth":153,"text":394},"The Context.dev API for search with Markdown ranked by relevance and for scraping pages into Markdown or HTML.","md",null,{"icon":415},"i-lucide-book-text",{"title":56,"description":411},"9Ay1SvsAKWtMDlw2qiMMij4NWiK0bR0dm6CHOz6f2UI",[419,421],{"title":52,"path":53,"stem":54,"description":420,"children":-1},"The Brave Search API, one GET per page, with extra snippets joined into text and a continuation that carries the offset.",{"title":60,"path":61,"stem":62,"description":422,"children":-1},"The Exa neural search API, the richest result shape of the built-ins, with highlights by default and summaries and full text on request, and Exa Contents for reading pages.",1791204846151]