Skip to main content
Version: Next

apify-client

Index

Enumerations

Classes

Interfaces

Type Aliases

Type Aliases

ActorChargeEvents

ActorChargeEvents: Record<string, ActorChargeEvent>

Mapping of event names to their pricing information.

ActorCollectionListResult

ActorCollectionListResult: PaginatedList<ActorCollectionListItem>

ActorEnvVarListResult

ActorEnvVarListResult: Pick<PaginatedList<ActorEnvironmentVariable>, total | items>

ActorRunPricingInfo

Union type representing all possible Actor pricing models.

ActorTaggedBuilds

ActorTaggedBuilds: Record<string, ActorTaggedBuild>

Mapping of build tags (e.g., 'latest', 'beta') to their corresponding build information.

ActorUpdateOptions

ActorUpdateOptions: Partial<Pick<Actor, name | description | isPublic | isDeprecated | seoTitle | seoDescription | title | restartOnError | versions | categories | defaultRunOptions | actorStandby>>

Fields that can be updated when modifying an Actor.

ActorVersion

ActorVersionListResult

ActorVersionListResult: Pick<PaginatedList<FinalActorVersion>, total | items>

AllowedHttpMethods

AllowedHttpMethods: GET | HEAD | POST | PUT | DELETE | TRACE | OPTIONS | CONNECT | PATCH

HTTP methods supported by Request Queue requests.

BuildCollectionClientListItem

BuildCollectionClientListItem: Required<Pick<Build, id | status | startedAt | finishedAt>> & Partial<Pick<Build, meta | usageTotalUsd>>

BuildCollectionClientListResult

BuildCollectionClientListResult: PaginatedList<BuildCollectionClientListItem>

DatasetCollectionClientListResult

DatasetCollectionClientListResult: PaginatedList<Dataset> & { unnamed: boolean }

Dictionary

Dictionary<T>: Record<PropertyKey, T>

Generic dictionary type (key-value map).


Type parameters

  • T = unknown

    The type of values in the dictionary

FinalActorVersion

FinalActorVersion: ActorVersion & Required<Pick<ActorVersion, versionNumber | buildTag>>

KeyValueStoreCollectionListResult

KeyValueStoreCollectionListResult: PaginatedList<KeyValueStore> & { unnamed: boolean }

LimitsUpdateOptions

LimitsUpdateOptions: Pick<Limits, maxMonthlyUsageUsd | dataRetentionDays>

RequestQueueClientGetRequestResult

RequestQueueClientGetRequestResult: Omit<RequestQueueClientListItem, retryCount>

RequestQueueClientRequestToDelete

RequestQueueClientRequestToDelete: Pick<RequestQueueClientRequestSchema, id> | Pick<RequestQueueClientRequestSchema, uniqueKey>

RequestQueueCollectionListResult

RequestQueueCollectionListResult: PaginatedList<RequestQueue> & { unnamed: boolean }

RequestQueueRequestsAsyncIterable

RequestQueueRequestsAsyncIterable<T>: AsyncIterable<T>

Type parameters

  • T

ReturnTypeFromOptions

ReturnTypeFromOptions<Options>: Options[stream] extends true ? Readable : Options[buffer] extends true ? Buffer : JsonValue

Helper type to determine the return type based on getRecord options.

Returns Readable if stream option is true, Buffer if buffer option is true, otherwise returns JsonValue.


Type parameters

ScheduleAction

Union type representing all possible scheduled actions.

ScheduleCreateOrUpdateData

ScheduleCreateOrUpdateData: Partial<Pick<Schedule, name | title | cronExpression | timezone | isEnabled | isExclusive | description | notifications> & { actions: DistributiveOptional<ScheduleAction, id>[] }>

Data for creating or updating a Schedule.

TaskList

TaskList: Omit<Task, options | input>

TaskStartOptions

TaskStartOptions: Omit<ActorStartOptions, contentType | forcePermissionLevel>

Options for starting a Task.

Similar to ActorStartOptions but without contentType (Task input is predefined) and forcePermissionLevel.

TaskUpdateData

TaskUpdateData: Partial<Pick<Task, name | title | description | options | input | actorStandby>>

Fields that can be updated when modifying a Task.

WebhookCondition

Condition that determines when a webhook should be triggered.

WebhookEventType

WebhookEventType: typeof WEBHOOK_EVENT_TYPES[keyof typeof WEBHOOK_EVENT_TYPES]

Event types that can trigger webhooks.

WebhookUpdateData

WebhookUpdateData: Partial<Pick<Webhook, isAdHoc | eventTypes | condition | ignoreSslErrors | doNotRetry | requestUrl | payloadTemplate | shouldInterpolateStrings | isApifyIntegration | headersTemplate | description>> & WebhookIdempotencyKey

Data for updating a webhook.