---
name: tweetfeed-ioc-lookup
description: Look up one specific IOC (URL, domain, IP, MD5 or SHA-256 hash) in TweetFeed - the live 365-day window plus the pre-365-day archive - first seen, last seen, how many times it was reported, which researchers reported it, and optional AI-generated context. Invoke when the user asks "is this domain/IP/hash/URL in TweetFeed", "has this IOC been reported before", or wants a single-value exact-match check instead of browsing a time-windowed feed. Public HTTP API, no auth, CC0 licensed.
---

# TweetFeed IOC Lookup

Direct exact-match lookup over the full 365-day retention window, plus the pre-365-day archive, separate from the `/v1/{time}` route pattern used to browse the feed. Base: `https://api.tweetfeed.live/v1/ioc`.

## Route

```bash
curl -s 'https://api.tweetfeed.live/v1/ioc/example.com'

# equivalent query-parameter form, easier when the value needs URL-escaping
curl -s 'https://api.tweetfeed.live/v1/ioc?value=example.com'
```

Defanged input (`hxxp://`, `[.]`) is refanged server-side before matching, so `example[.]com` and `example.com` return the same result. `http://` and `https://` variants of a URL are treated the same way.

Add `?defang=1` to get defanged values back instead (`hxxps://evil[.]tld`) - for pasting into a ticket or report:

```bash
curl -s 'https://api.tweetfeed.live/v1/ioc?value=example.com&defang=1'
```

## Response shape

No match:

```json
{"found": false, "query": "example.com", "window": "365d", "records": []}
```

Match: `found` is `true`, `query` echoes the normalised value that was actually looked up, and `records` holds one aggregated entry per IOC type the value matched: `type`, `value`, `first_seen`, `last_seen`, `count`, `users` (reporter handles, capped at 10), `tags` (capped at 10), `tweets` (sample source tweet URLs, capped at 3) - not one row per posting like the `/v1/{time}` routes.

Optional sidecar fields, present only when data exists for that value:

- `ai`: AI-generated context from the enrichment job - `summary` (<=200 chars), `family` (malware family or null), `threat_type`, `confidence` (0-1).
- `related`: up to 5 other IOCs posted in the same source tweet(s) as the looked-up value.
- `external`: cross-feed corroboration from public abuse.ch feeds (URLhaus/ThreatFox/MalwareBazaar).
- `external_exclusive`: `false` when `external` has at least one entry, `true` when the cross-check resolved and none of the 5 tracked feeds (URLhaus, ThreatFox, MalwareBazaar, USOM, IPsum) lists the value, absent when unresolved or not found - set membership only, not a verdict.
- `net`: for IP lookups only - network metadata (org/ASN, country, city, or a `bogon` flag for reserved ranges) from ipinfo.io, refreshed every 6h. The optional `net.range` is the official published IP range of a known provider (for example AWS EC2 or GitHub Actions) that contains the IP; it describes the network, not the IOC.
- `reg`: for domain/url lookups only - RDAP registrar/creation-date/nameservers plus the IP(s)/ASN resolved at first-seen, plus `age_days_at_report` (UTC days between registration and the first TweetFeed report) and `newly_registered` (true when 30 days or less), covering the 30-day window.
- `archive`: hits older than the 365-day window, back to `first_date` in `TweetFeed/archive/meta.json` (coverage start moves daily). Reduced record schema - no `users`/`tweets`/`related` - each record has `type`, `value`, `first_seen`, `last_seen`, `count`, `tweet_id` (rebuild as `https://x.com/i/status/<tweet_id>`, can be empty) and up to 3 `tags` keeping their leading `#`; the block itself carries `window: "pre-365d"` and `total` (sum of the records' `count`). Additive to `found`/`records`, never merged with them - `found: true` and `archive` can both be present for the same value at once, with disjoint date ranges.
- `campaigns`: up to 3 published campaigns this IOC belongs to, newest `last_seen` first - each entry has `id` (`tfc-<12hex>`), `name`, `confidence` (`high`/`medium`/`low`), `threat_types`, `ioc_count` and `last_seen`. Present regardless of `found` - a value can be in a campaign while missing from the live 365-day window. Fetch `https://tweetfeed.live/campaigns/#<id>` for the full campaign document.

## Exact match, not substring

This endpoint matches the value exactly. For partial matches (every URL on a given host, for example) filter a time window client-side instead:

```bash
curl -s 'https://api.tweetfeed.live/v1/month' \
  | jq --arg v 'suspicious-domain.com' '[.[] | select(.value | contains($v))]'
```

## MCP equivalent

`enrich_ioc` tool: same exact 365-day-plus-archive lookup, auto-detects IOC type from the value, with a 30-day substring fallback on a miss. `check_url` / `check_ip` / `check_hash` are narrower 30-day substring-match variants for when the type is already known and an exact match isn't required (`check_ip`/`check_hash` still flag pre-365-day archive hits).

## Gotchas

- Response is a single object, not an array like the `/v1/{time}` routes.
- `query` in the response is the normalised value, which may differ from what you sent in (defanged input, scheme variants).
- `found: false` with empty `records` only means no match in the live 365-day window - check the optional `archive` block before treating that as "TweetFeed never saw this"; a value can be absent from `records` and still have `archive` hits, or even have both at once.

## License

IOC data is CC0 1.0 Universal (public domain). The `ai`/`external`/`net` sidecars are generated context, not canonical feed data, but are released under the same terms.

## Related pointers

- General feed queries (time-windowed, filterable): skill `tweetfeed-iocs`.
- Human API docs: `https://tweetfeed.live/api/`
- Source: `https://github.com/0xDanielLopez/TweetFeed` (CC0)
