[{"data":1,"prerenderedAt":486},["ShallowReactive",2],{"navigation_docs":3,"-providers-tinyfish":104,"-providers-tinyfish-surround":481},[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":92,"body":106,"description":474,"extension":475,"links":476,"meta":477,"navigation":177,"path":93,"seo":479,"stem":94,"__hash__":480},"docs\u002F2.providers\u002F11.tinyfish.md",{"type":107,"value":108,"toc":467},"minimark",[109,113,118,303,323,327,372,376,410,414,454,458,463],[110,111],"provider-facts",{"provider":112},"tinyfish",[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 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","",[126,127,128,172,179,216,265],"code",{"__ignoreMap":124},[129,130,133,137,141,145,148,151,154,158,162,166,169],"span",{"class":131,"line":132},"line",1,[129,134,136],{"class":135},"sP0CR","import",[129,138,140],{"class":139},"sKlNE"," {",[129,142,144],{"class":143},"snHMy"," create",[129,146,147],{"class":139},",",[129,149,150],{"class":143}," readUrl",[129,152,153],{"class":139}," }",[129,155,157],{"class":156},"stCPd"," from",[129,159,161],{"class":160},"scVjq"," \"",[129,163,165],{"class":164},"sQ7BG","@agntn\u002Fweb",[129,167,168],{"class":160},"\"",[129,170,171],{"class":139},";\n",[129,173,175],{"class":131,"line":174},2,[129,176,178],{"emptyLinePlaceholder":177},true,"\n",[129,180,182,186,190,193,197,200,203,205,207,209,212],{"class":131,"line":181},3,[129,183,185],{"class":184},"s1TYA","const",[129,187,189],{"class":188},"saoiD"," tinyfish",[129,191,192],{"class":184}," =",[129,194,196],{"class":195},"sZW6a"," await",[129,198,144],{"class":199},"sULi6",[129,201,202],{"class":139},"(",[129,204,168],{"class":160},[129,206,112],{"class":164},[129,208,168],{"class":160},[129,210,211],{"class":139},"); ",[129,213,215],{"class":214},"sjhu3","\u002F\u002F TINYFISH_API_KEY\n",[129,217,219,221,224,226,228,231,234,237,239,241,244,246,249,252,255,257,260,262],{"class":131,"line":218},4,[129,220,185],{"class":184},[129,222,223],{"class":188}," results",[129,225,192],{"class":184},[129,227,196],{"class":195},[129,229,189],{"class":230},"spVlQ",[129,232,233],{"class":139},".",[129,235,236],{"class":199},"search",[129,238,202],{"class":139},[129,240,168],{"class":160},[129,242,243],{"class":164},"transformer inference",[129,245,168],{"class":160},[129,247,248],{"class":139},", {",[129,250,251],{"class":143}," category",[129,253,254],{"class":139},":",[129,256,161],{"class":160},[129,258,259],{"class":164},"research_paper",[129,261,168],{"class":160},[129,263,264],{"class":139}," });\n",[129,266,268,270,273,275,277,279,281,283,286,288,290,293,295,297,299,301],{"class":131,"line":267},5,[129,269,185],{"class":184},[129,271,272],{"class":188}," page",[129,274,192],{"class":184},[129,276,196],{"class":195},[129,278,150],{"class":199},[129,280,202],{"class":139},[129,282,168],{"class":160},[129,284,285],{"class":164},"https:\u002F\u002Farxiv.org\u002Fabs\u002F1706.03762",[129,287,168],{"class":160},[129,289,248],{"class":139},[129,291,292],{"class":143}," provider",[129,294,254],{"class":139},[129,296,161],{"class":160},[129,298,112],{"class":164},[129,300,168],{"class":160},[129,302,264],{"class":139},[304,305,306,307,310,311,314,315,318,319,322],"p",{},"The key goes in the ",[126,308,309],{},"X-API-Key"," header. Search talks to ",[126,312,313],{},"api.search.tinyfish.ai",", reads to ",[126,316,317],{},"api.fetch.tinyfish.ai",", ",[126,320,321],{},"readBaseURL"," in the config moves the second one.",[114,324,326],{"id":325},"what-it-reads","What it reads",[328,329,330,343],"table",{},[331,332,333],"thead",{},[334,335,336,340],"tr",{},[337,338,339],"th",{},"Call",[337,341,342],{},"Endpoint",[344,345,346,359],"tbody",{},[334,347,348,353],{},[349,350,351],"td",{},[126,352,236],{},[349,354,355,358],{},[126,356,357],{},"GET"," on the search host with the query, filters and a page number",[334,360,361,366],{},[349,362,363],{},[126,364,365],{},"read",[349,367,368,371],{},[126,369,370],{},"POST"," on the fetch host",[114,373,375],{"id":374},"what-comes-back","What comes back",[304,377,378,318,381,384,385,388,389,392,393,396,397,399,400,403,404,396,407,233],{},[126,379,380],{},"publishedDate",[126,382,383],{},"author"," and ",[126,386,387],{},"metadata.{position, siteName, publisher, authors, venue, year, citedByCount, pdfUrl}",", which is why it is the one to use for papers. Domain filters, a ",[126,390,391],{},"category"," of ",[126,394,395],{},"news"," or ",[126,398,259],{}," and both date bounds work. Paging goes up to ten pages, the next token stays ",[126,401,402],{},"unknown"," until a page comes back empty. Reads give ",[126,405,406],{},"markdown",[126,408,409],{},"html",[114,411,413],{"id":412},"gotchas","Gotchas",[415,416,417,424,439,451],"ul",{},[418,419,420,423],"li",{},[126,421,422],{},"maxResults"," is applied on our side to one result page.",[418,425,426,427,430,431,434,435,438],{},"A bounded read asks for ",[126,428,429],{},"links"," only when it will keep them. ",[126,432,433],{},"image_links"," stays on, because ",[126,436,437],{},"image"," is the first image URL and a bounded read still returns it.",[418,440,441,442,444,445,384,448,233],{},"The window is by day, a datetime bound becomes its UTC day. With ",[126,443,259],{}," only the year of each bound goes through, as ",[126,446,447],{},"pub_year_min",[126,449,450],{},"pub_year_max",[418,452,453],{},"Search access has to be enabled on the TinyFish account. A key without it answers with an auth failure, not a helpful message.",[114,455,457],{"id":456},"where-it-lives","Where it lives",[304,459,460,233],{},[126,461,462],{},"src\u002Fproviders\u002Ftinyfish.ts",[464,465,466],"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":124,"searchDepth":174,"depth":174,"links":468},[469,470,471,472,473],{"id":116,"depth":174,"text":117},{"id":325,"depth":174,"text":326},{"id":374,"depth":174,"text":375},{"id":412,"depth":174,"text":413},{"id":456,"depth":174,"text":457},"TinyFish Search for news and research results with publisher metadata, and TinyFish Fetch for reading pages.","md",null,{"icon":478},"i-lucide-fish",{"title":92,"description":474},"E0VB9uARSc-BVdVCuBRXWkOGo1HM3hPnZnWJtv9YWqs",[482,484],{"title":88,"path":89,"stem":90,"description":483,"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":485,"children":-1},"Web search through your existing Pi, OMP, Codex or OpenCode login.",1790380571265]