cURL
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 } ] }
Retrieve the Team ID from: https://cloud.projectdiscovery.io/settings/team
The time interval for the metrics
monthly
Example response
The response is of type object.
object
Was this page helpful?