Endpoints
Paths are under https://threatcluster.io/api/public/v1. Cost is credits per call.
| Method | Path | Cost | Scope |
|---|---|---|---|
| GET | /stats/overview | 1 | threats:read |
| GET | /stats/entities/timeline | 1 | threats:read |
GET /stats/overview
Global counts + 24h deltas
1 credit per call · scope threats:read
Get threat database statistics.
Returns total clusters, articles, average threat score, and last update time.
Request
curl -H "X-API-Key: $TC_KEY" \ "https://threatcluster.io/api/public/v1/stats/overview"
Response fields
| Field | Type | Meaning |
|---|---|---|
| total_clusters | integer | All clusters in the corpus. |
| total_articles | integer | All articles in the corpus. |
| total_entities | integer | All distinct entities in the corpus. |
| clusters_24h | integer | Clusters formed in the last 24 hours. |
| articles_24h | integer | Articles added in the last 24 hours. |
GET /stats/entities/timeline
Entity timeline (daily counts)
1 credit per call · scope threats:read
Get timeline data for top entities of a specific type.
Returns daily mention counts for top entities.
Parameters
| Name | In | Type | Required | Default | Meaning |
|---|---|---|---|---|---|
| entity_type | query | string | no | malware | Entity type, such as malware, apt_group or ransomware_group. |
| days | query | integer | no | 7 | Days to include, up to 30. |
| limit | query | integer | no | 5 | Top entities to track, up to 10. |
Request
curl -H "X-API-Key: $TC_KEY" \ "https://threatcluster.io/api/public/v1/stats/entities/timeline"
Response fields
| Field | Type | Meaning |
|---|---|---|
| entity_type | string | Echo of the entity_type parameter. |
| days | integer | Days covered, 1 to 30, after plan limits. |
| timeline | any | Shape TBD: dict of entity_value → daily counts |
Errors
Errors are JSON with an error code and a message. A call refused for its key, scope or rate is not charged.
| Status | When |
|---|---|
| 400 | A parameter has the wrong form, for example invalid_since for a timestamp that is not ISO-8601. |
| 401 | The key is missing, wrong or revoked. |
| 403 insufficient_scope | The key lacks the scope this endpoint needs. The body names required_scope and the scopes the key has. |
| 403 lookback_exceeded | A free key asked for a record older than its 7-day window. |
| 404 | Nothing with that id. The credits are refunded and X-Request-Cost is 0. |
| 422 | The request body or a typed parameter failed validation; the body lists each field. |
| 429 | Too many calls a minute, or daily_budget_exceeded. Wait for the Retry-After seconds; the daily allowance refills at 00:00 UTC. |
Limits by plan
| Plan | Credits a day | Calls a minute | History | Rows a list |
|---|---|---|---|---|
| Free | 100 | 30 | Last 7 days | 10 |
| Starter | 1,000 | 120 | 90 days | 50 |
| Growth | 5,000 | 240 | Full archive | 100 |
| Business | 10,000, plus 10,000 per managed customer, pooled | 600 | Full archive | No cap |
Headers and credits are covered in conventions.
Standards and sources
FAQ
Which scope do the stats need?
threats:read. There is no separate stats scope.
What do the stats cost?
1 credit a call.
What does a free key get?
Free keys cover the last 7 days, with at most 10 rows a list and trimmed records; an older record returns 403 lookback_exceeded. Starter has 90 days of history, Growth and Business the full archive.