mendableai / firecrawl

🔥 Turn entire websites into LLM-ready markdown or structured data. Scrape, crawl and extract with a single API.
https://firecrawl.dev
GNU Affero General Public License v3.0
13.7k stars 990 forks source link

[BUG] Use seelf hosted firecrawl apiUrl in JS SDK ? #407

Open theodufort opened 1 month ago

theodufort commented 1 month ago

Describe the Bug I am trying to use my self hosted firecrawl api server for the JS SDK.

To Reproduce Steps to reproduce the issue:

  1. Have a running firecrawl REST server
  2. pass your local apiUrl variable.

Expected Behavior POST request is sent to locally hosted firecrawl server.

I want to use my own self hosted firecrawl instance using the JS SDK: const crawler = new FirecrawlApp({ apiUrl: "http://192.168.0.216:3112/v0/crawl", apiKey: null, });

but i get: 20 | */ 21 | constructor({ apiKey = null, apiUrl = null }) { 22 | this.apiKey = apiKey || ""; 23 | this.apiUrl = apiUrl || "https://api.firecrawl.dev"; 24 | if (!this.apiKey) { 25 | throw new Error("No API key provided"); ^ error: No API key provided

rafaelsideguide commented 1 month ago

@theodufort could check what happens if you try using some fake api key? something like "fc-123"

rafaelsideguide commented 1 month ago

@theodufort any updates on this one?