You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| page_index | Yes | number | Result page number, default `1`|
63
-
| page_size | Yes | number | Results per page, default `10`, max `1000`|
64
-
| callback_url | Conditional | string | Callback URL for receiving run results. **Required** when `is_async=true`, optional when `is_async=false`. |
60
+
| callback_url | No | string | Callback URL for receiving run results |
65
61
66
62
#### `system` Parameters
67
63
@@ -76,17 +72,19 @@ Every Worker has its own `scraper_slug`. You can get it from the Worker page, or
76
72
77
73
#### `custom` Parameters
78
74
79
-
Build `input.parameters.custom`from the Worker's `input_schema.json`.
75
+
`input.parameters.custom`is not a fixed schema — it varies per Worker. Use one of these approaches to find the exact fields:
80
76
81
-
- Use each `properties[].name` as the key in `custom`
82
-
- Match the declared `type`, nested structure, and array shape
83
-
- Provide all fields whose schema sets `required: true`
84
-
- An empty or schema-mismatched `custom` object returns `400 Bad Request`
85
-
86
-
To find the exact `custom` fields for a specific Worker, open the Worker in the [CoreClaw Console](https://console.coreclaw.com), go to the **Input** tab, click the **API** button in the top-right corner, and select **API clients** to view ready-to-use code snippets.
77
+
-**API**: Call `GET /api/scraper?slug=<scraper_slug>` and read `data.parameters.custom` from the response. Each entry in `properties[]` maps to a field in `input.parameters.custom`.
78
+
-**Console**: Open the Worker in the [CoreClaw Console](https://console.coreclaw.com), go to the **Input** tab, click the **API** button in the top-right corner, and select **API clients** to view ready-to-use code snippets.
87
79
88
80

89
81
82
+
When building `custom`:
83
+
- Use each `properties[].name` as the key
84
+
- Match the declared `type`, nested structure, and array shape
85
+
- Provide all fields where `required: true`
86
+
- An empty or schema-mismatched `custom` object returns `400 Bad Request`
87
+
90
88
### How to get `version`
91
89
92
90
You can get the Worker version from:
@@ -97,9 +95,9 @@ You can get the Worker version from:
97
95
98
96
## Validation behavior
99
97
100
-
-**`callback_url`and `is_async`**: When `is_async=true` (default), `callback_url` is **required**. When `is_async=false` (sync mode), `callback_url` is optional.
98
+
-`callback_url`is optional for this endpoint. It is **required** for [`/api/v1/task/run`](/api/task/run/) and [`/api/v1/rerun`](/api/run/rerun/).
101
99
- Passing a `run_slug` or `task_slug` to `scraper_slug` causes request validation failure.
102
-
- Providing only generic `system` parameters is not enough if the Worker requires `custom` fields defined by its schema.
100
+
- Providing only generic `system` parameters is not enough if the Worker requires `custom` fields defined by its descriptor.
When `status = true`, the CAPTCHA has been successfully handled. You can directly proceed with login, data collection, form submission, or other business logic.
Copy file name to clipboardExpand all lines: src/content/docs/user-guide/run-worker/api-calls.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,19 +70,23 @@ POST /api/v1/scraper/run
70
70
}
71
71
```
72
72
73
-
`is_async` controls whether the run executes asynchronously. When `is_async=true` (default), `callback_url` is **required**. When `is_async=false` (sync mode), `callback_url` is optional.
73
+
`is_async` controls whether the run executes asynchronously: `true` (default) for async, `false` to wait for completion. Provide `callback_url` when you need webhook delivery of results.
74
74
75
-
`custom` is not a free-form string and not the old `custom_params` JSON string field. Its structure must match the Worker's `input_schema.json`.
75
+
`custom` is not a free-form string and not the old `custom_params` JSON string field. Its structure varies per Worker — it is not a fixed static schema.
76
76
77
-
- Use each `properties[].name` value from the Worker's `input_schema.json` as a key in `custom`
78
-
- Follow the declared `type`, nested structure, and array shape
79
-
- Provide every field whose schema sets `required: true`
80
-
- If `custom` is empty or does not match the Worker's schema, the API returns `400 Bad Request`
77
+
To find the exact fields for a specific Worker:
81
78
82
-
To find the exact `custom` fields for a specific Worker, open the Worker in the [CoreClaw Console](https://console.coreclaw.com), go to the **Input** tab, click the **API** button in the top-right corner, and select **API clients** to view ready-to-use code snippets.
79
+
-**API**: Call `GET /api/scraper?slug=<scraper_slug>` and read `data.parameters.custom` from the response. Each entry in `properties[]` maps to a field in `input.parameters.custom`.
80
+
-**Console**: Open the Worker in the [CoreClaw Console](https://console.coreclaw.com), go to the **Input** tab, click the **API** button in the top-right corner, and select **API clients** to view ready-to-use code snippets.
83
81
84
82

85
83
84
+
When building `custom`:
85
+
- Use each `properties[].name` as the key
86
+
- Follow the declared `type`, nested structure, and array shape
87
+
- Provide every field where `required: true`
88
+
- If `custom` is empty or does not match, the API returns `400 Bad Request`
0 commit comments