ActorCollectionClient
Hierarchy
- ResourceCollectionClient
- ActorCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
create
Creates a new Actor.
Parameters
actor: ActorCollectionCreateOptions
The Actor data.
Returns Promise<Actor>
The created Actor object.
See more at https://docs.apify.com/api/v2/acts-post
list
Lists all Actors.
Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched items in a single API call is limited.
const paginatedList = await client.list(options);Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are retrieved.
for await (const singleItem of client.list(options)) {...}Parameters
options: ActorCollectionListOptions = {}
Pagination options.
Returns PaginatedIterator<ActorCollectionListItem>
A paginated iterator of Actors.
See more at https://docs.apify.com/api/v2/acts-get
Client for managing the collection of Actors in your account.
Provides methods to list and create Actors. To access an individual Actor, use the
actor()method on the main ApifyClient.