Version: 3.2Methods
- actor(id: string): ActorClient
Parameters
Returns ActorClient
- actors(): ActorCollectionClient
Returns ActorCollectionClient
- build(id: string): BuildClient
Parameters
Returns BuildClient
- builds(): BuildCollectionClient
Returns BuildCollectionClient
- dataset<Data>(id: string): DatasetClient<Data>
Type parameters
- Data: Record<string | number, any> = Record<string | number, unknown>
Parameters
Returns DatasetClient<Data>
- datasets(): DatasetCollectionClient
Returns DatasetCollectionClient
- keyValueStore(id: string): KeyValueStoreClient
Parameters
Returns KeyValueStoreClient
- keyValueStores(): KeyValueStoreCollectionClient
Returns KeyValueStoreCollectionClient
- log(buildOrRunId: string): LogClient
Parameters
externalbuildOrRunId: string
Returns LogClient
- requestQueue(id: string, options?: RequestQueueUserOptions): RequestQueueClient
Parameters
externalid: string
externaloptionaloptions: RequestQueueUserOptions
Returns RequestQueueClient
- requestQueues(): RequestQueueCollectionClient
Returns RequestQueueCollectionClient
- run(id: string): RunClient
Parameters
Returns RunClient
- runs(): RunCollectionClient
Returns RunCollectionClient
- schedule(id: string): ScheduleClient
Parameters
Returns ScheduleClient
- schedules(): ScheduleCollectionClient
Returns ScheduleCollectionClient
- setStatusMessage(message: string, options?: SetStatusMessageOptions): Promise<void>
Parameters
externalmessage: string
externaloptionaloptions: SetStatusMessageOptions
Returns Promise<void>
- store(): StoreCollectionClient
Returns StoreCollectionClient
- task(id: string): TaskClient
Parameters
Returns TaskClient
- tasks(): TaskCollectionClient
Returns TaskCollectionClient
- user(id?: string): UserClient
Parameters
externaloptionalid: string
Returns UserClient
- webhook(id: string): WebhookClient
Parameters
Returns WebhookClient
- webhookDispatch(id: string): WebhookDispatchClient
Parameters
Returns WebhookDispatchClient
- webhookDispatches(): WebhookDispatchCollectionClient
Returns WebhookDispatchCollectionClient
- webhooks(): WebhookCollectionClient
Returns WebhookCollectionClient
ApifyClient is the official library to access Apify API from your JavaScript applications. It runs both in Node.js and browser.