Migrate from another API (/v2)
The /v2 paths accept the request and response shapes of the Firecrawl v2 API. If your code calls that API through its official Node (@mendable/firecrawl-js) or Python (firecrawl-py) client, you can point the client at SuperScraper, keep your call sites, and move to the /v1 operations at your own pace.
The /v2 paths are a migration door. They exist so an existing integration can switch with a base URL and key change. New work should call the /v1 operations directly: they expose every option we support and return our full response (completeness, provenance, cache and cascade details).
Point the client at SuperScraper
import Firecrawl from "@mendable/firecrawl-js";
const client = new Firecrawl({
apiKey: process.env.SUPERSCRAPER_KEY,
apiUrl: "https://api.superscraper.dev",
});
const doc = await client.scrape("https://example.com", { formats: ["markdown", "links"] });import os
from firecrawl import Firecrawl
client = Firecrawl(api_key=os.environ["SUPERSCRAPER_KEY"], api_url="https://api.superscraper.dev")
doc = client.scrape("https://example.com", formats=["markdown", "links"])Tested client versions: @mendable/firecrawl-js 4.41.0 and firecrawl-py 4.44.0. Other versions may send options we have not checked; anything we do not recognise is ignored and named in warning.
What runs where
Every /v2 request runs as one of our own operations. It uses the same API key, rate limit, credit balance and prices as the /v1 operation it maps to, and it is charged once.
/v2 route | Coverage | Runs as | Notes |
|---|---|---|---|
POST /v2/scrape | partial | POST /v1/scrape | Formats markdown, rawHtml, html (the unprocessed page HTML), links, json (with a schema), summary, screenshot, branding. Actions: wait (milliseconds), click, write, press, scroll down, screenshot. |
POST /v2/search | partial | POST /v1/search | Web results only. news and images come back in unsupported; no web results are substituted for them. scrapeOptions supports markdown only. |
POST /v2/map | partial | POST /v1/map | url, search, limit. |
POST /v2/crawl | partial | POST /v1/crawl | limit, includePaths, excludePaths, maxDiscoveryDepth, crawlEntireDomain, ignoreRobotsTxt, sitemap (include or skip), webhook (URL only). scrapeOptions: formats markdown, html, rawHtml, links; onlyMainContent (default true), includeTags, excludeTags, removeBase64Images, timeout (ms per page). |
GET /v2/crawl/:id | supported | GET /v1/crawl/:id | All stored pages in one response (next is always null). If a completed crawl's pages cannot be read, the answer is 502 results_unavailable, not an empty list. |
DELETE /v2/crawl/:id | supported | DELETE /v1/crawl/:id | Cancels a queued or running crawl. |
POST /v2/batch/scrape | partial | POST /v1/batch (async) | Format markdown only. ignoreInvalidURLs, maxConcurrency, webhook (URL only). |
GET /v2/batch/scrape/:id | supported | GET /v1/jobs/:id | Status and documents of an async batch. |
POST /v2/parse | partial | POST /v1/parse | Multipart file plus a JSON options field. Markdown output. |
Not available on this door (each answers 404 with code: "operation_deferred"): async extract jobs (use POST /v1/extract, which is synchronous), batch cancel, crawl and batch error listings, the active-crawl listing, crawl planning from a prompt, team usage endpoints (use GET /v1/usage), agent jobs, browser sessions, interactive scrape sessions, monitors and feedback.
Options we refuse, and options we ignore
An option we cannot honour is either refused or named in warning.
- Refused with
400: a format we do not produce (code: "unsupported_format"), an action we cannot run (unsupported_action, for example wait-for-selector orexecuteJavascript),redactPII,lockdown,profile, a crawlprompt, a crawl format other than markdown, html, rawHtml or links, a batch format other than markdown,zeroDataRetention: trueon crawl or batch,appendToId, and thex-idempotency-keyheader on batch. We do not deduplicate retries on that key, so we refuse it rather than risk charging a retry twice. - Ignored, and named in
warning: options that only tune how a page is fetched, such asmobile,proxy,location,parsersandskipTlsVerification(TLS is always verified). timeout: honoured on scrape, batch scrape and crawlscrapeOptions, in milliseconds as you send it. It is the time the fetch levels may spend on one page. The ceiling is your plan's: 30000 on Free, 120000 on paid plans. A value above your ceiling is lowered to it, a value below 1000 is raised to 1000 and fractions are rounded down; each change is named inwarning(the/v1operations refuse the same values with400 invalid_timeoutinstead). Withouttimeoutwe use our default.- Cache:
maxAgeandminAgeare honoured when you send them. When you send nomaxAge, a scrape may be answered from a copy up to 2 days old (172800000 ms), the same default as the clients expect. SendmaxAge: 0for a fresh fetch. The default does not apply to requests withheadersoractions, or withzeroDataRetention. A page served from cache costs 0 credits (unless the request also asks for ajsonformat with a schema, asummaryor ascreenshot) and carriesmetadata.cacheState: "hit",metadata.cachedAtandmetadata.cacheAgeMs; a fresh fetch carriesmetadata.cached: false. Crawl and batch scrape do not apply a default yet.
Responses and errors
Successful responses use the { "success": true, ... } shape the clients expect. Every error, including authentication, rate limit and credit errors, uses:
{ "success": false, "error": "Credit balance exhausted", "code": "payment_required", "details": { "balance": 0, "required": 1 } }401 means the key is missing, invalid or revoked (revocation applies from the next request). 402 means the monthly quota or the credit balance cannot cover the request; it is checked before any work runs. 429 carries Retry-After. The rate limit is shared with your /v1 traffic.
Moving to /v1
/v2 call | /v1 equivalent |
|---|---|
client.scrape(url, options) | POST /v1/scrape |
client.search(query, options) | POST /v1/search |
client.map(url, options) | POST /v1/map |
client.startCrawl(url), getCrawlStatus(id), cancelCrawl(id) | POST /v1/crawl, GET /v1/crawl/:id plus GET /v1/crawl/:id/results, DELETE /v1/crawl/:id |
client.startBatchScrape(urls), getBatchScrapeStatus(id) | POST /v1/batch with async: true, then GET /v1/jobs/:id |
client.parse(file) | POST /v1/parse (multipart file) |
The /v1 responses carry fields the migration door leaves out, such as the completeness score, the free JSON-LD listing and per-attempt fetch details.
What doesn't map 1:1
- Completeness (
_completeness) and provenance (_extraction_method,_provenance) fields exist on SuperScraper's/v1/scrapeand/v1/extractresponses and have no equivalent on the migration door. See Extract. - Only the Node and Python clients above have been tested against the door. Other clients may work if they send the same request shapes; call the REST API directly otherwise.
Trademark notice
Firecrawl is a trademark of its owner. SuperScraper is not affiliated with, sponsored by or endorsed by that owner. The name is used on this page only to identify the API and client libraries the /v2 door is compatible with.