Ocean Security
  1. Metrics
Ocean Security
  • Metrics
    • Get top highlighted threats
      GET
    • Get hours saved metric
      GET
    • Get prevented financial loss metric (USD)
      GET
    • Get protected inboxes count
      GET
    • Get threats over time metric
      GET
    • Get top targeted entities
      GET
    • Get top threat types
      GET
  • Threats
    • List recent threats
      GET
    • Get threat by ID
      GET
    • Get threats by Internet Message ID
      GET
  1. Metrics

Get threats over time metric

GET
https://api.ocean.security/api/v1/api/v1/metrics/threats_over_time
Returns the count of threats grouped by day for the specified time period.

Request

Query Params

Header Params

Responses

🟢200OK
application/json
A paginated list of daily threat counts
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.ocean.security/api/v1/api/v1/metrics/threats_over_time' \
--header 'X-Api-Key;'
Response Response Example
200 - Example 1
{
    "pagination": {
        "page": 0,
        "page_size": 0,
        "total": 0
    },
    "results": {
        "items": [
            {
                "count_threats": 0,
                "date": "1970-01-01"
            }
        ]
    },
    "status": 0
}
Modified at 2025-07-27 09:03:30
Previous
Get protected inboxes count
Next
Get top targeted entities
Built with