Skip to main content
GET
/
api
/
v1
/
metrics
/
top_threat_types
Get top threat types
curl --request GET \
  --url https://api.ocean.security/api/v1/metrics/top_threat_types \
  --header 'X-Api-Key: <api-key>'
{
  "results": {
    "items": [
      {
        "count_threats": 123,
        "type": "<string>"
      }
    ]
  },
  "status": 123
}

Authorizations

X-Api-Key
string
header
required

API key for authentication

Headers

X-Api-Key
string
required

Authentication API Key

Query Parameters

days_ago
integer

Number of days to look back (default 7)

Response

List of top threat types and their counts

results
object
status
integer