Skip to content

Stats endpoints

Corpus counts and status.

Endpoints

Paths are under https://threatcluster.io/api/public/v1. Cost is credits per call.

MethodPathCostScope
GET/stats/overview1threats:read
GET/stats/entities/timeline1threats: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

FieldTypeMeaning
total_clustersintegerAll clusters in the corpus.
total_articlesintegerAll articles in the corpus.
total_entitiesintegerAll distinct entities in the corpus.
clusters_24hintegerClusters formed in the last 24 hours.
articles_24hintegerArticles 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

NameInTypeRequiredDefaultMeaning
entity_typequerystringnomalwareEntity type, such as malware, apt_group or ransomware_group.
daysqueryintegerno7Days to include, up to 30.
limitqueryintegerno5Top 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

FieldTypeMeaning
entity_typestringEcho of the entity_type parameter.
daysintegerDays covered, 1 to 30, after plan limits.
timelineanyShape 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.

StatusWhen
400A parameter has the wrong form, for example invalid_since for a timestamp that is not ISO-8601.
401The key is missing, wrong or revoked.
403 insufficient_scopeThe key lacks the scope this endpoint needs. The body names required_scope and the scopes the key has.
403 lookback_exceededA free key asked for a record older than its 7-day window.
404Nothing with that id. The credits are refunded and X-Request-Cost is 0.
422The request body or a typed parameter failed validation; the body lists each field.
429Too 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

PlanCredits a dayCalls a minuteHistoryRows a list
Free10030Last 7 days10
Starter1,00012090 days50
Growth5,000240Full archive100
Business10,000, plus 10,000 per managed customer, pooled600Full archiveNo 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.