/api/open/scraper_use_statPOSTApiKey:{your_api_key}| Parameter Name | Type | Required | Annotations | Example: |
|---|---|---|---|---|
| start_time | int64 | No | o Start Timetamp (sec)) | 1712563200 |
| end_time | int64 | No | End time stamp (sec)) | 1712649599 |
| tool_ids | array[int] | No | ToolID List, to filter data for a specific tool | [1, 2, 3] |
| group_by | string | No | Grouping method, optional values: hour(or day(By God) | "day" |
{
"start_time": 1712563200,
"end_time": 1712649599,
"tool_ids": [1, 2, 3],
"group_by": "day"
}{
"code": 200,
"data": [
{
"time_key": "2024-04-08",
"success_count": 1250,
"fail_count": 50,
"total_count": 1300,
"success_rate": 96.15,
"avg_response_time": 1250.5,
"total_amount": 650.25
},
{
"time_key": "2024-04-09",
"success_count": 1180,
"fail_count": 20,
"total_count": 1200,
"success_rate": 98.33,
"avg_response_time": 1180.3,
"total_amount": 600.0
}
],
"message": "Query successful",
"timestamp": 1712649600
}| Field Name | Type | Annotations |
|---|---|---|
| code | int | Response status code, 200 for success |
| data | array | Statistical arrays |
| message | string | Reply Message |
| timestamp | int64 | Response Timetamp |
| Field Name | Type | Annotations |
|---|---|---|
| time_key | string | Time key, the format is determined by the group by parameter - hour: "2024-04-08 14:00:00" - day: "2024-04-08" |
| success_count | int64 | Number of successful requests (HTTP status code 200) |
| fail_count | int64 | Number of failed requests (not 200 status code or no result)) |
| total_count | int64 | Total number of requests |
| success_rate | float64 | Success rate (percentage, 2 decimal places)) |
| avg_response_time | float64 | Average response time (ms, 2 decimal places)) |
| total_amount | float64 | Consumption of total points (retain 4 decimal places)) |
{
"code": 401,
"data": null,
"message": "User Authentication Failed",
"timestamp": 1712649600
}{
"code": 400,
"data": null,
"message": "Parameter authentication failed:group_by Must be. hour or day",
"timestamp": 1712649600
}{
"code": 500,
"data": null,
"message": "Data query failed",
"timestamp": 1712649600
}start_time and end_time, returns all historical datatool_ids When arguments are empty, returns statistics for all tools; uploading tool ID arrays can filter specific toolshour: Group by hour, suitable for viewing short-term detailed trendsday: Group by day, suitable to view long-term trends