List Worker Tasks
Method: GET
Endpoint: /api/v2/worker-tasks
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”/api/v2/worker-tasksList worker tasksStored only in this browser tab. Sent only to https://openapi.coreclaw.com.
Page number, 1-based. `offset=1` is page 1, `offset=2` is page 2; `offset=0` is accepted as page 1. Out-of-range pages return an empty list. Constraints: default `1`; minimum 0.
Page size. Constraints: default `20`; range 1-100.
Worker slug or path. You may paste `owner/name`; the playground sends it as `owner~name` for query values. The playground prefills an official Worker (`coreclaw/google-maps-scraper`); replace it with your own.
Keyword for task title or slug.
When to use this endpoint
Section titled “When to use this endpoint”Use this endpoint to list saved Worker task templates.
Identifier Notes
Section titled “Identifier Notes”workerId/worker_idaccepts a Worker slug or a path encoded asowner~namefromowner/name.
Query Parameters
Section titled “Query Parameters”| Parameter | Required | Type | Description |
|---|---|---|---|
offset | No | integer | Page number, 1-based. offset=1 is page 1, offset=2 is page 2; offset=0 is accepted as page 1. Out-of-range pages return an empty list. Constraints: default 1; minimum 0. |
limit | No | integer | Page size. limit is capped at 100 on list and result endpoints. Constraints: default 20; range 1-100. |
worker_id | No | string | Worker slug or path. You may paste owner/name; the playground sends it as owner~name for query values. |
keyword | No | string | Keyword for task title or slug |
Request Example
Section titled “Request Example”curl -X GET "https://openapi.coreclaw.com/api/v2/worker-tasks?offset=1&limit=20&worker_id=YOUR_WORKER_ID&keyword=coffee" \ -H "Authorization: Bearer YOUR_API_KEY"Response Example
Section titled “Response Example”{ "code": 0, "data": { "count": 1, "list": [ { "id": 2001, "slug": "demo-task", "title": "Demo Task", "version": "latest", "worker_slug": "demo-worker" } ], "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.
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 |