List Worker Last Run Results
Method: GET
Endpoint: /api/v2/workers/{workerId}/runs/last/result
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/workers/{workerId}/runs/last/resultList worker last run resultsAuthenticationRequired
Stored only in this browser tab. Sent only to https://openapi.coreclaw.com.
Parameters
Required
Worker slug or path. You may paste `owner/name`; the playground sends it as `owner~name` for path values.
Optional
Pagination offset, starting from 0. Constraints: default `0`; minimum 0.
Optional
Page size. Constraints: default `20`; range 1-100.
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 read paginated result rows for previews or tables.
Identifier Notes
Section titled “Identifier Notes”workerId/worker_idaccepts a Worker slug or a path encoded asowner~namefromowner/name.
Path Parameters
Section titled “Path Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
workerId | Yes | string | Worker slug or path. You may paste owner/name; the playground sends it as owner~name for path values. |
Query Parameters
Section titled “Query Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
offset | No | integer | Pagination offset, starting from 0. Use it for result previews, list paging, or choosing a result window. Constraints: default 0; minimum 0. |
limit | No | integer | Page size. limit is capped at 100 on list and result endpoints. Constraints: default 20; range 1-100. |
Request Example
Section titled “Request Example”curl -X GET "https://openapi.coreclaw.com/api/v2/workers/YOUR_WORKER_ID/runs/last/result?offset=0&limit=20" \ -H "Authorization: Bearer YOUR_API_KEY"Response Example
Section titled “Response Example”{ "code": 0, "data": { "count": 1, "headers": [ { "key": "title", "label": "Title" } ], "list": [ { "title": "Example result" } ], "page_index": 1, "page_size": 20 }, "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 a Worker-scoped latest-run endpoint;
workerIdis required and the operation applies only to that Worker’s latest run. lastmeans the latest run in the current scope. Use a concreterunIdendpoint when the target must be explicit.- Result lists use
offsetandlimitpagination. offsetis zero-based;limitdefaults to20and cannot exceed100.
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 |