The threat intel API with curl
One header in, JSON out, with what each call cost in the response headers.
What you need
| Key needed | A free key in the X-API-Key header |
|---|---|
| Base URL | https://threatcluster.io/api/public/v1 |
| Free limits | 100 credits a day, 30 requests a minute, 7 days of data |
| Costs | Most GETs 1 credit, IOC feed and STIX 3, search 5 |
Prerequisites
A free key from Settings → API, sent in the X-API-Key header on every request.
Setup
1Export the key and base URL
export TC_KEY="tc_live_your_key_here" export BASE="https://threatcluster.io/api/public/v1"
PowerShell: $env:TC_KEY="..." and $env:BASE="..."
2Make a first call
-i shows the response headers with the body.
curl -si -H "X-API-Key: $TC_KEY" "$BASE/threats?time_filter=24h&limit=1"
Headers
The key is the only request header. Responses report what they cost.
HTTP/2 200 content-type: application/json x-request-cost: 1 x-ratelimit-limit: 100 x-ratelimit-remaining: 87 x-ratelimit-reset: 1788307200
Header names are exact; the numbers are illustrative.
| Header | Meaning |
|---|---|
| X-Request-Cost | Credits this request spent, 0 when an empty result was refunded |
| X-RateLimit-Limit | The daily credit budget (free keys) |
| X-RateLimit-Remaining | Credits left today (free keys) |
| X-RateLimit-Reset | Unix time of the next refill, 00:00 UTC |
| Retry-After | Added to a 429 |
The data families
# search across clusters, entities and the dark web (5 credits) curl -s -H "X-API-Key: $TC_KEY" "$BASE/search?q=Qilin" # threat clusters (1 credit) curl -s -H "X-API-Key: $TC_KEY" "$BASE/threats?time_filter=24h" # 1 cluster, by the 8-character short id from /threats or /search (1 credit) curl -s -H "X-API-Key: $TC_KEY" "$BASE/threats/93fb80f8" # entity detail (1 credit) curl -s -H "X-API-Key: $TC_KEY" "$BASE/entities/ransomware_group/Qilin" # IOC feed for SIEM or firewall polling (3 credits; a free key gets a 10-indicator sample) curl -s -H "X-API-Key: $TC_KEY" "$BASE/iocs/feed?format=txt" # CVEs, here CISA KEV entries from the last 7 days (1 credit) curl -s -H "X-API-Key: $TC_KEY" "$BASE/vulnerabilities?kev_only=true&days=7" # ransomware leak-site victims (1 credit) curl -s -H "X-API-Key: $TC_KEY" "$BASE/darkweb/ransomware/victims?days=7"

Worked example
/search returns typed buckets in 1 call. Trimmed to 1 hit per bucket; the live call returned 30.
curl -s -H "X-API-Key: $TC_KEY" "$BASE/search?q=Qilin"
{
"query": "Qilin",
"clusters": [
{
"short_id": "3a29f452",
"cluster_id": "b2c83a72-8d2c-4913-bb97-47c73a29f452",
"slug": "qilin-ransomware-gang-targets-atf-in-cyberattack-3a29f452",
"ai_title": "Qilin Ransomware Gang Claims Attack on ATF, Major Incident Declared",
"ai_summary": "The Bureau of Alcohol, Tobacco, Firearms and Explosives (ATF) is investigating a major cybersecurity incident after the Qilin ransomware gang claimed…",
"keywords": ["ransomware", "attack"],
"threat_score": 61.25,
"severity_score": 70.0,
"article_count": 31,
"date_range_latest": "2026-08-26T22:35:02+00:00",
"is_new": false,
"entities": {}
}
],
"entities": [
{
"entity_type": "ransomware_group",
"entity_value": "Qilin",
"cluster_count": 124,
"article_count": 202
}
],
"darkweb": [
{
"type": "victim",
"name": "Commission de la construction du Quebec",
"id": "87989ff49ba65be4",
"date": "2026-09-01T03:57:10.128191+00:00",
"group": "qilin",
"country": "CA",
"sector": "Government & Defense"
}
],
"limit": 10,
"total": 30
} Chain short_id into /threats/3a29f452, and entity_type plus entity_value into /entities/ransomware_group/Qilin.
Status codes
| Code | Meaning |
|---|---|
| 200 | Success. JSON, except the txt and csv IOC formats. |
| 401 | Missing or bad key |
| 403 insufficient_scope | The key lacks the endpoint's scope. The body names required_scope and granted_scopes. |
| 403 lookback_exceeded | A by-id lookup older than the free 7-day window |
| 422 | Invalid parameters, such as a /search q that is too short |
| 429 | The per-minute rate limit or the daily budget (daily_budget_exceeded). Wait for Retry-After. |
Free keys carry threats:read, iocs:read, entities:read, vulns:read and darkweb:read. Errors arrive in a detail object:
{"detail": {"error": "Invalid or revoked API key",
"message": "The provided API key is invalid, revoked, or expired"}} {"detail": {"error": "lookback_exceeded",
"message": "This threat cluster is older than the 7-day window included with a free API key.",
"lookback_days": 7,
"upgrade_url": "https://threatcluster.io/pricing"}}Costs and limits
| Call | Credits |
|---|---|
| Most GETs | 1 |
| IOC feed and export, STIX bundles, dark-web keyword hits, trends | 3 |
/search | 5 |
| Dark-web victim enrichment record | 10 |
| A request that finds nothing | Refunded, X-Request-Cost: 0 |
Free keys get 100 credits a day, 30 requests a minute and 7 days of data. Bigger windows: pricing. Every endpoint: API reference and the OpenAPI document.
Vendor documentation
Where a menu name or version here differs from theirs, theirs is current.
FAQ
What does a free key get?
100 credits a day, 30 requests a minute and the last 7 days of data, with the five read scopes.
How do I know what a call cost?
Read the X-Request-Cost response header. X-RateLimit-Remaining is what is left of today's budget.
What should a script do on a 429?
Wait for the number of seconds in Retry-After, then retry. The daily budget refills at 00:00 UTC.
Does an empty result cost credits?
No. A request that finds nothing is refunded and returns X-Request-Cost: 0.