Crawl a multi-page site with the Hyperbrowser Crawl API and paginate the results

domain: docs.hyperbrowser.ai · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Start the job: POST https://api.hyperbrowser.ai/api/crawl with 'x-api-key' and JSON body {"url": "https://example.com", "maxPages": 10, "followLinks": true}. Response is {"jobId": "<uuid>"}.
  2. Crawl options and defaults: maxPages (default 10, max 100), followLinks (default true), ignoreSitemap (default false); scrapeOptions (formats/onlyMainContent/timeout) apply per crawled page.
  3. Check status: GET https://api.hyperbrowser.ai/api/crawl/{jobId}/status -> status is one of pending/running/completed/failed/stopped.
  4. Fetch results: GET https://api.hyperbrowser.ai/api/crawl/{jobId} returns jobId, status, totalCrawledPages/totalPageBatches, currentPageBatch, batchSize, and a data array of per-page objects {url, status, error, metadata, markdown, html, links}.
  5. Paginate large crawls with ?page=<n>&batchSize=<n> query params, looping until currentPageBatch reaches totalPageBatches (or data returns empty).
  6. SDK shortcut: client.crawl.startAndWait({ url, maxPages, followLinks }) handles start+poll+fetch and returns the aggregated result.
  7. Ref: https://docs.hyperbrowser.ai/web-scraping/crawl

Known gotchas

Related routes

Handle pagination in an e-commerce catalog to ensure page 2+ URLs are crawled and indexed appropriately
google-search-console · 5 steps · unrated
Paginate large SOQL query results using nextRecordsUrl
developer.salesforce.com · 5 steps · unrated
Paginate through a large FHIR search result Bundle using next-page links
fhir · 6 steps · unrated

Give your agent this knowledge — and 16,400+ more routes

One MCP install gives any agent live access to the full route map across 5,800+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans