Skip to content

feat: add wait_ms parameter to crawl endpoint#6

Merged
VinciGit00 merged 1 commit intomainfrom
feat/add-wait-ms-to-crawl
Feb 17, 2026
Merged

feat: add wait_ms parameter to crawl endpoint#6
VinciGit00 merged 1 commit intomainfrom
feat/add-wait-ms-to-crawl

Conversation

@VinciGit00
Copy link
Member

Summary

  • Adds waitMs option to the crawl() function, sending wait_ms in the API payload
  • Aligns the JS SDK with sgai-api PR #402, which added wait_ms support to the smartcrawler flow
  • Follows the same validation and conditional-inclusion pattern used in scrape, smartScraper, and markdownify

Test plan

  • Verify crawl() works without waitMs (backwards-compatible, server defaults to 3000ms)
  • Verify crawl() sends wait_ms when waitMs is provided
  • Verify validation rejects non-integer and negative values

🤖 Generated with Claude Code

Aligns the JS SDK with sgai-api PR #402, which added wait_ms support
to the smartcrawler flow for configurable JS rendering wait times.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@VinciGit00 VinciGit00 merged commit 1fe2280 into main Feb 17, 2026
1 check passed
@VinciGit00 VinciGit00 deleted the feat/add-wait-ms-to-crawl branch February 17, 2026 07:41
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

Comments