Skip to main content
This walkthrough creates a crawl run, checks its status, and retrieves Markdown. You need a Bulkgrid workspace and an API key with runs:write, runs:read, and results:read. Create a key in Settings → API Keys. Workspace owners and admins can manage keys.

1. Configure authentication

Keep the key in your backend environment. See Authentication for bearer tokens, OAuth, and access restrictions.

2. Create a crawl

Node.js and Python examples use the Bulkgrid SDKs. Set BULKGRID_API_KEY in your backend environment; cURL examples also use BULKGRID_BASE_URL=https://bulkgrid.com.
The response is a run object. Save its id; the request starts processing and does not wait for the crawl to finish.

3. Check the run

Poll every few seconds with a maximum wait time. Stop on completed, failed, or cancelled. For failed runs, inspect last_error before deciding whether to retry.

4. Retrieve results and Markdown

Choose an item from results and use its id:
The content endpoint returns text. Individual pages can fail even when a run completes, so inspect each result’s error_message.

Continue building