Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sdks/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ Use the waiter method `crawl` for the simplest experience, or start a job and pa

##### Simple crawl (auto-pagination, default)

- See the default flow in [Crawling a Website](#crawling-a-website).
See the default flow in [Crawling a Website](#crawling-a-website).

##### Manual crawl with pagination control (single page)

- Start a job, then fetch one page at a time with `autoPaginate: false`.
Start a job, then fetch one page at a time with `autoPaginate: false`:

```js Node
const crawlStart = await firecrawl.startCrawl('https://docs.firecrawl.dev', { limit: 5 });
Expand All @@ -137,7 +137,7 @@ console.log('crawl single page:', crawlSingle.status, 'docs:', crawlSingle.data.

##### Manual crawl with limits (auto-pagination + early stop)

- Keep auto-pagination on but stop early with `maxPages`, `maxResults`, or `maxWaitTime`.
Keep auto-pagination on but stop early with `maxPages`, `maxResults`, or `maxWaitTime`:

```js Node
const crawlLimited = await firecrawl.getCrawlStatus(crawlJobId, {
Expand All @@ -155,11 +155,11 @@ Use the waiter method `batchScrape`, or start a job and page manually.

##### Simple batch scrape (auto-pagination, default)

- See the default flow in [Batch Scrape](/features/batch-scrape).
See the default flow in [Batch Scrape](/features/batch-scrape).

##### Manual batch scrape with pagination control (single page)

- Start a job, then fetch one page at a time with `autoPaginate: false`.
Start a job, then fetch one page at a time with `autoPaginate: false`:

```js Node
const batchStart = await firecrawl.startBatchScrape([
Expand All @@ -174,7 +174,7 @@ console.log('batch single page:', batchSingle.status, 'docs:', batchSingle.data.

##### Manual batch scrape with limits (auto-pagination + early stop)

- Keep auto-pagination on but stop early with `maxPages`, `maxResults`, or `maxWaitTime`.
Keep auto-pagination on but stop early with `maxPages`, `maxResults`, or `maxWaitTime`:

```js Node
const batchLimited = await firecrawl.getBatchScrapeStatus(batchJobId, {
Expand Down