Class representing a document loader for loading data from Firecrawl (firecrawl.dev). It extends the BaseDocumentLoader class.
const loader = new FireCrawlLoader({ url: "{url}", apiKey: "{apiKey}", mode: "crawl"});const docs = await loader.load(); Copy
const loader = new FireCrawlLoader({ url: "{url}", apiKey: "{apiKey}", mode: "crawl"});const docs = await loader.load();
Loads the data from the Firecrawl.
An array of Documents representing the retrieved data.
An error if the data could not be loaded.
Optional
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Use this.load() and splitter.splitDocuments() individually. Loads the documents and splits them using a specified text splitter.
this.load()
splitter.splitDocuments()
Deprecated
Class representing a document loader for loading data from Firecrawl (firecrawl.dev). It extends the BaseDocumentLoader class.
Example