[{"data":1,"prerenderedAt":470},["ShallowReactive",2],{"navigation_docs":3,"-providers-tinyfish":100,"-providers-tinyfish-surround":465},[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":92,"body":102,"description":458,"extension":459,"links":460,"meta":461,"navigation":173,"path":93,"seo":463,"stem":94,"__hash__":464},"docs\u002F2.providers\u002F11.tinyfish.md",{"type":103,"value":104,"toc":451},"minimark",[105,109,114,299,319,323,368,372,406,410,438,442,447],[106,107],"provider-facts",{"provider":108},"tinyfish",[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 tinyfish = await create(\"tinyfish\"); \u002F\u002F TINYFISH_API_KEY\nconst results = await tinyfish.search(\"transformer inference\", { category: \"research_paper\" });\nconst page = await readUrl(\"https:\u002F\u002Farxiv.org\u002Fabs\u002F1706.03762\", { provider: \"tinyfish\" });\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"," tinyfish",[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 TINYFISH_API_KEY\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},"transformer inference",[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},"research_paper",[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,295,297],{"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\u002Farxiv.org\u002Fabs\u002F1706.03762",[125,283,164],{"class":156},[125,285,244],{"class":135},[125,287,288],{"class":139}," provider",[125,290,250],{"class":135},[125,292,157],{"class":156},[125,294,108],{"class":160},[125,296,164],{"class":156},[125,298,260],{"class":135},[300,301,302,303,306,307,310,311,314,315,318],"p",{},"The key goes in the ",[122,304,305],{},"X-API-Key"," header. Search talks to ",[122,308,309],{},"api.search.tinyfish.ai",", reads to ",[122,312,313],{},"api.fetch.tinyfish.ai",", ",[122,316,317],{},"readBaseURL"," in the config moves the second one.",[110,320,322],{"id":321},"what-it-reads","What it reads",[324,325,326,339],"table",{},[327,328,329],"thead",{},[330,331,332,336],"tr",{},[333,334,335],"th",{},"Call",[333,337,338],{},"Endpoint",[340,341,342,355],"tbody",{},[330,343,344,349],{},[345,346,347],"td",{},[122,348,232],{},[345,350,351,354],{},[122,352,353],{},"GET"," on the search host with the query, filters and a page number",[330,356,357,362],{},[345,358,359],{},[122,360,361],{},"read",[345,363,364,367],{},[122,365,366],{},"POST"," on the fetch host",[110,369,371],{"id":370},"what-comes-back","What comes back",[300,373,374,314,377,380,381,384,385,388,389,392,393,395,396,399,400,392,403,229],{},[122,375,376],{},"publishedDate",[122,378,379],{},"author"," and ",[122,382,383],{},"metadata.{position, siteName, publisher, authors, venue, year, citedByCount, pdfUrl}",", which is why it is the one to use for papers. Domain filters, a ",[122,386,387],{},"category"," of ",[122,390,391],{},"news"," or ",[122,394,255],{}," and both date bounds work. Paging goes up to ten pages, the next token stays ",[122,397,398],{},"unknown"," until a page comes back empty. Reads give ",[122,401,402],{},"markdown",[122,404,405],{},"html",[110,407,409],{"id":408},"gotchas","Gotchas",[411,412,413,420,435],"ul",{},[414,415,416,419],"li",{},[122,417,418],{},"maxResults"," is applied on our side to one result page.",[414,421,422,423,426,427,430,431,434],{},"A bounded read asks for ",[122,424,425],{},"links"," only when it will keep them. ",[122,428,429],{},"image_links"," stays on, because ",[122,432,433],{},"image"," is the first image URL and a bounded read still returns it.",[414,436,437],{},"Search access has to be enabled on the TinyFish account. A key without it answers with an auth failure, not a helpful message.",[110,439,441],{"id":440},"where-it-lives","Where it lives",[300,443,444,229],{},[122,445,446],{},"src\u002Fproviders\u002Ftinyfish.ts",[448,449,450],"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":452},[453,454,455,456,457],{"id":112,"depth":170,"text":113},{"id":321,"depth":170,"text":322},{"id":370,"depth":170,"text":371},{"id":408,"depth":170,"text":409},{"id":440,"depth":170,"text":441},"TinyFish Search for news and research results with publisher metadata, and TinyFish Fetch for reading pages.","md",null,{"icon":462},"i-lucide-fish",{"title":92,"description":458},"-KOMeuN2nA0RkyQWdil-jXE4pC8_VtPSjevBFLoY0To",[466,468],{"title":88,"path":89,"stem":90,"description":467,"children":-1},"The Tavily search API, with an optional generated answer in response metadata, and Tavily Extract for reading pages.",{"title":96,"path":97,"stem":98,"description":469,"children":-1},"Web search through your existing Pi, OMP, Codex or OpenCode login.",1790041408184]