[{"data":1,"prerenderedAt":447},["ShallowReactive",2],{"navigation_docs":3,"-providers-tinyfish":96,"-providers-tinyfish-surround":444},[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":92,"body":98,"description":437,"extension":438,"links":439,"meta":440,"navigation":169,"path":93,"seo":442,"stem":94,"__hash__":443},"docs\u002F2.providers\u002F11.tinyfish.md",{"type":99,"value":100,"toc":430},"minimark",[101,105,110,293,313,317,362,366,400,404,417,421,426],[102,103],"provider-facts",{"provider":104},"tinyfish",[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 tinyfish = 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","",[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"," tinyfish",[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 TINYFISH_API_KEY\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},"transformer inference",[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},"research_paper",[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,289,291],{"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\u002Farxiv.org\u002Fabs\u002F1706.03762",[121,277,160],{"class":152},[121,279,238],{"class":131},[121,281,282],{"class":135}," provider",[121,284,244],{"class":131},[121,286,153],{"class":152},[121,288,104],{"class":156},[121,290,160],{"class":152},[121,292,254],{"class":131},[294,295,296,297,300,301,304,305,308,309,312],"p",{},"The key goes in the ",[118,298,299],{},"X-API-Key"," header. Search talks to ",[118,302,303],{},"api.search.tinyfish.ai",", reads to ",[118,306,307],{},"api.fetch.tinyfish.ai",", ",[118,310,311],{},"readBaseURL"," in the config moves the second one.",[106,314,316],{"id":315},"what-it-reads","What it reads",[318,319,320,333],"table",{},[321,322,323],"thead",{},[324,325,326,330],"tr",{},[327,328,329],"th",{},"Call",[327,331,332],{},"Endpoint",[334,335,336,349],"tbody",{},[324,337,338,343],{},[339,340,341],"td",{},[118,342,226],{},[339,344,345,348],{},[118,346,347],{},"GET"," on the search host with the query, filters and a page number",[324,350,351,356],{},[339,352,353],{},[118,354,355],{},"read",[339,357,358,361],{},[118,359,360],{},"POST"," on the fetch host",[106,363,365],{"id":364},"what-comes-back","What comes back",[294,367,368,308,371,374,375,378,379,382,383,386,387,389,390,393,394,386,397,223],{},[118,369,370],{},"publishedDate",[118,372,373],{},"author"," and ",[118,376,377],{},"metadata.{position, siteName, publisher, authors, venue, year, citedByCount, pdfUrl}",", which is why it is the one to use for papers. Domain filters, a ",[118,380,381],{},"category"," of ",[118,384,385],{},"news"," or ",[118,388,249],{}," and both date bounds work. Paging goes up to ten pages, the next token stays ",[118,391,392],{},"unknown"," until a page comes back empty. Reads give ",[118,395,396],{},"markdown",[118,398,399],{},"html",[106,401,403],{"id":402},"gotchas","Gotchas",[405,406,407,414],"ul",{},[408,409,410,413],"li",{},[118,411,412],{},"maxResults"," is applied on our side to one result page.",[408,415,416],{},"Search access has to be enabled on the TinyFish account. A key without it answers with an auth failure, not a helpful message.",[106,418,420],{"id":419},"where-it-lives","Where it lives",[294,422,423,223],{},[118,424,425],{},"src\u002Fproviders\u002Ftinyfish.ts",[427,428,429],"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":431},[432,433,434,435,436],{"id":108,"depth":166,"text":109},{"id":315,"depth":166,"text":316},{"id":364,"depth":166,"text":365},{"id":402,"depth":166,"text":403},{"id":419,"depth":166,"text":420},"TinyFish Search for news and research results with publisher metadata, and TinyFish Fetch for reading pages.","md",null,{"icon":441},"i-lucide-fish",{"title":92,"description":437},"SYqpdRl9g9uvQiinkhm5HrFoSh2YtBi5SNDCFZa99bA",[445,439],{"title":88,"path":89,"stem":90,"description":446,"children":-1},"The Tavily search API, with an optional generated answer in response metadata and raw page content on request.",1788509441443]