Skip to main content

Create request queue

POST 

/v2/request-queues

Creates a request queue and returns its object. Keep in mind that requests stored under unnamed queue follows data retention period.

It creates a queue of given name if the parameter name is used. If a queue with the given name already exists then the endpoint returns its object.

Request

Query Parameters

    name string

    Custom unique name to easily identify the queue in the future.


    Example: example-com

Status 201

Response Headers
  • Location
{
"data": {
"id": "WkzbQMuFYuamGv3YF",
"name": "some-name",
"userId": "wRsJZtadYvn4mBZmm",
"createdAt": "2019-12-12T07:34:14.202Z",
"modifiedAt": "2030-12-13T08:36:13.202Z",
"accessedAt": "2019-12-14T08:36:13.202Z",
"totalRequestCount": 870,
"handledRequestCount": 100,
"pendingRequestCount": 670,
"hadMultipleClients": true,
"consoleUrl": "https://api.apify.com/v2/request-queues/27TmTznX9YPeAYhkC",
"stats": {
"deleteCount": 0,
"headItemReadCount": 5,
"readCount": 100,
"storageBytes": 1024,
"writeCount": 10
},
"generalAccess": "RESTRICTED"
}
}