RequestQueueCollectionClient
Hierarchy
- ResourceCollectionClient
- RequestQueueCollectionClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
getOrCreate
Gets or creates a Request queue with the specified name.
Parameters
optionalname: string
Name of the Request queue. If not provided, a default queue is used.
Returns Promise<RequestQueue>
The Request queue object.
list
Lists all Request queues.
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: RequestQueueCollectionListOptions = {}
Pagination options.
Returns Promise<RequestQueueCollectionListResult> & AsyncIterable<RequestQueue, any, any>
A paginated iterator of Request queues.
Client for managing the collection of Request queues in your account.
Request queues store URLs to be crawled and their metadata. This client provides methods to list, create, or get request queues by name.
https://docs.apify.com/platform/storage/request-queue