Skip to content

feat(sdk): add ignoreRobotsTxt and robotsUserAgent to JS, Python, and Java SDKs - #3375

Merged
micahstairs merged 2 commits into
mainfrom
feat/sdk-robots-params
Apr 15, 2026
Merged

micahstairs merged 2 commits into
mainfrom
feat/sdk-robots-params

Conversation

@firecrawl-spring

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

Copy link
Copy Markdown
Contributor

Summary

  • Adds ignoreRobotsTxt and robotsUserAgent crawl parameters to the JS/TS, Python, and Java SDKs
  • Both are enterprise-only params gated behind the ignoreRobots org flag

Changes

  • JS/TS SDK — Added both fields to CrawlOptions interface
  • Python SDK — Added robots_user_agent to CrawlRequest and CrawlParamsData models, plus the camelCase field mapping
  • Java SDK — Added fields, getters, builder methods, and build wiring

Summary by cubic

Adds ignoreRobotsTxt and robotsUserAgent to the JS/TS, Python, and Java SDKs to control robots.txt behavior, gated by the ignoreRobots org flag. Fixes Python field mappings and bumps SDK versions.

  • New Features

    • JS/TS SDK: Added ignoreRobotsTxt and robotsUserAgent to CrawlOptions.
    • Python SDK: Added ignore_robots_txt and robots_user_agent to CrawlRequest and CrawlParamsData.
    • Java SDK: Added ignoreRobotsTxt and robotsUserAgent fields, getters, builder methods, and build wiring in CrawlOptions.
  • Bug Fixes

    • Python SDK: Added missing async/sync request and preview response mappings for ignoreRobotsTxt and robotsUserAgent.
    • Versions: @mendable/firecrawl-js 4.18.3, firecrawl 4.22.2, Java SDK 1.2.1.

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

@firecrawl-spring
firecrawl-spring Bot requested a review from micahstairs April 15, 2026 20:13
@blacksmith-sh

blacksmith-sh Bot commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
src/tests/snips/v2/crawl.test.ts/Crawl tests accepts robotsUserAgent parameter View Logs
src/tests/snips/v2/crawl.test.ts/Crawl tests accepts robotsUserAgent parameter View Logs

Fix in Cursor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 4 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/python-sdk/firecrawl/v2/types.py">

<violation number="1" location="apps/python-sdk/firecrawl/v2/types.py:602">
P2: Map the crawl-params response field before constructing `CrawlParamsData`; otherwise `robots_user_agent` will never be populated from API responses.</violation>

<violation number="2" location="apps/python-sdk/firecrawl/v2/types.py:602">
P2: Add the async request-field mapping for `robots_user_agent`; otherwise async crawl payloads will serialize the new option under the wrong key.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

Comment thread apps/python-sdk/firecrawl/v2/types.py Resolved
Comment thread apps/python-sdk/firecrawl/v2/types.py Resolved
…ions

- Add ignore_robots_txt and robots_user_agent to async crawl request field mappings
- Add ignoreRobotsTxt and robotsUserAgent to crawl_params_preview response mappings (sync + async)
- Bump Python SDK 4.22.1 → 4.22.2
- Bump JS SDK 4.18.2 → 4.18.3
- Bump Java SDK 1.2.0 → 1.2.1

Co-Authored-By: micahstairs <[email protected]>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 5 files (changes from recent commits).

Requires human review: Auto-approval blocked by 2 unresolved issues from previous reviews.

@micahstairs
micahstairs merged commit fcf6b89 into main Apr 15, 2026
6 of 9 checks passed
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
… Java SDKs (firecrawl#3375)

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