apify-client 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +2 -1899
  2. package/dist/base/api_client.d.ts +1 -1
  3. package/dist/base/api_client.d.ts.map +1 -1
  4. package/dist/interceptors.d.ts +2 -2
  5. package/dist/interceptors.d.ts.map +1 -1
  6. package/dist/resource_clients/actor.d.ts +1 -1
  7. package/dist/resource_clients/actor.d.ts.map +1 -1
  8. package/dist/resource_clients/actor_collection.d.ts +1 -1
  9. package/dist/resource_clients/actor_collection.d.ts.map +1 -1
  10. package/dist/resource_clients/actor_env_var_collection.d.ts +1 -1
  11. package/dist/resource_clients/actor_env_var_collection.d.ts.map +1 -1
  12. package/dist/resource_clients/actor_version.d.ts +2 -2
  13. package/dist/resource_clients/actor_version.d.ts.map +1 -1
  14. package/dist/resource_clients/actor_version_collection.d.ts +1 -1
  15. package/dist/resource_clients/actor_version_collection.d.ts.map +1 -1
  16. package/dist/resource_clients/build_collection.d.ts +2 -2
  17. package/dist/resource_clients/build_collection.d.ts.map +1 -1
  18. package/dist/resource_clients/dataset_collection.d.ts +1 -1
  19. package/dist/resource_clients/dataset_collection.d.ts.map +1 -1
  20. package/dist/resource_clients/key_value_store.d.ts +1 -1
  21. package/dist/resource_clients/key_value_store.d.ts.map +1 -1
  22. package/dist/resource_clients/key_value_store_collection.d.ts +1 -1
  23. package/dist/resource_clients/key_value_store_collection.d.ts.map +1 -1
  24. package/dist/resource_clients/request_queue.d.ts +4 -4
  25. package/dist/resource_clients/request_queue.d.ts.map +1 -1
  26. package/dist/resource_clients/request_queue_collection.d.ts +1 -1
  27. package/dist/resource_clients/request_queue_collection.d.ts.map +1 -1
  28. package/dist/resource_clients/run.d.ts +1 -0
  29. package/dist/resource_clients/run.d.ts.map +1 -1
  30. package/dist/resource_clients/schedule.d.ts +2 -2
  31. package/dist/resource_clients/schedule.d.ts.map +1 -1
  32. package/dist/resource_clients/task.d.ts +2 -2
  33. package/dist/resource_clients/task.d.ts.map +1 -1
  34. package/dist/resource_clients/task_collection.d.ts +1 -1
  35. package/dist/resource_clients/task_collection.d.ts.map +1 -1
  36. package/dist/resource_clients/webhook.d.ts +3 -3
  37. package/dist/resource_clients/webhook.d.ts.map +1 -1
  38. package/dist/timezones.d.ts +1 -1
  39. package/dist/timezones.d.ts.map +1 -1
  40. package/dist/utils.d.ts +4 -4
  41. package/dist/utils.d.ts.map +1 -1
  42. package/package.json +1 -1
package/README.md CHANGED
@@ -122,1907 +122,10 @@ const { items } = await lastSucceededRunClient.dataset().listItems();
122
122
  > will be available to all runs in the future.
123
123
 
124
124
  ### Pagination
125
- Most methods named `list` or `listSomething` return a [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList).
125
+ Most methods named `list` or `listSomething` return a [<code>Promise.&lt;PaginationList&gt;</code>](/api/interface/PaginatedList).
126
126
  There are some exceptions though, like `listKeys` or `listHead` which paginate differently.
127
127
  The results you're looking for are always stored under `items` and you can use the `limit`
128
128
  property to get only a subset of results. Other props are also available, depending on the method.
129
129
 
130
130
  ## API Reference
131
- All public classes, methods and their parameters can be inspected in this API reference.
132
-
133
- <a name="ApifyClient"></a>
134
-
135
- ### [](#ApifyClient) ApifyClient
136
-
137
- ApifyClient is the official library to access [Apify API](https://docs.apify.com/api/v2) from your
138
- JavaScript applications. It runs both in Node.js and browser.
139
-
140
-
141
- * [ApifyClient](#ApifyClient)
142
- * [`new ApifyClient([options])`](#new_ApifyClient_new)
143
- * [`.actors()`](#ApifyClient+actors) ⇒ [<code>ActorCollectionClient</code>](#ActorCollectionClient)
144
- * [`.actor(id)`](#ApifyClient+actor) ⇒ [<code>ActorClient</code>](#ActorClient)
145
- * [`.build(id)`](#ApifyClient+build) ⇒ [<code>BuildClient</code>](#BuildClient)
146
- * [`.datasets()`](#ApifyClient+datasets) ⇒ [<code>DatasetCollectionClient</code>](#DatasetCollectionClient)
147
- * [`.dataset(id)`](#ApifyClient+dataset) ⇒ [<code>DatasetClient</code>](#DatasetClient)
148
- * [`.keyValueStores()`](#ApifyClient+keyValueStores) ⇒ [<code>KeyValueStoreCollectionClient</code>](#KeyValueStoreCollectionClient)
149
- * [`.keyValueStore(id)`](#ApifyClient+keyValueStore) ⇒ [<code>KeyValueStoreClient</code>](#KeyValueStoreClient)
150
- * [`.log(buildOrRunId)`](#ApifyClient+log) ⇒ [<code>LogClient</code>](#LogClient)
151
- * [`.requestQueues()`](#ApifyClient+requestQueues) ⇒ [<code>RequestQueueCollection</code>](#RequestQueueCollection)
152
- * [`.requestQueue(id, [options])`](#ApifyClient+requestQueue) ⇒ [<code>RequestQueueClient</code>](#RequestQueueClient)
153
- * [`.run(id)`](#ApifyClient+run) ⇒ [<code>RunClient</code>](#RunClient)
154
- * [`.tasks()`](#ApifyClient+tasks) ⇒ [<code>TaskCollectionClient</code>](#TaskCollectionClient)
155
- * [`.task(id)`](#ApifyClient+task) ⇒ [<code>TaskClient</code>](#TaskClient)
156
- * [`.schedules()`](#ApifyClient+schedules) ⇒ [<code>ScheduleCollectionClient</code>](#ScheduleCollectionClient)
157
- * [`.schedule(id)`](#ApifyClient+schedule) ⇒ [<code>ScheduleClient</code>](#ScheduleClient)
158
- * [`.user(id)`](#ApifyClient+user) ⇒ [<code>UserClient</code>](#UserClient)
159
- * [`.webhooks()`](#ApifyClient+webhooks) ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
160
- * [`.webhook(id)`](#ApifyClient+webhook) ⇒ [<code>WebhookClient</code>](#WebhookClient)
161
- * [`.webhookDispatches()`](#ApifyClient+webhookDispatches) ⇒ [<code>WebhookDispatchCollectionClient</code>](#WebhookDispatchCollectionClient)
162
- * [`.webhookDispatch(id)`](#ApifyClient+webhookDispatch) ⇒ [<code>WebhookDispatchClient</code>](#WebhookDispatchClient)
163
-
164
-
165
- * * *
166
-
167
- <a name="new_ApifyClient_new"></a>
168
-
169
- #### [](#ApifyClient) `new ApifyClient([options])`
170
-
171
-
172
- | Param | Type | Default |
173
- | --- | --- | --- |
174
- | [options] | <code>object</code> | |
175
- | [options.baseUrl] | <code>string</code> | <code>&quot;https://api.apify.com&quot;</code> |
176
- | [options.maxRetries] | <code>number</code> | <code>8</code> |
177
- | [options.minDelayBetweenRetriesMillis] | <code>number</code> | <code>500</code> |
178
- | [options.requestInterceptors] | <code>Array.&lt;function()&gt;</code> | |
179
- | [options.timeoutSecs] | <code>number</code> | |
180
- | [options.token] | <code>string</code> | |
181
-
182
-
183
- * * *
184
-
185
- <a name="ApifyClient+actors"></a>
186
-
187
- #### [](#ApifyClient+actors) `apifyClient.actors()` ⇒ [<code>ActorCollectionClient</code>](#ActorCollectionClient)
188
-
189
- https://docs.apify.com/api/v2#/reference/actors/actor-collection
190
-
191
-
192
- * * *
193
-
194
- <a name="ApifyClient+actor"></a>
195
-
196
- #### [](#ApifyClient+actor) `apifyClient.actor(id)` ⇒ [<code>ActorClient</code>](#ActorClient)
197
-
198
- https://docs.apify.com/api/v2#/reference/actors/actor-object
199
-
200
-
201
- | Param | Type |
202
- | --- | --- |
203
- | id | <code>string</code> |
204
-
205
-
206
- * * *
207
-
208
- <a name="ApifyClient+build"></a>
209
-
210
- #### [](#ApifyClient+build) `apifyClient.build(id)` ⇒ [<code>BuildClient</code>](#BuildClient)
211
-
212
- https://docs.apify.com/api/v2#/reference/actor-builds/build-object
213
-
214
-
215
- | Param | Type |
216
- | --- | --- |
217
- | id | <code>string</code> |
218
-
219
-
220
- * * *
221
-
222
- <a name="ApifyClient+datasets"></a>
223
-
224
- #### [](#ApifyClient+datasets) `apifyClient.datasets()` ⇒ [<code>DatasetCollectionClient</code>](#DatasetCollectionClient)
225
-
226
- https://docs.apify.com/api/v2#/reference/datasets/dataset-collection
227
-
228
-
229
- * * *
230
-
231
- <a name="ApifyClient+dataset"></a>
232
-
233
- #### [](#ApifyClient+dataset) `apifyClient.dataset(id)` ⇒ [<code>DatasetClient</code>](#DatasetClient)
234
-
235
- https://docs.apify.com/api/v2#/reference/datasets/dataset
236
-
237
-
238
- | Param | Type |
239
- | --- | --- |
240
- | id | <code>string</code> |
241
-
242
-
243
- * * *
244
-
245
- <a name="ApifyClient+keyValueStores"></a>
246
-
247
- #### [](#ApifyClient+keyValueStores) `apifyClient.keyValueStores()` ⇒ [<code>KeyValueStoreCollectionClient</code>](#KeyValueStoreCollectionClient)
248
-
249
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-collection
250
-
251
-
252
- * * *
253
-
254
- <a name="ApifyClient+keyValueStore"></a>
255
-
256
- #### [](#ApifyClient+keyValueStore) `apifyClient.keyValueStore(id)` ⇒ [<code>KeyValueStoreClient</code>](#KeyValueStoreClient)
257
-
258
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-object
259
-
260
-
261
- | Param | Type |
262
- | --- | --- |
263
- | id | <code>string</code> |
264
-
265
-
266
- * * *
267
-
268
- <a name="ApifyClient+log"></a>
269
-
270
- #### [](#ApifyClient+log) `apifyClient.log(buildOrRunId)` ⇒ [<code>LogClient</code>](#LogClient)
271
-
272
- https://docs.apify.com/api/v2#/reference/logs
273
-
274
-
275
- | Param | Type |
276
- | --- | --- |
277
- | buildOrRunId | <code>string</code> |
278
-
279
-
280
- * * *
281
-
282
- <a name="ApifyClient+requestQueues"></a>
283
-
284
- #### [](#ApifyClient+requestQueues) `apifyClient.requestQueues()` ⇒ [<code>RequestQueueCollection</code>](#RequestQueueCollection)
285
-
286
- https://docs.apify.com/api/v2#/reference/request-queues/queue-collection
287
-
288
-
289
- * * *
290
-
291
- <a name="ApifyClient+requestQueue"></a>
292
-
293
- #### [](#ApifyClient+requestQueue) `apifyClient.requestQueue(id, [options])` ⇒ [<code>RequestQueueClient</code>](#RequestQueueClient)
294
-
295
- https://docs.apify.com/api/v2#/reference/request-queues/queue
296
-
297
-
298
- | Param | Type |
299
- | --- | --- |
300
- | id | <code>string</code> |
301
- | [options] | <code>object</code> |
302
- | [options.clientKey] | <code>object</code> |
303
-
304
-
305
- * * *
306
-
307
- <a name="ApifyClient+run"></a>
308
-
309
- #### [](#ApifyClient+run) `apifyClient.run(id)` ⇒ [<code>RunClient</code>](#RunClient)
310
-
311
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages
312
-
313
-
314
- | Param | Type |
315
- | --- | --- |
316
- | id | <code>string</code> |
317
-
318
-
319
- * * *
320
-
321
- <a name="ApifyClient+tasks"></a>
322
-
323
- #### [](#ApifyClient+tasks) `apifyClient.tasks()` ⇒ [<code>TaskCollectionClient</code>](#TaskCollectionClient)
324
-
325
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-collection
326
-
327
-
328
- * * *
329
-
330
- <a name="ApifyClient+task"></a>
331
-
332
- #### [](#ApifyClient+task) `apifyClient.task(id)` ⇒ [<code>TaskClient</code>](#TaskClient)
333
-
334
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object
335
-
336
-
337
- | Param | Type |
338
- | --- | --- |
339
- | id | <code>string</code> |
340
-
341
-
342
- * * *
343
-
344
- <a name="ApifyClient+schedules"></a>
345
-
346
- #### [](#ApifyClient+schedules) `apifyClient.schedules()` ⇒ [<code>ScheduleCollectionClient</code>](#ScheduleCollectionClient)
347
-
348
- https://docs.apify.com/api/v2#/reference/schedules/schedules-collection
349
-
350
-
351
- * * *
352
-
353
- <a name="ApifyClient+schedule"></a>
354
-
355
- #### [](#ApifyClient+schedule) `apifyClient.schedule(id)` ⇒ [<code>ScheduleClient</code>](#ScheduleClient)
356
-
357
- https://docs.apify.com/api/v2#/reference/schedules/schedule-object
358
-
359
-
360
- | Param | Type |
361
- | --- | --- |
362
- | id | <code>string</code> |
363
-
364
-
365
- * * *
366
-
367
- <a name="ApifyClient+user"></a>
368
-
369
- #### [](#ApifyClient+user) `apifyClient.user(id)` ⇒ [<code>UserClient</code>](#UserClient)
370
-
371
- https://docs.apify.com/api/v2#/reference/users
372
-
373
-
374
- | Param | Type |
375
- | --- | --- |
376
- | id | <code>string</code> |
377
-
378
-
379
- * * *
380
-
381
- <a name="ApifyClient+webhooks"></a>
382
-
383
- #### [](#ApifyClient+webhooks) `apifyClient.webhooks()` ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
384
-
385
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-collection
386
-
387
-
388
- * * *
389
-
390
- <a name="ApifyClient+webhook"></a>
391
-
392
- #### [](#ApifyClient+webhook) `apifyClient.webhook(id)` ⇒ [<code>WebhookClient</code>](#WebhookClient)
393
-
394
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-object
395
-
396
-
397
- | Param | Type |
398
- | --- | --- |
399
- | id | <code>string</code> |
400
-
401
-
402
- * * *
403
-
404
- <a name="ApifyClient+webhookDispatches"></a>
405
-
406
- #### [](#ApifyClient+webhookDispatches) `apifyClient.webhookDispatches()` ⇒ [<code>WebhookDispatchCollectionClient</code>](#WebhookDispatchCollectionClient)
407
-
408
- https://docs.apify.com/api/v2#/reference/webhook-dispatches
409
-
410
-
411
- * * *
412
-
413
- <a name="ApifyClient+webhookDispatch"></a>
414
-
415
- #### [](#ApifyClient+webhookDispatch) `apifyClient.webhookDispatch(id)` ⇒ [<code>WebhookDispatchClient</code>](#WebhookDispatchClient)
416
-
417
- https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatch-object
418
-
419
-
420
- | Param | Type |
421
- | --- | --- |
422
- | id | <code>string</code> |
423
-
424
-
425
- * * *
426
-
427
- <a name="ApifyApiError"></a>
428
-
429
- ### [](#ApifyApiError) ApifyApiError
430
-
431
- An `ApifyApiError` is thrown for successful HTTP requests that reach the API,
432
- but the API responds with an error response. Typically, those are rate limit
433
- errors and internal errors, which are automatically retried, or validation
434
- errors, which are thrown immediately, because a correction by the user is
435
- needed.
436
-
437
- **Properties**
438
-
439
- | Name | Type | Description |
440
- | --- | --- | --- |
441
- | message | <code>string</code> | Error message returned by the API. |
442
- | clientMethod | <code>string</code> | The invoked resource client and the method. Known issue: Sometimes it displays as undefined because it can't be parsed from a stack trace. |
443
- | statusCode | <code>number</code> | HTTP status code of the error. |
444
- | type | <code>string</code> | The type of the error, as returned by the API. |
445
- | attempt | <code>number</code> | Number of the API call attempt. |
446
- | httpMethod | <code>string</code> | HTTP method of the API call. |
447
- | path | <code>string</code> | Full path of the API endpoint (URL excluding origin). |
448
- | originalStack | <code>string</code> | Original stack trace of the exception. It is replaced by a more informative stack with API call information. |
449
-
450
-
451
- * * *
452
-
453
- <a name="ActorClient"></a>
454
-
455
- ### [](#ActorClient) ActorClient
456
-
457
-
458
- * [ActorClient](#ActorClient)
459
- * [`.build(versionNumber, [options])`](#ActorClient+build) ⇒ <code>Promise.&lt;Build&gt;</code>
460
- * [`.builds()`](#ActorClient+builds) ⇒ [<code>BuildCollectionClient</code>](#BuildCollectionClient)
461
- * [`.call([input], [options])`](#ActorClient+call) ⇒ <code>Promise.&lt;Run&gt;</code>
462
- * [`.delete()`](#ActorClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
463
- * [`.get()`](#ActorClient+get) ⇒ <code>Promise.&lt;?Actor&gt;</code>
464
- * [`.lastRun([options])`](#ActorClient+lastRun) ⇒ [<code>RunClient</code>](#RunClient)
465
- * [`.runs()`](#ActorClient+runs) ⇒ [<code>RunCollectionClient</code>](#RunCollectionClient)
466
- * [`.start([input], [options])`](#ActorClient+start) ⇒ <code>Promise.&lt;Run&gt;</code>
467
- * [`.update(newFields)`](#ActorClient+update) ⇒ <code>Promise.&lt;Actor&gt;</code>
468
- * [`.version(versionNumber)`](#ActorClient+version) ⇒ [<code>ActorVersionClient</code>](#ActorVersionClient)
469
- * [`.versions()`](#ActorClient+versions) ⇒ [<code>ActorVersionCollectionClient</code>](#ActorVersionCollectionClient)
470
- * [`.webhooks()`](#ActorClient+webhooks) ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
471
-
472
-
473
- * * *
474
-
475
- <a name="ActorClient+build"></a>
476
-
477
- #### [](#ActorClient+build) `actorClient.build(versionNumber, [options])` ⇒ <code>Promise.&lt;Build&gt;</code>
478
-
479
- https://docs.apify.com/api/v2#/reference/actors/build-collection/build-actor
480
-
481
-
482
- | Param | Type |
483
- | --- | --- |
484
- | versionNumber | <code>string</code> |
485
- | [options] | <code>object</code> |
486
- | [options.betaPackages] | <code>boolean</code> |
487
- | [options.tag] | <code>string</code> |
488
- | [options.useCache] | <code>boolean</code> |
489
- | [options.waitForFinish] | <code>number</code> |
490
-
491
-
492
- * * *
493
-
494
- <a name="ActorClient+builds"></a>
495
-
496
- #### [](#ActorClient+builds) `actorClient.builds()` ⇒ [<code>BuildCollectionClient</code>](#BuildCollectionClient)
497
-
498
- https://docs.apify.com/api/v2#/reference/actors/build-collection
499
-
500
-
501
- * * *
502
-
503
- <a name="ActorClient+call"></a>
504
-
505
- #### [](#ActorClient+call) `actorClient.call([input], [options])` ⇒ <code>Promise.&lt;Run&gt;</code>
506
-
507
- Starts an actor and waits for it to finish before returning the Run object.
508
- It waits indefinitely, unless the `waitSecs` option is provided.
509
- https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor
510
-
511
-
512
- | Param | Type |
513
- | --- | --- |
514
- | [input] | <code>\*</code> |
515
- | [options] | <code>object</code> |
516
- | [options.build] | <code>string</code> |
517
- | [options.contentType] | <code>string</code> |
518
- | [options.memory] | <code>number</code> |
519
- | [options.timeout] | <code>number</code> |
520
- | [options.waitSecs] | <code>number</code> |
521
- | [options.webhooks] | <code>Array.&lt;object&gt;</code> |
522
-
523
-
524
- * * *
525
-
526
- <a name="ActorClient+delete"></a>
527
-
528
- #### [](#ActorClient+delete) `actorClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
529
-
530
- https://docs.apify.com/api/v2#/reference/actors/actor-object/delete-actor
531
-
532
-
533
- * * *
534
-
535
- <a name="ActorClient+get"></a>
536
-
537
- #### [](#ActorClient+get) `actorClient.get()` ⇒ <code>Promise.&lt;?Actor&gt;</code>
538
-
539
- https://docs.apify.com/api/v2#/reference/actors/actor-object/get-actor
540
-
541
-
542
- * * *
543
-
544
- <a name="ActorClient+lastRun"></a>
545
-
546
- #### [](#ActorClient+lastRun) `actorClient.lastRun([options])` ⇒ [<code>RunClient</code>](#RunClient)
547
-
548
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages
549
-
550
-
551
- | Param | Type |
552
- | --- | --- |
553
- | [options] | <code>object</code> |
554
- | [options.status] | <code>string</code> |
555
-
556
-
557
- * * *
558
-
559
- <a name="ActorClient+runs"></a>
560
-
561
- #### [](#ActorClient+runs) `actorClient.runs()` ⇒ [<code>RunCollectionClient</code>](#RunCollectionClient)
562
-
563
- https://docs.apify.com/api/v2#/reference/actors/run-collection
564
-
565
-
566
- * * *
567
-
568
- <a name="ActorClient+start"></a>
569
-
570
- #### [](#ActorClient+start) `actorClient.start([input], [options])` ⇒ <code>Promise.&lt;Run&gt;</code>
571
-
572
- Starts an actor and immediately returns the Run object.
573
- https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor
574
-
575
-
576
- | Param | Type |
577
- | --- | --- |
578
- | [input] | <code>\*</code> |
579
- | [options] | <code>object</code> |
580
- | [options.build] | <code>string</code> |
581
- | [options.contentType] | <code>string</code> |
582
- | [options.memory] | <code>number</code> |
583
- | [options.timeout] | <code>number</code> |
584
- | [options.waitForFinish] | <code>number</code> |
585
- | [options.webhooks] | <code>Array.&lt;object&gt;</code> |
586
-
587
-
588
- * * *
589
-
590
- <a name="ActorClient+update"></a>
591
-
592
- #### [](#ActorClient+update) `actorClient.update(newFields)` ⇒ <code>Promise.&lt;Actor&gt;</code>
593
-
594
- https://docs.apify.com/api/v2#/reference/actors/actor-object/update-actor
595
-
596
-
597
- | Param | Type |
598
- | --- | --- |
599
- | newFields | <code>object</code> |
600
-
601
-
602
- * * *
603
-
604
- <a name="ActorClient+version"></a>
605
-
606
- #### [](#ActorClient+version) `actorClient.version(versionNumber)` ⇒ [<code>ActorVersionClient</code>](#ActorVersionClient)
607
-
608
- https://docs.apify.com/api/v2#/reference/actors/version-object
609
-
610
-
611
- | Param | Type |
612
- | --- | --- |
613
- | versionNumber | <code>string</code> |
614
-
615
-
616
- * * *
617
-
618
- <a name="ActorClient+versions"></a>
619
-
620
- #### [](#ActorClient+versions) `actorClient.versions()` ⇒ [<code>ActorVersionCollectionClient</code>](#ActorVersionCollectionClient)
621
-
622
- https://docs.apify.com/api/v2#/reference/actors/version-collection
623
-
624
-
625
- * * *
626
-
627
- <a name="ActorClient+webhooks"></a>
628
-
629
- #### [](#ActorClient+webhooks) `actorClient.webhooks()` ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
630
-
631
- https://docs.apify.com/api/v2#/reference/actors/webhook-collection
632
-
633
-
634
- * * *
635
-
636
- <a name="ActorCollectionClient"></a>
637
-
638
- ### [](#ActorCollectionClient) ActorCollectionClient
639
-
640
-
641
- * [ActorCollectionClient](#ActorCollectionClient)
642
- * [`.create([actor])`](#ActorCollectionClient+create) ⇒ <code>Promise.&lt;Actor&gt;</code>
643
- * [`.list([options])`](#ActorCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
644
-
645
-
646
- * * *
647
-
648
- <a name="ActorCollectionClient+create"></a>
649
-
650
- #### [](#ActorCollectionClient+create) `actorCollectionClient.create([actor])` ⇒ <code>Promise.&lt;Actor&gt;</code>
651
-
652
- https://docs.apify.com/api/v2#/reference/actors/actor-collection/create-actor
653
-
654
-
655
- | Param | Type |
656
- | --- | --- |
657
- | [actor] | <code>object</code> |
658
-
659
-
660
- * * *
661
-
662
- <a name="ActorCollectionClient+list"></a>
663
-
664
- #### [](#ActorCollectionClient+list) `actorCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
665
-
666
- https://docs.apify.com/api/v2#/reference/actors/actor-collection/get-list-of-actors
667
-
668
-
669
- | Param | Type |
670
- | --- | --- |
671
- | [options] | <code>object</code> |
672
- | [options.my] | <code>boolean</code> |
673
- | [options.limit] | <code>number</code> |
674
- | [options.offset] | <code>number</code> |
675
- | [options.desc] | <code>boolean</code> |
676
-
677
-
678
- * * *
679
-
680
- <a name="ActorVersionClient"></a>
681
-
682
- ### [](#ActorVersionClient) ActorVersionClient
683
-
684
-
685
- * [ActorVersionClient](#ActorVersionClient)
686
- * [`.delete()`](#ActorVersionClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
687
- * [`.get()`](#ActorVersionClient+get) ⇒ <code>Promise.&lt;ActorVersion&gt;</code>
688
- * [`.update(newFields)`](#ActorVersionClient+update) ⇒ <code>Promise.&lt;ActorVersion&gt;</code>
689
-
690
-
691
- * * *
692
-
693
- <a name="ActorVersionClient+delete"></a>
694
-
695
- #### [](#ActorVersionClient+delete) `actorVersionClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
696
-
697
- https://docs.apify.com/api/v2#/reference/actors/version-object/delete-version
698
-
699
-
700
- * * *
701
-
702
- <a name="ActorVersionClient+get"></a>
703
-
704
- #### [](#ActorVersionClient+get) `actorVersionClient.get()` ⇒ <code>Promise.&lt;ActorVersion&gt;</code>
705
-
706
- https://docs.apify.com/api/v2#/reference/actors/version-object/get-version
707
-
708
-
709
- * * *
710
-
711
- <a name="ActorVersionClient+update"></a>
712
-
713
- #### [](#ActorVersionClient+update) `actorVersionClient.update(newFields)` ⇒ <code>Promise.&lt;ActorVersion&gt;</code>
714
-
715
- https://docs.apify.com/api/v2#/reference/actors/version-object/update-version
716
-
717
-
718
- | Param | Type |
719
- | --- | --- |
720
- | newFields | <code>object</code> |
721
-
722
-
723
- * * *
724
-
725
- <a name="ActorVersionCollectionClient"></a>
726
-
727
- ### [](#ActorVersionCollectionClient) ActorVersionCollectionClient
728
-
729
-
730
- * [ActorVersionCollectionClient](#ActorVersionCollectionClient)
731
- * [`.create([actorVersion])`](#ActorVersionCollectionClient+create) ⇒ <code>Promise.&lt;object&gt;</code>
732
- * [`.list([options])`](#ActorVersionCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
733
-
734
-
735
- * * *
736
-
737
- <a name="ActorVersionCollectionClient+create"></a>
738
-
739
- #### [](#ActorVersionCollectionClient+create) `actorVersionCollectionClient.create([actorVersion])` ⇒ <code>Promise.&lt;object&gt;</code>
740
-
741
- https://docs.apify.com/api/v2#/reference/actors/version-collection/create-version
742
-
743
-
744
- | Param | Type |
745
- | --- | --- |
746
- | [actorVersion] | <code>object</code> |
747
-
748
-
749
- * * *
750
-
751
- <a name="ActorVersionCollectionClient+list"></a>
752
-
753
- #### [](#ActorVersionCollectionClient+list) `actorVersionCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
754
-
755
- https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
756
-
757
-
758
- | Param | Type |
759
- | --- | --- |
760
- | [options] | <code>object</code> |
761
- | [options.limit] | <code>number</code> |
762
- | [options.offset] | <code>number</code> |
763
- | [options.desc] | <code>boolean</code> |
764
-
765
-
766
- * * *
767
-
768
- <a name="BuildClient"></a>
769
-
770
- ### [](#BuildClient) BuildClient
771
-
772
-
773
- * [BuildClient](#BuildClient)
774
- * [`.abort()`](#BuildClient+abort) ⇒ <code>Promise.&lt;Build&gt;</code>
775
- * [`.get([options])`](#BuildClient+get) ⇒ <code>Promise.&lt;Build&gt;</code>
776
- * [`.waitForFinish([options])`](#BuildClient+waitForFinish) ⇒ <code>Promise.&lt;Build&gt;</code>
777
-
778
-
779
- * * *
780
-
781
- <a name="BuildClient+abort"></a>
782
-
783
- #### [](#BuildClient+abort) `buildClient.abort()` ⇒ <code>Promise.&lt;Build&gt;</code>
784
-
785
- https://docs.apify.com/api/v2#/reference/actor-builds/abort-build/abort-build
786
-
787
-
788
- * * *
789
-
790
- <a name="BuildClient+get"></a>
791
-
792
- #### [](#BuildClient+get) `buildClient.get([options])` ⇒ <code>Promise.&lt;Build&gt;</code>
793
-
794
- https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build
795
-
796
-
797
- | Param | Type |
798
- | --- | --- |
799
- | [options] | <code>object</code> |
800
- | [options.waitForFinish] | <code>number</code> |
801
-
802
-
803
- * * *
804
-
805
- <a name="BuildClient+waitForFinish"></a>
806
-
807
- #### [](#BuildClient+waitForFinish) `buildClient.waitForFinish([options])` ⇒ <code>Promise.&lt;Build&gt;</code>
808
-
809
- Returns a promise that resolves with the finished Build object when the provided actor build finishes
810
- or with the unfinished Build object when the `waitSecs` timeout lapses. The promise is NOT rejected
811
- based on run status. You can inspect the `status` property of the Build object to find out its status.
812
-
813
- The difference between this function and the `waitForFinish` parameter of the `get` method
814
- is the fact that this function can wait indefinitely. Its use is preferable to the
815
- `waitForFinish` parameter alone, which it uses internally.
816
-
817
- This is useful when you need to immediately start a run after a build finishes.
818
-
819
-
820
- | Param | Type | Description |
821
- | --- | --- | --- |
822
- | [options] | <code>object</code> | |
823
- | [options.waitSecs] | <code>number</code> | Maximum time to wait for the build to finish, in seconds. If the limit is reached, the returned promise is resolved to a build object that will have status `READY` or `RUNNING`. If `waitSecs` omitted, the function waits indefinitely. |
824
-
825
-
826
- * * *
827
-
828
- <a name="BuildCollectionClient"></a>
829
-
830
- ### [](#BuildCollectionClient) BuildCollectionClient
831
-
832
-
833
- * * *
834
-
835
- <a name="BuildCollectionClient+list"></a>
836
-
837
- #### [](#BuildCollectionClient+list) `buildCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
838
-
839
- https://docs.apify.com/api/v2#/reference/actors/build-collection/get-list-of-builds
840
-
841
-
842
- | Param | Type |
843
- | --- | --- |
844
- | [options] | <code>object</code> |
845
- | [options.limit] | <code>number</code> |
846
- | [options.offset] | <code>number</code> |
847
- | [options.desc] | <code>boolean</code> |
848
-
849
-
850
- * * *
851
-
852
- <a name="DatasetClient"></a>
853
-
854
- ### [](#DatasetClient) DatasetClient
855
-
856
-
857
- * [DatasetClient](#DatasetClient)
858
- * [`.delete()`](#DatasetClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
859
- * [`.downloadItems(format, [options])`](#DatasetClient+downloadItems) ⇒ <code>Promise.&lt;Buffer&gt;</code>
860
- * [`.get()`](#DatasetClient+get) ⇒ <code>Promise.&lt;Dataset&gt;</code>
861
- * [`.listItems([options])`](#DatasetClient+listItems) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
862
- * [`.pushItems(items)`](#DatasetClient+pushItems) ⇒ <code>Promise.&lt;void&gt;</code>
863
- * [`.update(newFields)`](#DatasetClient+update) ⇒ <code>Promise.&lt;Dataset&gt;</code>
864
-
865
-
866
- * * *
867
-
868
- <a name="DatasetClient+delete"></a>
869
-
870
- #### [](#DatasetClient+delete) `datasetClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
871
-
872
- https://docs.apify.com/api/v2#/reference/datasets/dataset/delete-dataset
873
-
874
-
875
- * * *
876
-
877
- <a name="DatasetClient+downloadItems"></a>
878
-
879
- #### [](#DatasetClient+downloadItems) `datasetClient.downloadItems(format, [options])` ⇒ <code>Promise.&lt;Buffer&gt;</code>
880
-
881
- Unlike `listItems` which returns a [PaginationList](#PaginationList) with an array of individual
882
- dataset items, `downloadItems` returns the items serialized to the provided format.
883
- https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items
884
-
885
-
886
- | Param | Type | Description |
887
- | --- | --- | --- |
888
- | format | <code>string</code> | One of json, jsonl, xml, html, csv, xlsx, rss |
889
- | [options] | <code>object</code> | |
890
- | [options.attachment] | <code>boolean</code> | |
891
- | [options.bom] | <code>boolean</code> | |
892
- | [options.clean] | <code>boolean</code> | |
893
- | [options.delimiter] | <code>string</code> | |
894
- | [options.desc] | <code>boolean</code> | |
895
- | [options.fields] | <code>Array.&lt;string&gt;</code> | |
896
- | [options.omit] | <code>Array.&lt;string&gt;</code> | |
897
- | [options.limit] | <code>number</code> | |
898
- | [options.offset] | <code>number</code> | |
899
- | [options.skipEmpty] | <code>boolean</code> | |
900
- | [options.skipHeaderRow] | <code>boolean</code> | |
901
- | [options.skipHidden] | <code>boolean</code> | |
902
- | [options.unwind] | <code>string</code> | |
903
- | [options.xmlRoot] | <code>string</code> | |
904
- | [options.xmlRow] | <code>string</code> | |
905
-
906
-
907
- * * *
908
-
909
- <a name="DatasetClient+get"></a>
910
-
911
- #### [](#DatasetClient+get) `datasetClient.get()` ⇒ <code>Promise.&lt;Dataset&gt;</code>
912
-
913
- https://docs.apify.com/api/v2#/reference/datasets/dataset/get-dataset
914
-
915
-
916
- * * *
917
-
918
- <a name="DatasetClient+listItems"></a>
919
-
920
- #### [](#DatasetClient+listItems) `datasetClient.listItems([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
921
-
922
- https://docs.apify.com/api/v2#/reference/datasets/item-collection/get-items
923
-
924
-
925
- | Param | Type |
926
- | --- | --- |
927
- | [options] | <code>object</code> |
928
- | [options.clean] | <code>boolean</code> |
929
- | [options.desc] | <code>boolean</code> |
930
- | [options.fields] | <code>Array.&lt;string&gt;</code> |
931
- | [options.omit] | <code>Array.&lt;string&gt;</code> |
932
- | [options.limit] | <code>number</code> |
933
- | [options.offset] | <code>number</code> |
934
- | [options.skipEmpty] | <code>boolean</code> |
935
- | [options.skipHidden] | <code>boolean</code> |
936
- | [options.unwind] | <code>string</code> |
937
-
938
-
939
- * * *
940
-
941
- <a name="DatasetClient+pushItems"></a>
942
-
943
- #### [](#DatasetClient+pushItems) `datasetClient.pushItems(items)` ⇒ <code>Promise.&lt;void&gt;</code>
944
-
945
- https://docs.apify.com/api/v2#/reference/datasets/item-collection/put-items
946
-
947
-
948
- | Param | Type |
949
- | --- | --- |
950
- | items | <code>object</code> \| <code>string</code> \| <code>Array.&lt;(object\|string)&gt;</code> |
951
-
952
-
953
- * * *
954
-
955
- <a name="DatasetClient+update"></a>
956
-
957
- #### [](#DatasetClient+update) `datasetClient.update(newFields)` ⇒ <code>Promise.&lt;Dataset&gt;</code>
958
-
959
- https://docs.apify.com/api/v2#/reference/datasets/dataset/update-dataset
960
-
961
-
962
- | Param | Type |
963
- | --- | --- |
964
- | newFields | <code>object</code> |
965
-
966
-
967
- * * *
968
-
969
- <a name="DatasetCollectionClient"></a>
970
-
971
- ### [](#DatasetCollectionClient) DatasetCollectionClient
972
-
973
-
974
- * [DatasetCollectionClient](#DatasetCollectionClient)
975
- * [`.getOrCreate([name])`](#DatasetCollectionClient+getOrCreate) ⇒ <code>Promise.&lt;object&gt;</code>
976
- * [`.list([options])`](#DatasetCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
977
-
978
-
979
- * * *
980
-
981
- <a name="DatasetCollectionClient+getOrCreate"></a>
982
-
983
- #### [](#DatasetCollectionClient+getOrCreate) `datasetCollectionClient.getOrCreate([name])` ⇒ <code>Promise.&lt;object&gt;</code>
984
-
985
- https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/create-dataset
986
-
987
-
988
- | Param | Type |
989
- | --- | --- |
990
- | [name] | <code>string</code> |
991
-
992
-
993
- * * *
994
-
995
- <a name="DatasetCollectionClient+list"></a>
996
-
997
- #### [](#DatasetCollectionClient+list) `datasetCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
998
-
999
- https://docs.apify.com/api/v2#/reference/datasets/dataset-collection/get-list-of-datasets
1000
-
1001
-
1002
- | Param | Type |
1003
- | --- | --- |
1004
- | [options] | <code>object</code> |
1005
- | [options.unnamed] | <code>boolean</code> |
1006
- | [options.limit] | <code>number</code> |
1007
- | [options.offset] | <code>number</code> |
1008
- | [options.desc] | <code>boolean</code> |
1009
-
1010
-
1011
- * * *
1012
-
1013
- <a name="KeyValueStoreClient"></a>
1014
-
1015
- ### [](#KeyValueStoreClient) KeyValueStoreClient
1016
-
1017
-
1018
- * [KeyValueStoreClient](#KeyValueStoreClient)
1019
- * [`.delete()`](#KeyValueStoreClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
1020
- * [`.deleteRecord(key)`](#KeyValueStoreClient+deleteRecord) ⇒ <code>Promise.&lt;void&gt;</code>
1021
- * [`.get()`](#KeyValueStoreClient+get) ⇒ <code>Promise.&lt;KeyValueStore&gt;</code>
1022
- * [`.getRecord(key, [options])`](#KeyValueStoreClient+getRecord) ⇒ <code>Promise.&lt;(KeyValueStoreRecord\|undefined)&gt;</code>
1023
- * [`.listKeys([options])`](#KeyValueStoreClient+listKeys) ⇒ <code>Promise.&lt;object&gt;</code>
1024
- * [`.setRecord(record)`](#KeyValueStoreClient+setRecord) ⇒ <code>Promise.&lt;void&gt;</code>
1025
- * [`.update(newFields)`](#KeyValueStoreClient+update) ⇒ <code>Promise.&lt;KeyValueStore&gt;</code>
1026
-
1027
-
1028
- * * *
1029
-
1030
- <a name="KeyValueStoreClient+delete"></a>
1031
-
1032
- #### [](#KeyValueStoreClient+delete) `keyValueStoreClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
1033
-
1034
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-object/delete-store
1035
-
1036
-
1037
- * * *
1038
-
1039
- <a name="KeyValueStoreClient+deleteRecord"></a>
1040
-
1041
- #### [](#KeyValueStoreClient+deleteRecord) `keyValueStoreClient.deleteRecord(key)` ⇒ <code>Promise.&lt;void&gt;</code>
1042
-
1043
- https://docs.apify.com/api/v2#/reference/key-value-stores/record/delete-record
1044
-
1045
-
1046
- | Param | Type |
1047
- | --- | --- |
1048
- | key | <code>string</code> |
1049
-
1050
-
1051
- * * *
1052
-
1053
- <a name="KeyValueStoreClient+get"></a>
1054
-
1055
- #### [](#KeyValueStoreClient+get) `keyValueStoreClient.get()` ⇒ <code>Promise.&lt;KeyValueStore&gt;</code>
1056
-
1057
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-object/get-store
1058
-
1059
-
1060
- * * *
1061
-
1062
- <a name="KeyValueStoreClient+getRecord"></a>
1063
-
1064
- #### [](#KeyValueStoreClient+getRecord) `keyValueStoreClient.getRecord(key, [options])` ⇒ <code>Promise.&lt;(KeyValueStoreRecord\|undefined)&gt;</code>
1065
-
1066
- You can use the `buffer` option to get the value in a Buffer (Node.js)
1067
- or ArrayBuffer (browser) format. In Node.js (not in browser) you can also
1068
- use the `stream` option to get a Readable stream.
1069
-
1070
- When the record does not exist, the function resolves to `undefined`. It does
1071
- NOT resolve to a `KeyValueStore` record with an `undefined` value.
1072
- https://docs.apify.com/api/v2#/reference/key-value-stores/record/get-record
1073
-
1074
-
1075
- | Param | Type |
1076
- | --- | --- |
1077
- | key | <code>string</code> |
1078
- | [options] | <code>object</code> |
1079
- | [options.buffer] | <code>boolean</code> |
1080
- | [options.stream] | <code>boolean</code> |
1081
-
1082
-
1083
- * * *
1084
-
1085
- <a name="KeyValueStoreClient+listKeys"></a>
1086
-
1087
- #### [](#KeyValueStoreClient+listKeys) `keyValueStoreClient.listKeys([options])` ⇒ <code>Promise.&lt;object&gt;</code>
1088
-
1089
- https://docs.apify.com/api/v2#/reference/key-value-stores/key-collection/get-list-of-keys
1090
-
1091
-
1092
- | Param | Type |
1093
- | --- | --- |
1094
- | [options] | <code>object</code> |
1095
- | [options.limit] | <code>object</code> |
1096
- | [options.exclusiveStartKey] | <code>string</code> |
1097
-
1098
-
1099
- * * *
1100
-
1101
- <a name="KeyValueStoreClient+setRecord"></a>
1102
-
1103
- #### [](#KeyValueStoreClient+setRecord) `keyValueStoreClient.setRecord(record)` ⇒ <code>Promise.&lt;void&gt;</code>
1104
-
1105
- The value in the record can be a stream object (detected by having the `.pipe`
1106
- and `.on` methods). However, note that in that case following redirects or
1107
- retrying the request if it fails (for example due to rate limiting) isn't
1108
- possible. If you want to keep that behavior, you need to collect the whole
1109
- stream contents into a Buffer and then send the full buffer. See [this
1110
- StackOverflow answer](https://stackoverflow.com/a/14269536/7292139) for
1111
- an example how to do that.
1112
-
1113
- https://docs.apify.com/api/v2#/reference/key-value-stores/record/put-record
1114
-
1115
-
1116
- | Param | Type |
1117
- | --- | --- |
1118
- | record | [<code>KeyValueStoreRecord</code>](#KeyValueStoreRecord) |
1119
-
1120
-
1121
- * * *
1122
-
1123
- <a name="KeyValueStoreClient+update"></a>
1124
-
1125
- #### [](#KeyValueStoreClient+update) `keyValueStoreClient.update(newFields)` ⇒ <code>Promise.&lt;KeyValueStore&gt;</code>
1126
-
1127
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-object/update-store
1128
-
1129
-
1130
- | Param | Type |
1131
- | --- | --- |
1132
- | newFields | <code>object</code> |
1133
-
1134
-
1135
- * * *
1136
-
1137
- <a name="KeyValueStoreCollectionClient"></a>
1138
-
1139
- ### [](#KeyValueStoreCollectionClient) KeyValueStoreCollectionClient
1140
-
1141
-
1142
- * [KeyValueStoreCollectionClient](#KeyValueStoreCollectionClient)
1143
- * [`.getOrCreate([name])`](#KeyValueStoreCollectionClient+getOrCreate) ⇒ <code>Promise.&lt;object&gt;</code>
1144
- * [`.list([options])`](#KeyValueStoreCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1145
-
1146
-
1147
- * * *
1148
-
1149
- <a name="KeyValueStoreCollectionClient+getOrCreate"></a>
1150
-
1151
- #### [](#KeyValueStoreCollectionClient+getOrCreate) `keyValueStoreCollectionClient.getOrCreate([name])` ⇒ <code>Promise.&lt;object&gt;</code>
1152
-
1153
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-collection/create-key-value-store
1154
-
1155
-
1156
- | Param | Type |
1157
- | --- | --- |
1158
- | [name] | <code>string</code> |
1159
-
1160
-
1161
- * * *
1162
-
1163
- <a name="KeyValueStoreCollectionClient+list"></a>
1164
-
1165
- #### [](#KeyValueStoreCollectionClient+list) `keyValueStoreCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1166
-
1167
- https://docs.apify.com/api/v2#/reference/key-value-stores/store-collection/get-list-of-key-value-stores
1168
-
1169
-
1170
- | Param | Type |
1171
- | --- | --- |
1172
- | [options] | <code>object</code> |
1173
- | [options.unnamed] | <code>boolean</code> |
1174
- | [options.limit] | <code>number</code> |
1175
- | [options.offset] | <code>number</code> |
1176
- | [options.desc] | <code>boolean</code> |
1177
-
1178
-
1179
- * * *
1180
-
1181
- <a name="KeyValueStoreRecord"></a>
1182
-
1183
- ### [](#KeyValueStoreRecord) `KeyValueStoreRecord` : <code>object</code>
1184
-
1185
- **Properties**
1186
-
1187
- | Name | Type |
1188
- | --- | --- |
1189
- | key | <code>string</code> |
1190
- | value | <code>null</code> \| <code>string</code> \| <code>number</code> \| <code>object</code> |
1191
- | [contentType] | <code>string</code> |
1192
-
1193
-
1194
- * * *
1195
-
1196
- <a name="LogClient"></a>
1197
-
1198
- ### [](#LogClient) LogClient
1199
-
1200
-
1201
- * [LogClient](#LogClient)
1202
- * [`.get()`](#LogClient+get) ⇒ <code>Promise.&lt;?string&gt;</code>
1203
- * [`.stream()`](#LogClient+stream) ⇒ <code>Promise.&lt;?Readable&gt;</code>
1204
-
1205
-
1206
- * * *
1207
-
1208
- <a name="LogClient+get"></a>
1209
-
1210
- #### [](#LogClient+get) `logClient.get()` ⇒ <code>Promise.&lt;?string&gt;</code>
1211
-
1212
- https://docs.apify.com/api/v2#/reference/logs/log/get-log
1213
-
1214
-
1215
- * * *
1216
-
1217
- <a name="LogClient+stream"></a>
1218
-
1219
- #### [](#LogClient+stream) `logClient.stream()` ⇒ <code>Promise.&lt;?Readable&gt;</code>
1220
-
1221
- Gets the log in a Readable stream format. Only works in Node.js.
1222
- https://docs.apify.com/api/v2#/reference/logs/log/get-log
1223
-
1224
-
1225
- * * *
1226
-
1227
- <a name="PaginationList"></a>
1228
-
1229
- ### [](#PaginationList) `PaginationList` : <code>object</code>
1230
-
1231
- **Properties**
1232
-
1233
- | Name | Type | Description |
1234
- | --- | --- | --- |
1235
- | items | <code>Array.&lt;object&gt;</code> | List of returned objects |
1236
- | total | <code>number</code> | Total number of objects |
1237
- | offset | <code>number</code> | Number of objects that were skipped |
1238
- | count | <code>number</code> | Number of returned objects |
1239
- | limit | <code>number</code> | Requested limit |
1240
-
1241
-
1242
- * * *
1243
-
1244
- <a name="RequestQueueClient"></a>
1245
-
1246
- ### [](#RequestQueueClient) RequestQueueClient
1247
-
1248
-
1249
- * [RequestQueueClient](#RequestQueueClient)
1250
- * [`.addRequest(request, [options])`](#RequestQueueClient+addRequest) ⇒ <code>Promise.&lt;object&gt;</code>
1251
- * [`.delete()`](#RequestQueueClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
1252
- * [`.deleteRequest(id)`](#RequestQueueClient+deleteRequest) ⇒ <code>Promise.&lt;void&gt;</code>
1253
- * [`.get()`](#RequestQueueClient+get) ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1254
- * [`.getRequest(id)`](#RequestQueueClient+getRequest) ⇒ <code>Promise.&lt;?object&gt;</code>
1255
- * [`.listHead([options])`](#RequestQueueClient+listHead) ⇒ <code>Promise.&lt;object&gt;</code>
1256
- * [`.update(newFields)`](#RequestQueueClient+update) ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1257
- * [`.updateRequest(request, [options])`](#RequestQueueClient+updateRequest) ⇒ <code>Promise.&lt;\*&gt;</code>
1258
-
1259
-
1260
- * * *
1261
-
1262
- <a name="RequestQueueClient+addRequest"></a>
1263
-
1264
- #### [](#RequestQueueClient+addRequest) `requestQueueClient.addRequest(request, [options])` ⇒ <code>Promise.&lt;object&gt;</code>
1265
-
1266
- https://docs.apify.com/api/v2#/reference/request-queues/request-collection/add-request
1267
-
1268
-
1269
- | Param | Type |
1270
- | --- | --- |
1271
- | request | <code>object</code> |
1272
- | [options] | <code>object</code> |
1273
- | [options.forefront] | <code>boolean</code> |
1274
-
1275
-
1276
- * * *
1277
-
1278
- <a name="RequestQueueClient+delete"></a>
1279
-
1280
- #### [](#RequestQueueClient+delete) `requestQueueClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
1281
-
1282
- https://docs.apify.com/api/v2#/reference/request-queues/queue/delete-request-queue
1283
-
1284
-
1285
- * * *
1286
-
1287
- <a name="RequestQueueClient+deleteRequest"></a>
1288
-
1289
- #### [](#RequestQueueClient+deleteRequest) `requestQueueClient.deleteRequest(id)` ⇒ <code>Promise.&lt;void&gt;</code>
1290
-
1291
-
1292
- | Param | Type |
1293
- | --- | --- |
1294
- | id | <code>string</code> |
1295
-
1296
-
1297
- * * *
1298
-
1299
- <a name="RequestQueueClient+get"></a>
1300
-
1301
- #### [](#RequestQueueClient+get) `requestQueueClient.get()` ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1302
-
1303
- https://docs.apify.com/api/v2#/reference/request-queues/queue/get-request-queue
1304
-
1305
-
1306
- * * *
1307
-
1308
- <a name="RequestQueueClient+getRequest"></a>
1309
-
1310
- #### [](#RequestQueueClient+getRequest) `requestQueueClient.getRequest(id)` ⇒ <code>Promise.&lt;?object&gt;</code>
1311
-
1312
- https://docs.apify.com/api/v2#/reference/request-queues/request/get-request
1313
-
1314
-
1315
- | Param | Type |
1316
- | --- | --- |
1317
- | id | <code>string</code> |
1318
-
1319
-
1320
- * * *
1321
-
1322
- <a name="RequestQueueClient+listHead"></a>
1323
-
1324
- #### [](#RequestQueueClient+listHead) `requestQueueClient.listHead([options])` ⇒ <code>Promise.&lt;object&gt;</code>
1325
-
1326
- https://docs.apify.com/api/v2#/reference/request-queues/queue-head/get-head
1327
-
1328
-
1329
- | Param | Type |
1330
- | --- | --- |
1331
- | [options] | <code>object</code> |
1332
- | [options.limit] | <code>number</code> |
1333
-
1334
-
1335
- * * *
1336
-
1337
- <a name="RequestQueueClient+update"></a>
1338
-
1339
- #### [](#RequestQueueClient+update) `requestQueueClient.update(newFields)` ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1340
-
1341
- https://docs.apify.com/api/v2#/reference/request-queues/queue/update-request-queue
1342
-
1343
-
1344
- | Param | Type |
1345
- | --- | --- |
1346
- | newFields | <code>object</code> |
1347
-
1348
-
1349
- * * *
1350
-
1351
- <a name="RequestQueueClient+updateRequest"></a>
1352
-
1353
- #### [](#RequestQueueClient+updateRequest) `requestQueueClient.updateRequest(request, [options])` ⇒ <code>Promise.&lt;\*&gt;</code>
1354
-
1355
- https://docs.apify.com/api/v2#/reference/request-queues/request/update-request
1356
-
1357
-
1358
- | Param | Type |
1359
- | --- | --- |
1360
- | request | <code>object</code> |
1361
- | [options] | <code>object</code> |
1362
- | [options.forefront] | <code>boolean</code> |
1363
-
1364
-
1365
- * * *
1366
-
1367
- <a name="RequestQueueCollection"></a>
1368
-
1369
- ### [](#RequestQueueCollection) RequestQueueCollection
1370
-
1371
-
1372
- * [RequestQueueCollection](#RequestQueueCollection)
1373
- * [`.getOrCreate([name])`](#RequestQueueCollection+getOrCreate) ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1374
- * [`.list([options])`](#RequestQueueCollection+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1375
-
1376
-
1377
- * * *
1378
-
1379
- <a name="RequestQueueCollection+getOrCreate"></a>
1380
-
1381
- #### [](#RequestQueueCollection+getOrCreate) `requestQueueCollection.getOrCreate([name])` ⇒ <code>Promise.&lt;RequestQueue&gt;</code>
1382
-
1383
- https://docs.apify.com/api/v2#/reference/request-queues/queue-collection/create-request-queue
1384
-
1385
-
1386
- | Param | Type |
1387
- | --- | --- |
1388
- | [name] | <code>string</code> |
1389
-
1390
-
1391
- * * *
1392
-
1393
- <a name="RequestQueueCollection+list"></a>
1394
-
1395
- #### [](#RequestQueueCollection+list) `requestQueueCollection.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1396
-
1397
- https://docs.apify.com/api/v2#/reference/request-queues/queue-collection/get-list-of-request-queues
1398
-
1399
-
1400
- | Param | Type |
1401
- | --- | --- |
1402
- | [options] | <code>object</code> |
1403
- | [options.unnamed] | <code>boolean</code> |
1404
- | [options.limit] | <code>number</code> |
1405
- | [options.offset] | <code>number</code> |
1406
- | [options.desc] | <code>boolean</code> |
1407
-
1408
-
1409
- * * *
1410
-
1411
- <a name="RunClient"></a>
1412
-
1413
- ### [](#RunClient) RunClient
1414
-
1415
-
1416
- * [RunClient](#RunClient)
1417
- * [`.abort()`](#RunClient+abort) ⇒ <code>Promise.&lt;Run&gt;</code>
1418
- * [`.dataset()`](#RunClient+dataset) ⇒ [<code>DatasetClient</code>](#DatasetClient)
1419
- * [`.get([options])`](#RunClient+get) ⇒ <code>Promise.&lt;Run&gt;</code>
1420
- * [`.keyValueStore()`](#RunClient+keyValueStore) ⇒ [<code>KeyValueStoreClient</code>](#KeyValueStoreClient)
1421
- * [`.log()`](#RunClient+log) ⇒ [<code>LogClient</code>](#LogClient)
1422
- * [`.metamorph(targetActorId, [input], [options])`](#RunClient+metamorph) ⇒ <code>Promise.&lt;Run&gt;</code>
1423
- * [`.requestQueue()`](#RunClient+requestQueue) ⇒ [<code>RequestQueueClient</code>](#RequestQueueClient)
1424
- * [`.resurrect([options])`](#RunClient+resurrect) ⇒ <code>Promise.&lt;Run&gt;</code>
1425
- * [`.waitForFinish([options])`](#RunClient+waitForFinish) ⇒ <code>Promise.&lt;Run&gt;</code>
1426
-
1427
-
1428
- * * *
1429
-
1430
- <a name="RunClient+abort"></a>
1431
-
1432
- #### [](#RunClient+abort) `runClient.abort()` ⇒ <code>Promise.&lt;Run&gt;</code>
1433
-
1434
- https://docs.apify.com/api/v2#/reference/actor-runs/abort-run/abort-run
1435
-
1436
-
1437
- * * *
1438
-
1439
- <a name="RunClient+dataset"></a>
1440
-
1441
- #### [](#RunClient+dataset) `runClient.dataset()` ⇒ [<code>DatasetClient</code>](#DatasetClient)
1442
-
1443
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages
1444
-
1445
- This also works through `actorClient.lastRun().dataset()`.
1446
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages
1447
-
1448
-
1449
- * * *
1450
-
1451
- <a name="RunClient+get"></a>
1452
-
1453
- #### [](#RunClient+get) `runClient.get([options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1454
-
1455
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object/get-run
1456
-
1457
-
1458
- | Param | Type |
1459
- | --- | --- |
1460
- | [options] | <code>object</code> |
1461
- | [options.waitForFinish] | <code>number</code> |
1462
-
1463
-
1464
- * * *
1465
-
1466
- <a name="RunClient+keyValueStore"></a>
1467
-
1468
- #### [](#RunClient+keyValueStore) `runClient.keyValueStore()` ⇒ [<code>KeyValueStoreClient</code>](#KeyValueStoreClient)
1469
-
1470
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages
1471
-
1472
- This also works through `actorClient.lastRun().keyValueStore()`.
1473
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages
1474
-
1475
-
1476
- * * *
1477
-
1478
- <a name="RunClient+log"></a>
1479
-
1480
- #### [](#RunClient+log) `runClient.log()` ⇒ [<code>LogClient</code>](#LogClient)
1481
-
1482
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages
1483
-
1484
- This also works through `actorClient.lastRun().log()`.
1485
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages
1486
-
1487
-
1488
- * * *
1489
-
1490
- <a name="RunClient+metamorph"></a>
1491
-
1492
- #### [](#RunClient+metamorph) `runClient.metamorph(targetActorId, [input], [options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1493
-
1494
- https://docs.apify.com/api/v2#/reference/actor-runs/metamorph-run/metamorph-run
1495
-
1496
-
1497
- | Param | Type |
1498
- | --- | --- |
1499
- | targetActorId | <code>string</code> |
1500
- | [input] | <code>\*</code> |
1501
- | [options] | <code>object</code> |
1502
- | [options.contentType] | <code>object</code> |
1503
- | [options.build] | <code>object</code> |
1504
-
1505
-
1506
- * * *
1507
-
1508
- <a name="RunClient+requestQueue"></a>
1509
-
1510
- #### [](#RunClient+requestQueue) `runClient.requestQueue()` ⇒ [<code>RequestQueueClient</code>](#RequestQueueClient)
1511
-
1512
- https://docs.apify.com/api/v2#/reference/actor-runs/run-object-and-its-storages
1513
-
1514
- This also works through `actorClient.lastRun().requestQueue()`.
1515
- https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages
1516
-
1517
-
1518
- * * *
1519
-
1520
- <a name="RunClient+resurrect"></a>
1521
-
1522
- #### [](#RunClient+resurrect) `runClient.resurrect([options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1523
-
1524
- https://docs.apify.com/api/v2#/reference/actor-runs/resurrect-run/resurrect-run
1525
-
1526
-
1527
- | Param | Type |
1528
- | --- | --- |
1529
- | [options] | <code>object</code> |
1530
- | [options.build] | <code>string</code> |
1531
- | [options.memory] | <code>number</code> |
1532
- | [options.timeout] | <code>number</code> |
1533
-
1534
-
1535
- * * *
1536
-
1537
- <a name="RunClient+waitForFinish"></a>
1538
-
1539
- #### [](#RunClient+waitForFinish) `runClient.waitForFinish([options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1540
-
1541
- Returns a promise that resolves with the finished Run object when the provided actor run finishes
1542
- or with the unfinished Run object when the `waitSecs` timeout lapses. The promise is NOT rejected
1543
- based on run status. You can inspect the `status` property of the Run object to find out its status.
1544
-
1545
- The difference between this function and the `waitForFinish` parameter of the `get` method
1546
- is the fact that this function can wait indefinitely. Its use is preferable to the
1547
- `waitForFinish` parameter alone, which it uses internally.
1548
-
1549
- This is useful when you need to chain actor executions. Similar effect can be achieved
1550
- by using webhooks, so be sure to review which technique fits your use-case better.
1551
-
1552
-
1553
- | Param | Type | Description |
1554
- | --- | --- | --- |
1555
- | [options] | <code>object</code> | |
1556
- | [options.waitSecs] | <code>number</code> | Maximum time to wait for the run to finish, in seconds. If the limit is reached, the returned promise is resolved to a run object that will have status `READY` or `RUNNING`. If `waitSecs` omitted, the function waits indefinitely. |
1557
-
1558
-
1559
- * * *
1560
-
1561
- <a name="RunCollectionClient"></a>
1562
-
1563
- ### [](#RunCollectionClient) RunCollectionClient
1564
-
1565
-
1566
- * * *
1567
-
1568
- <a name="RunCollectionClient+list"></a>
1569
-
1570
- #### [](#RunCollectionClient+list) `runCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1571
-
1572
- https://docs.apify.com/api/v2#/reference/actors/run-collection/get-list-of-runs
1573
-
1574
-
1575
- | Param | Type |
1576
- | --- | --- |
1577
- | [options] | <code>object</code> |
1578
- | [options.limit] | <code>number</code> |
1579
- | [options.offset] | <code>number</code> |
1580
- | [options.desc] | <code>boolean</code> |
1581
- | [options.status] | <code>string</code> |
1582
-
1583
-
1584
- * * *
1585
-
1586
- <a name="ScheduleClient"></a>
1587
-
1588
- ### [](#ScheduleClient) ScheduleClient
1589
-
1590
-
1591
- * [ScheduleClient](#ScheduleClient)
1592
- * [`.delete()`](#ScheduleClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
1593
- * [`.get()`](#ScheduleClient+get) ⇒ <code>Promise.&lt;?Schedule&gt;</code>
1594
- * [`.getLog()`](#ScheduleClient+getLog) ⇒ <code>Promise.&lt;?string&gt;</code>
1595
- * [`.update(newFields)`](#ScheduleClient+update) ⇒ <code>Promise.&lt;Schedule&gt;</code>
1596
-
1597
-
1598
- * * *
1599
-
1600
- <a name="ScheduleClient+delete"></a>
1601
-
1602
- #### [](#ScheduleClient+delete) `scheduleClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
1603
-
1604
- https://docs.apify.com/api/v2#/reference/schedules/schedule-object/delete-schedule
1605
-
1606
-
1607
- * * *
1608
-
1609
- <a name="ScheduleClient+get"></a>
1610
-
1611
- #### [](#ScheduleClient+get) `scheduleClient.get()` ⇒ <code>Promise.&lt;?Schedule&gt;</code>
1612
-
1613
- https://docs.apify.com/api/v2#/reference/schedules/schedule-object/get-schedule
1614
-
1615
-
1616
- * * *
1617
-
1618
- <a name="ScheduleClient+getLog"></a>
1619
-
1620
- #### [](#ScheduleClient+getLog) `scheduleClient.getLog()` ⇒ <code>Promise.&lt;?string&gt;</code>
1621
-
1622
- https://docs.apify.com/api/v2#/reference/schedules/schedule-log/get-schedule-log
1623
-
1624
-
1625
- * * *
1626
-
1627
- <a name="ScheduleClient+update"></a>
1628
-
1629
- #### [](#ScheduleClient+update) `scheduleClient.update(newFields)` ⇒ <code>Promise.&lt;Schedule&gt;</code>
1630
-
1631
- https://docs.apify.com/api/v2#/reference/schedules/schedule-object/update-schedule
1632
-
1633
-
1634
- | Param | Type |
1635
- | --- | --- |
1636
- | newFields | <code>object</code> |
1637
-
1638
-
1639
- * * *
1640
-
1641
- <a name="ScheduleCollectionClient"></a>
1642
-
1643
- ### [](#ScheduleCollectionClient) ScheduleCollectionClient
1644
-
1645
-
1646
- * [ScheduleCollectionClient](#ScheduleCollectionClient)
1647
- * [`.create([schedule])`](#ScheduleCollectionClient+create) ⇒ <code>Promise.&lt;Schedule&gt;</code>
1648
- * [`.list([options])`](#ScheduleCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1649
-
1650
-
1651
- * * *
1652
-
1653
- <a name="ScheduleCollectionClient+create"></a>
1654
-
1655
- #### [](#ScheduleCollectionClient+create) `scheduleCollectionClient.create([schedule])` ⇒ <code>Promise.&lt;Schedule&gt;</code>
1656
-
1657
- https://docs.apify.com/api/v2#/reference/schedules/schedules-collection/create-schedule
1658
-
1659
-
1660
- | Param | Type |
1661
- | --- | --- |
1662
- | [schedule] | <code>object</code> |
1663
-
1664
-
1665
- * * *
1666
-
1667
- <a name="ScheduleCollectionClient+list"></a>
1668
-
1669
- #### [](#ScheduleCollectionClient+list) `scheduleCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1670
-
1671
- https://docs.apify.com/api/v2#/reference/schedules/schedules-collection/get-list-of-schedules
1672
-
1673
-
1674
- | Param | Type |
1675
- | --- | --- |
1676
- | [options] | <code>object</code> |
1677
- | [options.limit] | <code>number</code> |
1678
- | [options.offset] | <code>number</code> |
1679
- | [options.desc] | <code>boolean</code> |
1680
-
1681
-
1682
- * * *
1683
-
1684
- <a name="TaskClient"></a>
1685
-
1686
- ### [](#TaskClient) TaskClient
1687
-
1688
-
1689
- * [TaskClient](#TaskClient)
1690
- * [`.call([input], [options])`](#TaskClient+call) ⇒ <code>Promise.&lt;Run&gt;</code>
1691
- * [`.delete()`](#TaskClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
1692
- * [`.get()`](#TaskClient+get) ⇒ <code>Promise.&lt;?Task&gt;</code>
1693
- * [`.getInput()`](#TaskClient+getInput) ⇒ <code>Promise.&lt;?object&gt;</code>
1694
- * [`.lastRun(options)`](#TaskClient+lastRun) ⇒ [<code>RunClient</code>](#RunClient)
1695
- * [`.runs()`](#TaskClient+runs) ⇒ [<code>RunCollectionClient</code>](#RunCollectionClient)
1696
- * [`.start([input], [options])`](#TaskClient+start) ⇒ <code>Promise.&lt;Run&gt;</code>
1697
- * [`.update(newFields)`](#TaskClient+update) ⇒ <code>Promise.&lt;Task&gt;</code>
1698
- * [`.updateInput()`](#TaskClient+updateInput) ⇒ <code>Promise.&lt;object&gt;</code>
1699
- * [`.webhooks()`](#TaskClient+webhooks) ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
1700
-
1701
-
1702
- * * *
1703
-
1704
- <a name="TaskClient+call"></a>
1705
-
1706
- #### [](#TaskClient+call) `taskClient.call([input], [options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1707
-
1708
- Starts a task and waits for it to finish before returning the Run object.
1709
- It waits indefinitely, unless the `waitSecs` option is provided.
1710
- https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task
1711
-
1712
-
1713
- | Param | Type |
1714
- | --- | --- |
1715
- | [input] | <code>object</code> |
1716
- | [options] | <code>object</code> |
1717
- | [options.build] | <code>string</code> |
1718
- | [options.memory] | <code>number</code> |
1719
- | [options.timeout] | <code>number</code> |
1720
- | [options.waitSecs] | <code>number</code> |
1721
- | [options.webhooks] | <code>Array.&lt;object&gt;</code> |
1722
-
1723
-
1724
- * * *
1725
-
1726
- <a name="TaskClient+delete"></a>
1727
-
1728
- #### [](#TaskClient+delete) `taskClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
1729
-
1730
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/delete-task
1731
-
1732
-
1733
- * * *
1734
-
1735
- <a name="TaskClient+get"></a>
1736
-
1737
- #### [](#TaskClient+get) `taskClient.get()` ⇒ <code>Promise.&lt;?Task&gt;</code>
1738
-
1739
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/get-task
1740
-
1741
-
1742
- * * *
1743
-
1744
- <a name="TaskClient+getInput"></a>
1745
-
1746
- #### [](#TaskClient+getInput) `taskClient.getInput()` ⇒ <code>Promise.&lt;?object&gt;</code>
1747
-
1748
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-input-object/get-task-input
1749
-
1750
-
1751
- * * *
1752
-
1753
- <a name="TaskClient+lastRun"></a>
1754
-
1755
- #### [](#TaskClient+lastRun) `taskClient.lastRun(options)` ⇒ [<code>RunClient</code>](#RunClient)
1756
-
1757
- https://docs.apify.com/api/v2#/reference/actor-tasks/last-run-object-and-its-storages
1758
-
1759
-
1760
- | Param | Type |
1761
- | --- | --- |
1762
- | options | <code>object</code> |
1763
- | options.status | <code>string</code> |
1764
-
1765
-
1766
- * * *
1767
-
1768
- <a name="TaskClient+runs"></a>
1769
-
1770
- #### [](#TaskClient+runs) `taskClient.runs()` ⇒ [<code>RunCollectionClient</code>](#RunCollectionClient)
1771
-
1772
- https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection
1773
-
1774
-
1775
- * * *
1776
-
1777
- <a name="TaskClient+start"></a>
1778
-
1779
- #### [](#TaskClient+start) `taskClient.start([input], [options])` ⇒ <code>Promise.&lt;Run&gt;</code>
1780
-
1781
- Starts a task and immediately returns the Run object.
1782
- https://docs.apify.com/api/v2#/reference/actor-tasks/run-collection/run-task
1783
-
1784
-
1785
- | Param | Type |
1786
- | --- | --- |
1787
- | [input] | <code>object</code> |
1788
- | [options] | <code>object</code> |
1789
- | [options.build] | <code>string</code> |
1790
- | [options.memory] | <code>number</code> |
1791
- | [options.timeout] | <code>number</code> |
1792
- | [options.waitForFinish] | <code>number</code> |
1793
- | [options.webhooks] | <code>Array.&lt;object&gt;</code> |
1794
-
1795
-
1796
- * * *
1797
-
1798
- <a name="TaskClient+update"></a>
1799
-
1800
- #### [](#TaskClient+update) `taskClient.update(newFields)` ⇒ <code>Promise.&lt;Task&gt;</code>
1801
-
1802
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-object/update-task
1803
-
1804
-
1805
- | Param | Type |
1806
- | --- | --- |
1807
- | newFields | <code>object</code> |
1808
-
1809
-
1810
- * * *
1811
-
1812
- <a name="TaskClient+updateInput"></a>
1813
-
1814
- #### [](#TaskClient+updateInput) `taskClient.updateInput()` ⇒ <code>Promise.&lt;object&gt;</code>
1815
-
1816
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-input-object/update-task-input
1817
-
1818
-
1819
- * * *
1820
-
1821
- <a name="TaskClient+webhooks"></a>
1822
-
1823
- #### [](#TaskClient+webhooks) `taskClient.webhooks()` ⇒ [<code>WebhookCollectionClient</code>](#WebhookCollectionClient)
1824
-
1825
- https://docs.apify.com/api/v2#/reference/actor-tasks/webhook-collection
1826
-
1827
-
1828
- * * *
1829
-
1830
- <a name="TaskCollectionClient"></a>
1831
-
1832
- ### [](#TaskCollectionClient) TaskCollectionClient
1833
-
1834
-
1835
- * [TaskCollectionClient](#TaskCollectionClient)
1836
- * [`.create([task])`](#TaskCollectionClient+create) ⇒ <code>Promise.&lt;Task&gt;</code>
1837
- * [`.list([options])`](#TaskCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1838
-
1839
-
1840
- * * *
1841
-
1842
- <a name="TaskCollectionClient+create"></a>
1843
-
1844
- #### [](#TaskCollectionClient+create) `taskCollectionClient.create([task])` ⇒ <code>Promise.&lt;Task&gt;</code>
1845
-
1846
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-collection/create-task
1847
-
1848
-
1849
- | Param | Type |
1850
- | --- | --- |
1851
- | [task] | <code>object</code> |
1852
-
1853
-
1854
- * * *
1855
-
1856
- <a name="TaskCollectionClient+list"></a>
1857
-
1858
- #### [](#TaskCollectionClient+list) `taskCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1859
-
1860
- https://docs.apify.com/api/v2#/reference/actor-tasks/task-collection/get-list-of-tasks
1861
-
1862
-
1863
- | Param | Type |
1864
- | --- | --- |
1865
- | [options] | <code>object</code> |
1866
- | [options.limit] | <code>number</code> |
1867
- | [options.offset] | <code>number</code> |
1868
- | [options.desc] | <code>boolean</code> |
1869
-
1870
-
1871
- * * *
1872
-
1873
- <a name="UserClient"></a>
1874
-
1875
- ### [](#UserClient) UserClient
1876
-
1877
-
1878
- * * *
1879
-
1880
- <a name="UserClient+get"></a>
1881
-
1882
- #### [](#UserClient+get) `userClient.get()` ⇒ <code>Promise.&lt;?User&gt;</code>
1883
-
1884
- Depending on whether ApifyClient was created with a token,
1885
- the method will either return public or private user data.
1886
- https://docs.apify.com/api/v2#/reference/users
1887
-
1888
-
1889
- * * *
1890
-
1891
- <a name="WebhookClient"></a>
1892
-
1893
- ### [](#WebhookClient) WebhookClient
1894
-
1895
-
1896
- * [WebhookClient](#WebhookClient)
1897
- * [`.delete()`](#WebhookClient+delete) ⇒ <code>Promise.&lt;void&gt;</code>
1898
- * [`.dispatches()`](#WebhookClient+dispatches) ⇒ [<code>WebhookDispatchCollectionClient</code>](#WebhookDispatchCollectionClient)
1899
- * [`.get()`](#WebhookClient+get) ⇒ <code>Promise.&lt;?Webhook&gt;</code>
1900
- * [`.update(newFields)`](#WebhookClient+update) ⇒ <code>Promise.&lt;Webhook&gt;</code>
1901
-
1902
-
1903
- * * *
1904
-
1905
- <a name="WebhookClient+delete"></a>
1906
-
1907
- #### [](#WebhookClient+delete) `webhookClient.delete()` ⇒ <code>Promise.&lt;void&gt;</code>
1908
-
1909
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-object/delete-webhook
1910
-
1911
-
1912
- * * *
1913
-
1914
- <a name="WebhookClient+dispatches"></a>
1915
-
1916
- #### [](#WebhookClient+dispatches) `webhookClient.dispatches()` ⇒ [<code>WebhookDispatchCollectionClient</code>](#WebhookDispatchCollectionClient)
1917
-
1918
- https://docs.apify.com/api/v2#/reference/webhooks/dispatches-collection
1919
-
1920
-
1921
- * * *
1922
-
1923
- <a name="WebhookClient+get"></a>
1924
-
1925
- #### [](#WebhookClient+get) `webhookClient.get()` ⇒ <code>Promise.&lt;?Webhook&gt;</code>
1926
-
1927
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-object/get-webhook
1928
-
1929
-
1930
- * * *
1931
-
1932
- <a name="WebhookClient+update"></a>
1933
-
1934
- #### [](#WebhookClient+update) `webhookClient.update(newFields)` ⇒ <code>Promise.&lt;Webhook&gt;</code>
1935
-
1936
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-object/update-webhook
1937
-
1938
-
1939
- | Param | Type |
1940
- | --- | --- |
1941
- | newFields | <code>object</code> |
1942
-
1943
-
1944
- * * *
1945
-
1946
- <a name="WebhookCollectionClient"></a>
1947
-
1948
- ### [](#WebhookCollectionClient) WebhookCollectionClient
1949
-
1950
-
1951
- * [WebhookCollectionClient](#WebhookCollectionClient)
1952
- * [`.create([webhook])`](#WebhookCollectionClient+create) ⇒ <code>Promise.&lt;Webhook&gt;</code>
1953
- * [`.list([options])`](#WebhookCollectionClient+list) ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1954
-
1955
-
1956
- * * *
1957
-
1958
- <a name="WebhookCollectionClient+create"></a>
1959
-
1960
- #### [](#WebhookCollectionClient+create) `webhookCollectionClient.create([webhook])` ⇒ <code>Promise.&lt;Webhook&gt;</code>
1961
-
1962
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-collection/create-webhook
1963
-
1964
-
1965
- | Param | Type |
1966
- | --- | --- |
1967
- | [webhook] | <code>object</code> |
1968
-
1969
-
1970
- * * *
1971
-
1972
- <a name="WebhookCollectionClient+list"></a>
1973
-
1974
- #### [](#WebhookCollectionClient+list) `webhookCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
1975
-
1976
- https://docs.apify.com/api/v2#/reference/webhooks/webhook-collection/get-list-of-webhooks
1977
-
1978
-
1979
- | Param | Type |
1980
- | --- | --- |
1981
- | [options] | <code>object</code> |
1982
- | [options.limit] | <code>number</code> |
1983
- | [options.offset] | <code>number</code> |
1984
- | [options.desc] | <code>boolean</code> |
1985
-
1986
-
1987
- * * *
1988
-
1989
- <a name="WebhookDispatchClient"></a>
1990
-
1991
- ### [](#WebhookDispatchClient) WebhookDispatchClient
1992
-
1993
-
1994
- * * *
1995
-
1996
- <a name="WebhookDispatchClient+get"></a>
1997
-
1998
- #### [](#WebhookDispatchClient+get) `webhookDispatchClient.get()` ⇒ <code>Promise.&lt;?WebhookDispatch&gt;</code>
1999
-
2000
- https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatch-object/get-webhook-dispatch
2001
-
2002
-
2003
- * * *
2004
-
2005
- <a name="WebhookDispatchCollectionClient"></a>
2006
-
2007
- ### [](#WebhookDispatchCollectionClient) WebhookDispatchCollectionClient
2008
-
2009
-
2010
- * * *
2011
-
2012
- <a name="WebhookDispatchCollectionClient+list"></a>
2013
-
2014
- #### [](#WebhookDispatchCollectionClient+list) `webhookDispatchCollectionClient.list([options])` ⇒ [<code>Promise.&lt;PaginationList&gt;</code>](#PaginationList)
2015
-
2016
- https://docs.apify.com/api/v2#/reference/webhook-dispatches/webhook-dispatches-collection/get-list-of-webhook-dispatches
2017
-
2018
-
2019
- | Param | Type |
2020
- | --- | --- |
2021
- | [options] | <code>object</code> |
2022
- | [options.limit] | <code>number</code> |
2023
- | [options.offset] | <code>number</code> |
2024
- | [options.desc] | <code>boolean</code> |
2025
-
2026
-
2027
- * * *
2028
-
131
+ All public classes, methods and their parameters can be inspected in the [API reference](/api).