TweetFeed Campaigns API
The Campaigns API from TweetFeed — 5 operation(s) for campaigns.
The Campaigns API from TweetFeed — 5 operation(s) for campaigns.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/tweetfeed-live:tweetfeed-live-campaigns-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: TweetFeed Campaigns API
description: 'Public REST API for TweetFeed (https://tweetfeed.live), a real-time aggregator of
Indicators of Compromise (IOCs) - URLs, domains, IPs and file hashes - shared by
the infosec community on Twitter/X.
The dataset is refreshed every 15 minutes by scraping RSS feeds from a curated
list of ~95 security researchers plus security-related hashtags. Coverage starts
2021-08-09. All data is released under CC0 1.0 Universal (public domain
dedication) - no attribution required, no warranty.
All endpoints:
- Require no authentication.
- Set `Access-Control-Allow-Origin: *` (CORS open).
- Cache responses at the CF edge: 300 s for `/v1/{time}`, `/v1/campaigns`,
`/v1/campaigns/{id}` (plain, `.csv` and `.stix.json`), `/v1/campaigns/iocs`,
`/v1/trends` and `/v1/counts` (`stale-while-revalidate=600,
stale-if-error=86400`); 60 s for `/v1/ioc` and `/v1/manifest` (same
conditional-request behaviour as `/v1/counts`); 30 s for `/v1/since`;
15 min for `/v1/blocklist` (all with `stale-while-revalidate`).
`/v1/status` is the exception: it is computed fresh on every request,
never served from cache, and never conditional - `max-age=60` only, no
`ETag`-based revalidation.
- Return JSON arrays (one object per IOC), one schema for every route.
For Threat Intelligence agent integrations there is also a Model Context Protocol
server at `https://mcp.tweetfeed.live/` (JSON-RPC 2.0, 14 tools).'
version: '1.0'
contact:
name: TweetFeed
url: https://github.com/0xDanielLopez/TweetFeed/issues
license:
name: CC0 1.0 Universal
url: https://creativecommons.org/publicdomain/zero/1.0/
servers:
- url: https://api.tweetfeed.live
description: Production
tags:
- name: Campaigns
paths:
/v1/campaigns:
get:
operationId: getCampaigns
summary: List AI-clustered threat campaigns
description: 'Returns AI-clustered campaign groupings of the last 30 days of community
IOCs. Clustering is two-stage: deterministic pre-grouping (shared
registered domain, cross-domain URL path patterns, or a shared specific
tag), followed by AI naming and context generation. The AI only names
and describes clusters - it never adds or removes IOCs; every IOC in a
campaign is verbatim from the feed.
Regenerated once a day. If a run fails, `stale` is `true` and the
document falls back to the previous day''s snapshot (`stale_since`
holds the date of that last successful run).'
parameters:
- $ref: '#/components/parameters/IfNoneMatch'
- $ref: '#/components/parameters/IfModifiedSince'
responses:
'200':
description: Campaigns document.
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignsDocument'
'304':
$ref: '#/components/responses/NotModified'
tags:
- Campaigns
/v1/campaigns/iocs:
get:
operationId: getCampaignIocs
summary: Full IOC membership of every campaign
description: 'Returns the complete per-campaign IOC list for the campaigns returned
by `/v1/campaigns` - same generator, same daily regeneration, same
campaign ids. Served separately so the `/v1/campaigns` document stays
small (that endpoint only ships a 25-IOC sample per campaign); every
IOC here is verbatim from the feed.'
parameters:
- $ref: '#/components/parameters/IfNoneMatch'
- $ref: '#/components/parameters/IfModifiedSince'
responses:
'200':
description: Campaign IOC membership document.
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignIocsDocument'
'304':
$ref: '#/components/responses/NotModified'
tags:
- Campaigns
/v1/campaigns/{id}:
get:
operationId: getCampaign
summary: Full record for one AI-clustered campaign
description: 'Returns one campaign''s header (the same object as an entry of
`/v1/campaigns`) plus its complete, unsampled IOC membership - no
25-row cap. Same generator, same daily regeneration, same campaign
ids as `/v1/campaigns` and `/v1/campaigns/iocs`.
CSV and STIX 2.1 variants of the same data are available at
`/v1/campaigns/{id}.csv` and `/v1/campaigns/{id}.stix.json`.'
parameters:
- $ref: '#/components/parameters/CampaignId'
- $ref: '#/components/parameters/IfNoneMatch'
- $ref: '#/components/parameters/IfModifiedSince'
responses:
'200':
description: Campaign export document.
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
content:
application/json:
schema:
$ref: '#/components/schemas/CampaignExport'
'304':
$ref: '#/components/responses/NotModified'
'404':
description: Unknown or expired campaign id.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example:
error: campaign not found
tags:
- Campaigns
/v1/campaigns/{id}.csv:
get:
operationId: getCampaignCsv
summary: One campaign's IOC membership as CSV
description: 'Same IOC rows as the `iocs` array of `/v1/campaigns/{id}`, as a CSV
with the same 6 columns as `today.csv` (date, user, type, value,
tags, tweet_url). No campaign header - fetch `/v1/campaigns/{id}`
for that.'
parameters:
- $ref: '#/components/parameters/CampaignId'
- $ref: '#/components/parameters/IfNoneMatch'
- $ref: '#/components/parameters/IfModifiedSince'
responses:
'200':
description: Campaign IOC membership, CSV.
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
content:
text/csv:
schema:
type: string
'304':
$ref: '#/components/responses/NotModified'
'404':
description: Unknown or expired campaign id.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example:
error: campaign not found
tags:
- Campaigns
/v1/campaigns/{id}.stix.json:
get:
operationId: getCampaignStix
summary: One campaign's IOC membership as a STIX 2.1 bundle
description: 'Same IOCs as `/v1/campaigns/{id}`, as a spec-compliant, self-contained
STIX 2.1 bundle: the TweetFeed Identity, the canonical TLP:CLEAR
marking-definition, and one Indicator object per IOC. Deterministic
bundle id - reimporting the same campaign later does not create a
duplicate object in platforms that dedupe by id.'
parameters:
- $ref: '#/components/parameters/CampaignId'
- $ref: '#/components/parameters/IfNoneMatch'
- $ref: '#/components/parameters/IfModifiedSince'
responses:
'200':
description: Campaign STIX 2.1 bundle.
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
content:
application/stix+json;version=2.1:
schema:
type: object
'304':
$ref: '#/components/responses/NotModified'
'404':
description: Unknown or expired campaign id.
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example:
error: campaign not found
tags:
- Campaigns
components:
parameters:
CampaignId:
name: id
in: path
required: true
description: 'Campaign identifier - `tfc-` followed by 12 lowercase hex chars, as
returned by `/v1/campaigns`.
'
schema:
type: string
pattern: ^tfc-[0-9a-f]{12}$
example: tfc-6d1f6fb9260c
IfNoneMatch:
name: If-None-Match
in: header
required: false
description: 'Conditional GET, strong validator. Send back the `ETag` value from a
previous response; a match returns `304 Not Modified` with an empty
body. This is the recommended validator - unlike `Last-Modified`, it
changes only when the response body actually changes, not every time
it is recomputed. Per RFC 7232 section 6, if both `If-None-Match` and
`If-Modified-Since` are sent, `If-None-Match` takes precedence and
`If-Modified-Since` is ignored.
'
schema:
type: string
example: '"a1b2c3d4e5f60718"'
IfModifiedSince:
name: If-Modified-Since
in: header
required: false
description: 'Conditional GET, timestamp validator. Send back the `Last-Modified`
value from a previous response; if the representation has not
changed since, returns `304 Not Modified` with an empty body. Weaker
than `If-None-Match`: `Last-Modified` reflects when this Worker
cached the representation, not when the underlying data last
changed, so it only saves a round trip while that cache entry is
still alive. Ignored if `If-None-Match` is also present (RFC 7232
section 6).
'
schema:
type: string
format: date-time
example: Sun, 06 Jul 2026 08:49:37 GMT
schemas:
Ioc:
type: object
required:
- date
- user
- type
- value
- tags
- tweet
properties:
date:
type: string
description: 'Publication timestamp of the tweet that reported the IOC, UTC,
format `YYYY-MM-DD HH:MM:SS`. It is the tweet''s own publication
time as given by the source feed, not the moment the pipeline
ingested it (the pipeline polls every 15 minutes, so the two are
normally minutes apart).
When the reporting tweet is a quote-tweet, the IOC is extracted
from the QUOTED tweet but stamped with the QUOTING tweet''s time,
so that a re-share lands in the day it was re-shared. `user` and
`tweet` then point at the quoted tweet while `date` points at
the quoting one, and `date` can be much newer than the tweet the
IOC first appeared in.
'
example: '2026-05-21 09:13:00'
user:
type: string
description: Twitter/X handle of the reporting researcher (no leading `@`).
example: malwrhunterteam
type:
type: string
enum:
- url
- domain
- ip
- sha256
- md5
description: IOC type.
value:
type: string
description: 'The IOC value itself. URLs/domains are emitted refanged (the original
tweet may have defanged them with `[.]` or `hxxp` - the pipeline
normalises to refanged form on emit). File hashes are lowercase hex.
Defanged instead when the request carries `?defang=1`; hashes are
unaffected either way (no `.` to defang).
'
example: http://example.malicious/path
tags:
type: array
items:
type: string
description: 'Tag labels (typically include the IOC category - `phishing`, `malware`,
`ransomware`, etc. - plus malware-family or threat-actor labels when
applicable). Current taxonomy: 95 tags. Full list at
https://tweetfeed.live/tags/.
'
example:
- phishing
- scam
tweet:
type: string
format: uri
description: URL of the tweet that reported the IOC.
example: https://x.com/malwrhunterteam/status/1234567890123456789
ai:
type: object
nullable: true
description: 'Optional per-IOC AI enrichment, mirroring the `ai` object `GET
/v1/ioc` returns. Present only once the value''s own enrichment
job has covered it; absent (not `null`) otherwise.
'
properties:
threat_type:
type: string
example: phishing
family:
type: string
description: Malware family, when identified. Omitted when unknown.
example: Joker
net:
type: object
nullable: true
description: 'Optional per-IOC network metadata, mirroring the `net` object
`GET /v1/ioc` returns. `ip`-type IOCs only.
'
properties:
org:
type: string
example: AS13335 Cloudflare, Inc.
country:
type: string
example: US
CampaignExport:
type: object
required:
- generated_at
- campaign
- iocs
properties:
generated_at:
type: string
format: date-time
description: UTC timestamp of the clustering run that produced this document.
example: '2026-09-06T06:56:16Z'
campaign:
$ref: '#/components/schemas/Campaign'
iocs:
type: array
items:
$ref: '#/components/schemas/Ioc'
description: 'Complete, unsampled IOC membership - unlike `campaign.iocs`,
which caps at a 25-row sample.
'
CampaignIocsDocument:
type: object
required:
- version
- generated_at
- campaigns
properties:
version:
type: integer
description: Schema version of the campaign IOCs document. Currently `1`.
example: 1
generated_at:
type: string
format: date-time
description: UTC timestamp of the clustering run that produced this document.
example: '2026-09-04T06:56:16Z'
campaigns:
type: object
description: 'Full IOC membership, keyed by campaign id (matching `/v1/campaigns`''
`id`). Unlike `Campaign.iocs`, which caps at a 25-row sample, each
value here is the complete, unsampled list.
'
additionalProperties:
type: array
items:
$ref: '#/components/schemas/Ioc'
example:
tfc-0eebc91ceb12:
- date: '2026-08-25 13:42:00'
tags:
- '#stealer'
tweet: https://x.com/suyog41/status/2092246114179432584
type: domain
user: suyog41
value: lewokodwqko.icu
CampaignsDocument:
type: object
required:
- version
- generated_at
- window
- stale
- campaign_count
- campaigns
properties:
version:
type: integer
description: Schema version of the campaigns document. Currently `1`.
example: 1
generated_at:
type: string
format: date-time
description: UTC timestamp of the clustering run that produced this document.
example: '2026-07-05T19:36:35Z'
window:
type: string
enum:
- month
description: Source window for clustering - always the rolling last 30 days.
stale:
type: boolean
description: '`true` if the daily clustering run failed and this document was
carried over from the previous successful run.
'
stale_since:
type: string
nullable: true
format: date-time
description: 'Timestamp (`generated_at`) of the last successful run before
staleness began. Only set when `stale` is `true`, `null`
otherwise.
'
example: null
campaign_count:
type: integer
description: Number of entries in `campaigns`.
example: 23
campaigns:
type: array
items:
$ref: '#/components/schemas/Campaign'
Campaign:
type: object
required:
- id
- name
- context
- confidence
- targeted_brand
- targeted_sector
- targeted_country
- first_seen
- last_seen
- ioc_count
- types
- tags
- reporters
- iocs
- member_cluster_ids
- anchors
properties:
id:
type: string
description: Stable campaign identifier - `tfc-` followed by 12 hex chars.
example: tfc-6d1f6fb9260c
name:
type: string
description: Short AI-generated campaign name.
example: Multi-family RAT/stealer C2 on compromised and DDNS hosts
context:
type: string
description: 'AI-generated paragraph describing the campaign''s infrastructure,
malware families and delivery pattern. Describes the underlying
IOCs only - never introduces facts absent from the data.
'
confidence:
type: string
enum:
- high
- medium
- low
description: 'How strongly related the underlying IOCs are, based on shared
anchors (domains, path patterns, tags) and reporter overlap.
'
targeted_brand:
type: string
nullable: true
description: Brand or organization the campaign appears to target, when identifiable. `null` otherwise.
targeted_sector:
type: string
nullable: true
description: 'Industry sector the campaign appears to target, AI-inferred from
the clustered IOCs. Values are STIX 2.1 `industry-sector-ov` slugs
(e.g. `financial-services`). `null` when no sector is identifiable.
'
example: financial-services
targeted_country:
type: string
nullable: true
description: 'Country the campaign appears to target, AI-inferred from the
clustered IOCs. ISO 3166-1 alpha-2. `null` when no country is
identifiable.
'
example: BR
ttps:
type: array
maxItems: 4
items:
type: string
enum:
- T1036.005
- T1071.001
- T1102
- T1195.001
- T1204.004
- T1557
- T1566.002
- T1567.004
- T1568
- T1583.001
- T1583.006
- T1583.008
- T1585.001
- T1588.001
- T1588.002
- T1608.001
- T1657
- T1684.001
description: 'MITRE ATT&CK Enterprise technique ids the campaign''s
infrastructure appears to exercise, AI-inferred from the
clustered IOCs - infrastructure-only, not full attribution.
Always an array with 0 to 4 ids, never `null`; may be an empty
array. May be absent entirely on an older cached document.
'
example:
- T1566.002
- T1583.006
first_seen:
type: string
format: date
example: '2026-06-29'
last_seen:
type: string
format: date
example: '2026-07-05'
ioc_count:
type: integer
description: Total IOCs in the cluster (may exceed the `iocs` sample size).
example: 198
ioc_count_1d:
type: integer
description: 'IOCs in the cluster observed in the last 1 day. Per-window activity
counts satisfy `ioc_count_1d <= ioc_count_7d <= ioc_count_30d <= ioc_count`.
'
example: 4
ioc_count_7d:
type: integer
description: 'IOCs in the cluster observed in the last 7 days. Consumers filtering
for live campaigns should use `ioc_count_7d > 0`.
'
example: 22
ioc_count_30d:
type: integer
description: IOCs in the cluster observed in the last 30 days.
example: 87
types:
type: object
description: Per-IOC-type counts across the cluster.
additionalProperties:
type: integer
example:
domain: 53
ip: 32
md5: 17
sha256: 15
url: 81
activity:
type: object
description: 'Optional sparse per-day IOC histogram, chronologically sorted
keys (`YYYY-MM-DD`), counting every row in the campaign - not
just the published `iocs` sample. May be absent entirely on an
older cached or stale-fallback document.
'
additionalProperties:
type: integer
example:
'2026-08-14': 205
'2026-08-19': 202
enriched_count:
type: integer
description: 'Optional: how many of the campaign''s IOCs (across the full
membership, not just the sample) have an AI enrichment entry.
The denominator for `threat_types` and `families` below. May be
absent entirely on an older cached document.
'
example: 182
threat_types:
type: object
description: 'Optional rollup of AI-inferred threat types over the campaign''s
full membership (not just the sample), keyed by type with a
count. May be absent entirely on an older cached document.
'
additionalProperties:
type: integer
example:
phishing: 172
cryptoscam: 100
families:
type: object
description: 'Optional rollup of AI-inferred malware families over the
campaign''s full membership (not just the sample), keyed by
family name with a count. Usually empty or absent since family
attribution is sparse. May be absent entirely on an older
cached document.
'
additionalProperties:
type: integer
example:
Joker: 10
infra:
type: array
description: 'Optional build-time ASN join, present only when the campaign
has at least one `ip`-type IOC. Sorted by `ip_count` descending.
The ASN is embedded in `org` - there is no separate `asn`
field. May be absent entirely on an older cached document or on
a campaign with no IP IOCs.
'
items:
type: object
properties:
org:
type: string
example: AS13335 Cloudflare, Inc.
ip_count:
type: integer
example: 3
country:
type: string
example: US
tags:
type: array
items:
type: string
description: Tags observed across the cluster's IOCs.
reporters:
type: array
items:
type: string
description: Twitter/X handles (no leading `@`) that reported IOCs in this cluster.
iocs:
type: array
maxItems: 25
items:
$ref: '#/components/schemas/Ioc'
description: Sample of up to 25 member IOCs, verbatim from the feed (same shape as `/v1/{time}`).
member_cluster_ids:
type: array
items:
type: string
description: IDs of the deterministic pre-grouping clusters merged into this campaign.
anchors:
type: object
description: Deterministic pre-grouping signals used before AI naming.
properties:
registered_domains:
type: array
items:
type: string
url_path_patterns:
type: array
items:
type: string
tags:
type: array
items:
type: string
families:
type: array
items:
type: string
description: 'Optional, only on an orphan hash/IP bucket: the malware
family local enrichment attributed those IOCs to. Such a
bucket has no domain/path/tag anchor - the shared family is
what makes it one campaign. Absent everywhere else.
'
example:
- Lumma
patterns:
type: array
maxItems: 3
description: 'Optional naming patterns: deterministic regexes generalised from
the campaign''s own registered domains (shared literal prefix and
suffix, one variable piece), each with evidence counts. Omitted
when no pattern passes the gates. Currently shadow upstream, so
absent on most documents. Attacker-derived text - treat as data.
'
items:
type: object
properties:
regex:
type: string
example: ^telegram[a-z]{2,5}\.top$
domain_count:
type: integer
description: Own registered domains the regex matches.
ioc_count:
type: integer
description: Own rows whose registered domain matches.
domains_elsewhere_30d:
type: integer
description: Unowned 30-day feed domains the regex also matches (leakage gate).
examples:
type: array
maxItems: 3
items:
type: string
first_seen:
type: string
format: date
nullable: true
last_seen:
type: string
format: date
nullable: true
history:
type: object
description: 'Optional 365-day evidence behind the 30-day card: a streaming
pass over the public year.csv attributing rows to this campaign
by exact registered domain or by one of its `patterns`. Omitted
when the yearly scan failed or timed out. Dates are `YYYY-MM-DD`.
'
properties:
window_days:
type: integer
example: 365
first_seen_365d:
type: string
format: date
last_seen_365d:
type: string
format: date
domains_365d:
type: integer
iocs_365d:
type: integer
iocs_before_window:
type: integer
description: Attributed rows that predate the 30-day window.
by_pattern:
type: array
items:
type: object
properties:
regex:
type: string
domains_365d:
type: integer
first_seen_365d:
type: string
format: date
related:
type: object
description: 'Optional cross-feed corroboration: phishunt.io detections active
at build time whose registered domain is one of the campaign''s
(`exact`) or matches one of its `patterns` (`pattern`). Never
members, never in `ioc_count`. Omitted when nothing matches or
the fetch failed. `matches` is capped at 10; `match_count` keeps
the uncapped total.
'
properties:
source:
type: string
example: phishunt.io
checked_at:
type: string
format: date-time
match_count:
type: integer
matches:
type: array
maxItems: 10
items:
type: object
properties:
domain:
type: string
match:
type: string
enum:
- exact
- pattern
company:
type: string
nullable: true
description: Brand phishunt.io attributed the detection to.
asn:
type: string
nullable: true
example: AS60631
responses:
NotModified:
description: 'The client''s cached copy is still current (matched via
`If-None-Match` or `If-Modified-Since`). No body is returned.
'
headers:
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/LastModified'
headers:
LastModified:
description: 'When this Worker cached the representation being returned - not
when the underlying data last changed (recomputed on every
pipeline tick, so it moves even on a byte-identical body). Echo it
back as `If-Modified-Since` to get a `304` while that cache entry
is still alive. `ETag` / `If-None-Match` is the stronger, recommended
validator; see its description for the RFC 7232 section 6
precedence rule.
'
schema:
type: string
example: Sun, 06 Jul 2026 08:49:37 GMT
ETag:
description: 'Strong validator (quoted hex string) for this exact response body.
Echo it back as `If-None-Match` on the next request to this URL to
get a `304` instead of re-downloading the body.
'
schema:
type: string
example: '"a1b2c3d4e5f60718"'
externalDocs:
description: API guide with copy-paste examples and FAQ.
url: https://tweetfeed.live/api/