Firecrawl-compatible API
# Switch from Firecrawl in one line.

Keep the Firecrawl SDK call. Change the base URL to [https://webscraper.apexflowlabs.com](https://webscraper.apexflowlabs.com) and send your Apex key (rs_live_…) as Authorization: Bearer.

## Python

from firecrawl import Firecrawl
app = Firecrawl(api_key="rs_live_...", api_url="https://webscraper.apexflowlabs.com")
doc = app.scrape("https://example.com", formats=["markdown"])
print(doc.markdown)

## JavaScript

import Firecrawl from "@mendable/firecrawl-js";
const app = new Firecrawl({ apiKey: "rs_live_...", apiUrl: "https://webscraper.apexflowlabs.com" });
const doc = await app.scrape("https://example.com", { formats: ["markdown"] });

## curl

curl -X POST https://webscraper.apexflowlabs.com/v2/scrape \
  -H "Authorization: Bearer $APEX_SCRAPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","formats":["markdown"]}'

## MCP

Point a remote MCP client at https://webscraper.apexflowlabs.com/v1/mcp with the same bearer key. The server lists the Apex tools and these Firecrawl names: firecrawl_scrape, firecrawl_crawl, firecrawl_map, firecrawl_search, firecrawl_batch_scrape, firecrawl_check_crawl_status, firecrawl_check_batch_status, firecrawl_cancel_crawl.

A local stdio client can run uvx --from apex-flow-web-scraper apex-scraper-mcp or npx apex-flow-web-scraper with APEX_SCRAPER_API_KEY set, after those packages are published. FIRECRAWL_API_KEY is accepted as the same key. Until the publish workflows have been run, install the server from this git repository.

## Which URL to call

/v2/… is always the Firecrawl shape. /v1/scrape, /v1/crawl, /v1/map, and /v1/search are shared with the Apex API. Official Firecrawl SDKs send an origin field, and that selects the Firecrawl response. A body that only uses Apex fields (render, outputs, recipe, fallback) keeps the Apex response, so current Apex clients do not change.

## What works

- POST /v2/scrape and POST /v1/scrape return {success, data} with markdown, links, screenshot, and json. JSON needs a schema and costs the hosted extraction price.
- maxAge, timeout up to 90 seconds, onlyMainContent true, and storeInCache.
- Formats markdown, html, rawHtml, links, summary, highlights, question, images, branding, product, screenshot (full page), and json.
- includeTags, excludeTags, onlyMainContent false, a mobile viewport, and request headers other than Cookie, Authorization, User-Agent, and Host.
- checkPromptInjection and redactPII. Both are off unless the request asks or APEX_SAFETY_DEFAULT=1.
- Actions click, scroll, wait (selector or up to 10 seconds), type, and screenshot.
- Crawl and batch webhooks (a public URL, events started, page, completed, failed) and scheduled monitors at /v1/monitor and /v2/monitor.
- Crawl start, status, cancel, and errors: limit, maxDepth, includePaths, excludePaths, scrapeOptions, sitemap include/skip/only, delay, and allowSubdomains.
- Map from robots.txt, sitemaps, and links on the start page.
- Synchronous batch of up to 10 URLs. The Firecrawl batch job accepts up to the operator cap APEX_ASYNC_BATCH_MAX (default 1000).
- Web, news, and image search when an operator search provider is configured. Otherwise the response code is not_configured.
- POST /v1/agent and POST /v2/agent take a prompt or goal, optional urls and schema, and maxCredits. The job searches only when urls are omitted, then scrapes and extracts, and stops at the credit cap. Status is GET /v1/agent/{id}.
- Authorization: Bearer with an Apex key. Current Firecrawl Python and JavaScript SDKs need only the API base URL changed.

## What returns an error

These are rejected with HTTP 400, success: false, and code: unsupported_feature. The field is not dropped and the call is not billed as if it had worked.

- Formats audio and video.
- Actions press, executeJavascript, pdf, and scrape, and any script execution.
- A custom screenshot viewport. fullPage is accepted; the renderer captures the full page.
- Sending the request from a chosen country. location only sets Accept-Language.
- Stealth or enhanced proxy, skipping TLS verification, and headers that would hide the crawler or forward a user's cookie.
- ignoreRobotsTxt and zeroDataRetention.
- A natural-language crawl prompt.
- CAPTCHA solving and bot-wall evasion, which this service does not offer.

## Credits

A plain page is 1 credit, a rendered page is 3, and JSON schema extraction is 150 more on paid plans. A nonempty map is 1 credit. Web, news, and image search, when the operator has enabled it, is 1 credit per source for up to 10 results. A batch accepts at most 10 URLs. Failed scrapes return the reserved credits. There is no automatic overage. A named page the live site refuses can come back as a labelled Internet Archive copy, which is the same rule as the Apex API.

Crawls and maps obey robots.txt. A page you name in a single scrape is read even where robots.txt disallows it, and the receipt says so. ignoreRobotsTxt is rejected.

[Get an Apex key →](/trial.html) [Price comparison](/firecrawl-alternative.html)
