[{"data":1,"prerenderedAt":522},["ShallowReactive",2],{"navigation_docs":3,"-providers-firecrawl":104,"-providers-firecrawl-surround":517},[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":64,"body":106,"description":510,"extension":511,"links":512,"meta":513,"navigation":156,"path":65,"seo":515,"stem":66,"__hash__":516},"docs\u002F2.providers\u002F04.firecrawl.md",{"type":107,"value":108,"toc":503},"minimark",[109,113,118,285,293,297,354,358,413,417,490,494,499],[110,111],"provider-facts",{"provider":112},"firecrawl",[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 firecrawl = await create(\"firecrawl\"); \u002F\u002F FIRECRAWL_API_KEY\nconst results = await firecrawl.search(\"vercel ai sdk tools\", {\n  sources: [\"web\", \"news\"],\n  categories: [\"research\"],\n});\nconst page = await readUrl(\"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\", { provider: \"firecrawl\", targetSelector: \"main\" });\n","ts","",[126,127,128,151,158,190,216,234,245,251],"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}," firecrawl ",[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},"\"firecrawl\"",[129,184,185],{"class":139},"); ",[129,187,189],{"class":188},"scIB-","\u002F\u002F FIRECRAWL_API_KEY\n",[129,191,193,195,198,200,202,205,208,210,213],{"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}," firecrawl.",[129,206,207],{"class":175},"search",[129,209,179],{"class":139},[129,211,212],{"class":146},"\"vercel ai sdk tools\"",[129,214,215],{"class":139},", {\n",[129,217,219,222,225,228,231],{"class":131,"line":218},5,[129,220,221],{"class":139},"  sources: [",[129,223,224],{"class":146},"\"web\"",[129,226,227],{"class":139},", ",[129,229,230],{"class":146},"\"news\"",[129,232,233],{"class":139},"],\n",[129,235,237,240,243],{"class":131,"line":236},6,[129,238,239],{"class":139},"  categories: [",[129,241,242],{"class":146},"\"research\"",[129,244,233],{"class":139},[129,246,248],{"class":131,"line":247},7,[129,249,250],{"class":139},"});\n",[129,252,254,256,259,261,263,266,268,271,274,276,279,282],{"class":131,"line":253},8,[129,255,163],{"class":135},[129,257,258],{"class":139}," page ",[129,260,169],{"class":135},[129,262,172],{"class":135},[129,264,265],{"class":175}," readUrl",[129,267,179],{"class":139},[129,269,270],{"class":146},"\"https:\u002F\u002Fsdk.vercel.ai\u002Fdocs\"",[129,272,273],{"class":139},", { provider: ",[129,275,182],{"class":146},[129,277,278],{"class":139},", targetSelector: ",[129,280,281],{"class":146},"\"main\"",[129,283,284],{"class":139}," });\n",[286,287,288,289,292],"p",{},"Bearer auth against ",[126,290,291],{},"api.firecrawl.dev",".",[114,294,296],{"id":295},"what-it-reads","What it reads",[298,299,300,313],"table",{},[301,302,303],"thead",{},[304,305,306,310],"tr",{},[307,308,309],"th",{},"Call",[307,311,312],{},"Endpoint",[314,315,316,339],"tbody",{},[304,317,318,323],{},[319,320,321],"td",{},[126,322,207],{},[319,324,325,328,329,227,332,227,335,338],{},[126,326,327],{},"POST \u002Fv2\u002Fsearch"," with ",[126,330,331],{},"limit",[126,333,334],{},"sources",[126,336,337],{},"categories"," and scrape options",[304,340,341,346],{},[319,342,343],{},[126,344,345],{},"read",[319,347,348,328,351],{},[126,349,350],{},"POST \u002Fv2\u002Fscrape",[126,352,353],{},"formats",[114,355,357],{"id":356},"what-comes-back","What comes back",[286,359,360,363,364,367,368,371,372,375,376,379,380,383,384,386,387,227,390,227,393,396,397,386,399,227,402,227,405,408,409,412],{},[126,361,362],{},"snippet"," is a passage relevant to the query, Markdown included when the source has it. Sometimes that passage is the whole page, almost 80,000 characters of Node.js release notes, so it stops at 500 characters with ",[126,365,366],{},"…",". ",[126,369,370],{},"text"," is the scraped Markdown, ",[126,373,374],{},"image"," and ",[126,377,378],{},"metadata"," when present. ",[126,381,382],{},"highlights: false"," turns the passage scraping off. Domain filters, ",[126,385,334],{}," (",[126,388,389],{},"web",[126,391,392],{},"news",[126,394,395],{},"images",") and ",[126,398,337],{},[126,400,401],{},"research",[126,403,404],{},"pdf",[126,406,407],{},"developer",") work. The singular ",[126,410,411],{},"category"," is not forwarded, Firecrawl wants the plural.",[114,414,416],{"id":415},"gotchas","Gotchas",[418,419,420,440,446,475],"ul",{},[421,422,423,426,427,227,430,375,433,367,436,439],"li",{},[126,424,425],{},"searchDetailed"," exposes response metadata: request ",[126,428,429],{},"id",[126,431,432],{},"warning",[126,434,435],{},"creditsUsed",[126,437,438],{},"web search --provider firecrawl --json"," prints it.",[421,441,442,443,445],{},"The ",[126,444,407],{}," category cannot be mixed with the others. The adapter rejects the combination before the request instead of letting Firecrawl answer with a 400.",[421,447,448,449,451,452,227,455,227,458,227,461,227,464,227,467,227,470,375,472,474],{},"A read comes back with the URL Firecrawl landed on after redirects. Its ",[126,450,378],{}," is only about the fetch: ",[126,453,454],{},"originalUrl",[126,456,457],{},"statusCode",[126,459,460],{},"error",[126,462,463],{},"contentType",[126,465,466],{},"language",[126,468,469],{},"cachedAt",[126,471,435],{},[126,473,432],{},". The page's meta tags are left out, because they ran to dozens of keys (71 on a GitHub repo page) that mostly repeat the title and description.",[421,476,477,478,481,482,485,486,489],{},"An explicit read rejects ",[126,479,480],{},"maxTokens"," instead of ignoring it. An automatic read that lands here leaves it out and says so in ",[126,483,484],{},"ignoredOptions",". Use ",[126,487,488],{},"maxChars"," for a bound that means the same thing everywhere.",[114,491,493],{"id":492},"where-it-lives","Where it lives",[286,495,496,292],{},[126,497,498],{},"src\u002Fproviders\u002Ffirecrawl.ts",[500,501,502],"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":504},[505,506,507,508,509],{"id":116,"depth":153,"text":117},{"id":295,"depth":153,"text":296},{"id":356,"depth":153,"text":357},{"id":415,"depth":153,"text":416},{"id":492,"depth":153,"text":493},"The Firecrawl v2 API for search with scraped passages and for scraping a page into Markdown or HTML.","md",null,{"icon":514},"i-lucide-flame",{"title":64,"description":510},"QGrrNlM45YTD3_HVApbMrDHktcziQdczhDsXoTergUU",[518,520],{"title":60,"path":61,"stem":62,"description":519,"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.",{"title":68,"path":69,"stem":70,"description":521,"children":-1},"Jina's s.jina.ai for search and r.jina.ai for reading, the default reader, with an optional key.",1791287747013]