Pool Statistics

GET

Get pool statistics including accounts, proxies, and concurrency info

GET /api/v1/twitter/stats

Authorization

X-API-Key
string
required

Parameters

NameTypeRequiredDescription

Example Request

curl -X GET \
"https://api.xscraper.xyz/api/v1/twitter/stats" \
-H "X-API-Key: "

Response

Pool Statistics
application/json
{
  "data": {
    "accounts": {
      "total": 10,
      "healthy": 8,
      "probation": 1,
      "cooldown": 1,
      "disabled": 0,
      "locked": 0
    },
    "proxies": {
      "total": 5
    },
    "queue": {
      "depth": 0,
      "maxSize": 1000
    },
    "concurrency": {
      "active": 2,
      "max": 10
    }
  },
  "meta": {
    "statusCode": 200,
    "timestamp": "2025-04-19T15:49:28.824Z"
  }
}

Error Responses

401 Unauthorized
{
  "statusCode": 401,
  "timestamp": "2025-04-19T15:49:28.824Z",
  "path": "/api/v1/twitter/stats",
  "method": "GET",
  "message": "Invalid or expired API key"
}