API Reference
List Top Techniques
Return the most-referenced MITRE ATT&CK techniques across intelligence reporting, ranked by mention count.
GET
/v1/mitre/techniques/topCost: 1 credit per successful call
Query parameters
limitintegeroptionaldefault: 10Number of techniques to return. Accepted range: 1–50.
Request
curl "https://api.precursorintelligence.com/functions/v1/mitre/techniques/top?limit=10" \
-H "Authorization: Bearer $PRECURSOR_API_KEY"Response
{
"data": {
"count": 10,
"items": [
{ "technique_id": "T1059.001", "name": "PowerShell", "mention_count": 312 },
{ "technique_id": "T1566.001", "name": "Spearphishing Attachment", "mention_count": 287 },
{ "technique_id": "T1078", "name": "Valid Accounts", "mention_count": 241 }
],
"generated_at": "2026-05-18T10:24:31.118Z"
},
"meta": {
"request_id": "8b16efb8-9a6c-4ace-b817-11cbee626d08",
"generated_at": "2026-05-18T10:24:31.118Z",
"credits": { "charged": 1, "remaining": 9998 }
}
}Response fields
data.countintegeroptionalNumber of techniques returned (equals items.length).
data.itemsarrayoptionalTechniques ranked by mention count, highest first. Each object contains the fields below.
data.items[].technique_idstringoptionalThe canonical ATT&CK technique identifier (e.g. T1059.001).
data.items[].namestringoptionalHuman-readable technique name.
data.items[].mention_countintegeroptionalNumber of times this technique was referenced across intelligence reporting.
data.generated_atstringoptionalISO 8601 timestamp indicating when this response was generated.
Errors
| Status | error | When |
|---|---|---|
| 400 | invalid_limit | limit is not an integer in the range 1–50. |
| 401 | invalid_authorization | The Authorization header is missing or malformed. |
| 401 | unauthorized | The key is invalid, revoked, or the request IP is not on the allowlist. |
| 402 | insufficient_credits | The organisation's credit balance is below 1. |
| 404 | not_found | The route does not exist. |
| 405 | method_not_allowed | Only GET and OPTIONS are accepted. |
| 500 | internal | An unexpected server error occurred. |
See Errors for the full error reference.