How to export data?
Learn how to download and export your scraped data from CoreClaw.
Download via Console
Section titled “Download via Console”Step 1: Access Run Results
Section titled “Step 1: Access Run Results”- Go to Runs in the console
- Click on the Run ID
- Wait for status to show “SUCCEEDED”
Step 2: View Results
Section titled “Step 2: View Results”On the run details page, you can see:
- Execution status
- Number of items scraped
- Execution duration
- Log records
Step 3: Select Export Format
Section titled “Step 3: Select Export Format”Choose your preferred format (eight available):
| Format | Extension | Best For |
|---|---|---|
| CSV | .csv | Spreadsheets, data analysis |
| JSON | .json | Developers, API integration |
| JSONL | .jsonl | Line-delimited, stream-friendly |
| XLS | .xls | Legacy Excel workbooks |
| XLSX | .xlsx | Modern Excel workbooks |
| HTML | .html | Viewable in any browser |
| XML | .xml | Legacy and enterprise pipelines |
| RSS | .rss | Feed readers and monitor-style |
Step 4: Download
Section titled “Step 4: Download”Click the format button to download your data.
Export via API
Section titled “Export via API”For automated data retrieval, use the API. The export endpoint works on one Worker run at a time, so bulk exports across many runs need to be handled by your own script.
Get Run Results
Section titled “Get Run Results”GET /api/v2/worker-runs/{runId}/result?offset=0&limit=20Export Run Result
Section titled “Export Run Result”GET /api/v2/worker-runs/{runId}/result/export?format=csv&filter_keys=title%2Cprice%2CurlSupported formats: csv, json, jsonl, xlsx, xls, xml, html, rss (case-insensitive, default csv).
Use the runId returned as data.run_slug when you start or rerun a Worker. See Export API for full documentation.
Bulk export multiple runs
Section titled “Bulk export multiple runs”If each Task execution creates a separate Run, there is no single API call that exports all Runs together. Build a small script that lists the Runs, exports each Run, downloads each file, and then merges the files locally.
Recommended flow:
- Use
GET /api/v2/worker-runs?offset=0&limit=100to list Runs. The maximumlimitis100, so 12,000 Runs requires about 120 pages. - Collect each Run ID from the list response. In the list API response, use the
slugfield as therunId. - For each
runId, callGET /api/v2/worker-runs/{runId}/result/export?format=csvorformat=json. - Read
data.download_urlfrom the export response and download the file. - Merge the downloaded files locally. Keep the
runIdin the filename or as an added column so you can trace each row back to its source Run.
For large batches, expect runtime to depend on API latency and download size. As a rough planning example, 12,000 Runs processed sequentially requires one export request and one file download per Run and may take 1-2 hours. Running 5-10 concurrent workers can reduce the total time significantly, but add retries and backoff for 429 Too Many Requests. If you see rate limits, lower concurrency and retry after a short delay.
Data Size Considerations
Section titled “Data Size Considerations”| Size | Recommended Method |
|---|---|
| < 10MB | Console download |
| 10MB - 100MB | API streaming |
| > 100MB | Contact support |
Troubleshooting
Section titled “Troubleshooting”Why is the download button disabled?
Section titled “Why is the download button disabled?”Possible reasons:
- Run has not completed yet
- No data was scraped
- Insufficient account balance
- Limited permissions
Solution: Refresh the page or check run status.
What if data is empty?
Section titled “What if data is empty?”Check the following:
- Input parameters are correct
- Target website is accessible
- Anti-scraping measures are not blocking
Review the logs for detailed error messages.
Best Practices
Section titled “Best Practices”Related Topics
Section titled “Related Topics”- Input and Output - Understand data structure
- API Reference - Export API documentation