GET
/
v1
/
scans
/
vulns
/
score
/
metrics
Get Vuln Score Metrics
curl --request GET \
  --url https://api.projectdiscovery.io/v1/scans/vulns/score/metrics \
  --header 'X-API-Key: <api-key>'
{
  "security_score": 123,
  "security_state": "<string>",
  "open_vulnerability": {
    "severity_breakdown": {
      "critical": 123,
      "high": 123,
      "medium": 123,
      "low": 123,
      "info": 123,
      "unknown": 123
    },
    "total_cve": 123,
    "total_kev": 123
  },
  "total_scanned_assets": 123,
  "total_affected_assets": 123,
  "time_series": [
    {
      "date": "2023-12-25",
      "security_score": 123,
      "open_vulnerability": {
        "severity_breakdown": {
          "critical": 123,
          "high": 123,
          "medium": 123,
          "low": 123,
          "info": 123,
          "unknown": 123
        },
        "total_cve": 123,
        "total_kev": 123
      },
      "total_scanned_assets": 123,
      "total_affected_assets": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string

Query Parameters

interval
enum<string>
default:monthly

The time interval for the metrics

Available options:
monthly

Response

200
application/json

Example response

The response is of type object.