Export Last Worker Run Results
Method: GET
Endpoint: /api/v2/worker-runs/last/export
Authentication: Supports Authorization: Bearer <YOUR_API_KEY>, api-key: <YOUR_API_KEY>, and ?token=<YOUR_API_KEY>. Prefer Bearer token.
Try it
Section titled “Try it”GET
/api/v2/worker-runs/last/exportExport last worker run resultsAuthenticationRequired
Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.
Parameters
Optional
Export format. Constraints: default `csv`.
Optional
Comma-separated field keys used to limit exported fields, for example `title,address`.
Request BodyNot applicable
No JSON request body. Fill the path or query parameters above.
When to use this endpoint
Section titled “When to use this endpoint”Use this endpoint to export run results as a downloadable file.
Query Parameters
Section titled “Query Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
format | No | string | Export format. Defaults to csv. Constraints: default csv. |
filter_keys | No | string | Comma-separated field keys used to limit exported fields, for example title,address. |
Request Example
Section titled “Request Example”curl -X GET "https://openapi.coreclaw.com/api/v2/worker-runs/last/export?format=csv&filter_keys=title%2Caddress" \ -H "Authorization: Bearer YOUR_API_KEY"Response Example
Section titled “Response Example”{ "code": 0, "data": { "download_url": "https://storage.example.com/runs/01KKDXV2G26BT7NH4ZQR2R4NPZ/results.csv" }, "message": "success", "request_id": "req-123"}- API v2 supports Bearer token, the legacy
api-keyheader, and query token. Prefer Bearer token for new integrations. - This is an account-level latest-run endpoint and does not take a
workerIdpath parameter; it operates on the latest run in the current account scope. lastmeans the latest run in the current scope. Use a concreterunIdendpoint when the target must be explicit.filter_keyscan limit exported fields, for exampletitle,address.
HTTP Responses
Section titled “HTTP Responses”| HTTP Status | Application Code | Meaning |
|---|---|---|
200 | 0 | OK |
400 | 11000 | Bad Request |
401 | 12001 | Unauthorized |
404 | 11004 | Not Found |
422 | 11000 | Unprocessable Entity |
429 | 13000 | Too Many Requests |
500 | 10000 | Internal Server Error |