Repository navigation
fix(js-sdk): forward ignoreRobotsTxt in v2 crawl payload - #3959
Open
Shraman123 wants to merge 1 commit into
Open
Shraman123 wants to merge 1 commit into
Shraman123 wants to merge 1 commit into
Conversation
CrawlOptions declares ignoreRobotsTxt and the v2 API accepts it, but
prepareCrawlPayload() never read it, so client.crawl(url, { ignoreRobotsTxt: true })
silently dropped the flag and crawls remained subject to robots.txt.
This was referenced Sep 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CrawlOptions.ignoreRobotsTxtis declared in the v2 JS SDK types and the/v2/crawlAPI endpoint accepts it (ignoreRobotsTxt: z.boolean().prefault(false)inapps/api/src/controllers/v2/types.ts), butprepareCrawlPayload()inapps/js-sdk/firecrawl/src/v2/methods/crawl.tsnever read it, soclient.crawl(url, { ignoreRobotsTxt: true })silently dropped the flag and crawls stayed subject to robots.txt.robotsUserAgentforwarding (which already worked).Test plan
crawl.unit.test.tscovering: flag forwarded whentrue, omitted from the body when not provided, and forwarded alongsiderobotsUserAgent.npx tsc --noEmitandnpx tsupbuild clean (no new errors introduced).Summary by cubic
Fixes v2 JS SDK crawls dropping the
ignoreRobotsTxtoption. The flag is now forwarded to/v2/crawl, so callers can bypass robots.txt when they set it.ignoreRobotsTxtinprepareCrawlPayload()next torobotsUserAgent.robotsUserAgent.Written for commit 47fe07c. Summary will update on new commits.