getQueueStats: obtain queue load statistics
This method makes it possible to define a suitable time for uploading a new task. Output is cached for 10 seconds.
Address: https://api.anti-captcha.com/getQueueStats
Method: POST
Content-type: application-json
Request properties
Property | Type | Required | Purpose |
---|---|---|---|
queueId | Integer | Yes | Identifier of a queue. The following queues are available: 1 - ImageToText, English 2 - ImageToText, Russian 5 - Recaptcha v2 with proxy 6 - Recaptcha v2 without proxy 7 - Funcaptcha with proxy 10 - Funcaptcha without proxy 12 - GeeTest with proxy 13 - GeeTest without proxy 18 - Recaptcha V3 s0.3 19 - Recaptcha V3 s0.7 20 - Recaptcha V3 s0.9 23 - Recaptcha Enterprise V2 with proxy 24 - Recaptcha Enterprise V2 without proxy 25 - AntiGateTask 26 - Turnstile with proxy 27 - Turnstile without proxy 28 - Image Coordinates 29 - Hcaptcha Enterprise |
templateName | String | No | If you're querying for queue ID 25 (Antigate Templates), you can specify a template name to request the exact number of available workers and the number of workers who unsubscribed from that template. |
Request example
bash
Antigate Templates
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{ "queueId": 6 }' \
https://api.anti-captcha.com/getQueueStats
Response structure
Property | Type | Purpose |
---|---|---|
waiting | Integer | Number of idle workers online, waiting for a task |
load | Double | Queue load as a percentage |
bid | Double | Average task solution cost in USD |
speed | Double | Average task solution speed in seconds |
total | Integer | Total number of workers |
Response example
{
"waiting":242,
"load":60.33,
"bid":"0.0008600982",
"speed":10.77,
"total": 610
}