Repository navigation
Description
Describe the Bug
CrawlOptions.ignoreRobotsTxt is declared in the JS SDK's v2 types but never forwarded to the API. Calling crawl() or startCrawl() with ignoreRobotsTxt: true does not include the field in the outgoing request body, so the crawl silently continues to respect robots.txt regardless of what the caller passed.
Root cause: in apps/js-sdk/firecrawl/src/v2/methods/crawl.ts, prepareCrawlPayload() builds the request body option-by-option but has no line reading request.ignoreRobotsTxt, even though the field is declared in CrawlOptions (v2/types.ts line 700) and is fully supported by the API (apps/api/src/controllers/v2/types.ts, src/scraper/WebScraper/crawler.ts, src/lib/crawl-redis.ts).
$ grep -rn "ignoreRobotsTxt" apps/js-sdk/firecrawl/src/
v2/types.ts:700: ignoreRobotsTxt?: boolean;
That's the only reference in the whole SDK — declared, never used.
This is the same class of bug as robotsUserAgent, which was added to CrawlOptions in the same PR (#3375) but not wired into the payload either, and was later caught and fixed on its own in #3403 (fix(js-sdk): include robotsUserAgent in crawl payload). That fix appears to have missed ignoreRobotsTxt sitting right next to it in the same function.
For comparison, the Python SDK handles this field correctly end-to-end (firecrawl/v2/client.py, firecrawl/v2/methods/crawl.py, firecrawl/v2/types.py), including the snake_case/camelCase mapping.
To Reproduce
Steps to reproduce the issue:
const client = new Firecrawl({ apiKey: "..." })await client.crawl("https://example.com", { ignoreRobotsTxt: true })- Inspect the outgoing
POST /v2/crawlrequest body ignoreRobotsTxtis absent from the payload; the crawl behaves as if the option was never passed
Expected Behavior
ignoreRobotsTxt should appear in the request body when set, matching the declared CrawlOptions type and the Python SDK's behavior.
Screenshots
N/A — this is a payload-construction bug, not a UI issue.
Environment:
- OS: macOS
- Deployment Type: Cloud (firecrawl.dev)
- Firecrawl Version:
@mendable/firecrawl-js4.29.1 - Node.js Version: 22.x
Logs
N/A — no error is thrown; the field is silently omitted from the request body, so there's nothing to log. The bug is confirmed by inspecting prepareCrawlPayload() directly (see root cause above).
Additional Context
There's an open PR (#3046) that touches robots handling more broadly (introducing a robotsMode enum across scrape/crawl/map) and does modify this same file, but it's been open since March 2026 with no recent activity and is scoped well beyond this specific gap. Flagging it here for visibility, but this issue describes a minimal, independently-fixable regression regardless of that PR's outcome.
I'd like to work on this — will open a PR shortly with the fix and a regression test.
Activity
TanzimHossainSafin commentedon Jul 6, 2026
hello, i want to work on this issue. could you please assign me?
sbalagan22 commentedon Jul 7, 2026
Root cause confirmed: prepareCrawlPayload in apps/js-sdk/firecrawl/src/v2/methods/crawl.ts builds the request body field-by-field and has no line reading request.ignoreRobotsTxt, even though the field is declared in CrawlOptions and consumed by the API. This is the same omission as robotsUserAgent (wired up separately in #3403), which sits on the adjacent line. Fix: forward request.ignoreRobotsTxt into the payload alongside robotsUserAgent, guarded by the same != null check, and add a crawl unit test asserting the field reaches the POST /v2/crawl body.
nankingjing commentedon Jul 14, 2026
Thanks for the report! This is now fixed in #4016 —
prepareCrawlPayloadwill forwardignoreRobotsTxtto the API when set. The field was declared inCrawlOptionsbut never wired into the POST body.fix(js-sdk): forward ignoreRobotsTxt in crawl payload; fix README com…
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload
fix(js-sdk): forward ignoreRobotsTxt in crawl payload