Firecrawl Node SDK is a wrapper around the Firecrawl API to help you easily turn websites into markdown.
Note: this is using v0 version of the Firecrawl API which is being deprecated. We recommend switching to v1.
FIRECRAWL_API_KEY
or pass it as a parameter to the FirecrawlApp
class.scrapeUrl
method. It takes the URL as a parameter and returns the scraped data as a dictionary.
crawlUrl
method. It takes the starting URL and optional parameters as arguments. The params
argument allows you to specify additional options for the crawl job, such as the maximum number of pages to crawl, allowed domains, and the output format.
checkCrawlStatus
method. It takes the job ID as a parameter and returns the current status of the crawl job.
search
method, you can search for a query in a search engine and get the top results along with the page content for each result. The method takes the query as a parameter and returns the search results.
try/catch
blocks.