Get metrics for your organization with optional date range and brand filtering. Organization is determined from your API key.
X-API-KEY header:
| Parameter | Type | Required | Description |
|---|---|---|---|
| brandSlug | string | No | Filter metrics by specific brand. Requires brands-metrics feature flag. |
| startDate | string | No | Start date for metrics (ISO 8601 format). Defaults to beginning of time if not provided. |
| endDate | string | No | End date for metrics (ISO 8601 format). Defaults to current date if not provided. |
| Field | Type | Description |
|---|---|---|
| metrics | object | Metrics object containing all security statistics |
| metrics.reports | number | Total number of reports filed |
| metrics.newThreats | number | Number of new threats blocked |
| metrics.threatsWatchlisted | number | Number of threats watchlisted (0 for brand-filtered queries) |
| metrics.takedownsFiled | number | Total number of takedown requests filed |
| metrics.takedownsCompleted | number | Total number of takedowns successfully completed |
| metrics.domainThreats | number | Number of URL/domain threats blocked |
| metrics.twitterThreats | number | Number of Twitter threats blocked |
| metrics.telegramThreats | number | Number of Telegram threats blocked |
| metrics.otherThreats | number | Number of other asset type threats blocked |
| blockedByType | array | Breakdown of blocked threats by asset type |
| blockedByType[].type | string | Type of asset (URL, ADDRESS, TWITTER, etc.) |
| blockedByType[].count | number | Number of threats blocked for this asset type |
| blockedByDay | array | Time series data showing threats blocked per day |
| blockedByDay[].date | string | Date in YYYY-MM-DD format |
| blockedByDay[].count | number | Number of threats blocked on this date |
brandSlug is provided, returns organization-wide metrics:
createdAt timestampsbrandSlug is provided (requires brands-metrics feature flag):
updatedAt timestampsthreatsWatchlisted always returns 0 for brand-scoped queriesYYYY-MM-DDTHH:mm:ss.sssZZ suffix)blockedByType array includes all asset types that have blocked threatsblockedByDay array provides time series data for visualizationthreatsWatchlisted always returns 0Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.