API ReferenceAdmin - Automation
Get system-wide automation statistics (Admin)
Retrieve system-wide automation statistics. Returns aggregate data about: - Total tasks created - Currently running tasks - Task completion rates - Error counts
Header Parameters
X-Admin-Secret*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:8000/admin/automation/stats" \ -H "X-Admin-Secret: string"{
"data": {
"id": 1,
"name": "Example"
},
"error": false,
"message": "Operation completed successfully",
"success": true
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}{
"data": {
"errors": [
"field -> error message"
]
},
"error": true,
"message": "Validation error",
"success": false
}List all automation tasks (Admin)
View all automation tasks across the entire system. Unlike the user endpoint, this shows ALL tasks regardless of who created them. Useful for monitoring system-wide scraping activity.
Force stop all running tasks (Admin)
Send a stop signal to ALL running automation tasks across the entire system. This is a system-wide emergency stop that affects all users' tasks. Use with caution!