Skip to content

fix(js-sdk): include robotsUserAgent in crawl payload - #3403

Merged
micahstairs merged 1 commit into
mainfrom
micah/js-sdk-crawl-robots-user-agent
Apr 20, 2026
Merged

micahstairs merged 1 commit into
mainfrom
micah/js-sdk-crawl-robots-user-agent

Conversation

@firecrawl-spring

@firecrawl-spring firecrawl-spring Bot commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • prepareCrawlPayload in apps/js-sdk/firecrawl/src/v2/methods/crawl.ts was silently dropping robotsUserAgent, so crawl() calls passing that option sent it to /v2/crawl without the field. Add it to the payload alongside the other crawler-level options.
  • Bump @mendable/firecrawl-js to 4.18.4.

Test plan

  • Call crawl({ url, robotsUserAgent: "MJ12bot", ... }) from the JS SDK and confirm the outgoing request body includes robotsUserAgent.

Summary by cubic

Fixes the JS SDK so robotsUserAgent is forwarded in crawl payloads, letting the API honor a custom robots user agent. Bumps @mendable/firecrawl-js to 4.18.4.

Written for commit a025c24. Summary will update on new commits.

prepareCrawlPayload was dropping the robotsUserAgent field before
sending to /v2/crawl. Add it to the payload and bump to 4.18.4.

Co-Authored-By: micahstairs <[email protected]>
@micahstairs
micahstairs merged commit e26f735 into main Apr 20, 2026
10 checks passed
tomsideguide pushed a commit that referenced this pull request Apr 21, 2026
prepareCrawlPayload was dropping the robotsUserAgent field before
sending to /v2/crawl. Add it to the payload and bump to 4.18.4.

Co-authored-by: firecrawl-spring[bot] <254786068+firecrawl-spring[bot]@users.noreply.github.com>
Co-authored-by: micahstairs <[email protected]>
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Jul 20, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Jul 28, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Aug 11, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
jerbao pushed a commit to jerbao/firecrawl-custom that referenced this pull request Aug 22, 2026
prepareCrawlPayload was dropping the robotsUserAgent field before
sending to /v2/crawl. Add it to the payload and bump to 4.18.4.

Co-authored-by: firecrawl-spring[bot] <254786068+firecrawl-spring[bot]@users.noreply.github.com>
Co-authored-by: micahstairs <[email protected]>
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Sep 12, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Sep 15, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Sep 16, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Sep 19, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
rkfshakti added a commit to rkfshakti/firecrawl that referenced this pull request Sep 23, 2026
The ignoreRobotsTxt option was declared in CrawlOptions types but never
forwarded to the API in prepareCrawlPayload(). This is the same class of
bug as robotsUserAgent (fixed in firecrawl#3403) — both were added in the same PR
(firecrawl#3375) but only robotsUserAgent was wired into the payload.

Closes firecrawl#3940.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant