Skip to main content
POST
/
detection
/
stats
/
category-class
Get detection statistics by category class
curl --request POST \
  --url https://api.wirespeed.co/detection/stats/category-class \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "startDate": "<string>",
  "endDate": "<string>",
  "days": 123
}
'
[
  {
    "categoryClass": "<string>",
    "displayName": "<string>",
    "count": 123,
    "percentage": 123
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
startDate
string

Start date (inclusive, ISO8601 string)

endDate
string

End date (inclusive, ISO8601 string)

days
number

Number of days for time-based filtering (1-365). Required by most endpoints unless startDate/endDate provided.

Response

Returns detection counts grouped by category class

categoryClass
string
required

Category class identifier

displayName
string
required

Display name for the category class

count
number
required

Number of detections in this category class

percentage
number
required

Percentage of total detections