TweetFeed TweetFeed API

The TweetFeed API API from TweetFeed — 3 operation(s) for tweetfeed api.

GitHub OpenAPI

Operations 3

GET /v1/{time} List IOCs in a time window #
GET /v1/{time}/{filter1} List IOCs in a window, filtered once #
GET /v1/{time}/{filter1}/{filter2} List IOCs in a window, two filters AND-ed #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tweetfeed-live:tweetfeed-live-tweetfeed-api-api"
All apis
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.

Get an API 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 Specification

tweetfeed-live-tweetfeed-api-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TweetFeed 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: TweetFeed API
paths:
  /v1/{time}:
    get:
      operationId: getIocsByWindow
      summary: List IOCs in a time window
      description: 'Returns all IOCs that landed in the chosen time window. The `today` window

        is the current UTC calendar day (from 00:00 UTC, not a rolling 24 h),

        `week` the last 7 d, `month` the last 30 d, `year` the last 365 d.


        **Result cap: 10 000 rows.** A response that hits the cap is truncated

        from the OLDEST end, so you keep the most recent rows and lose the start

        of the window. In practice only the unfiltered `month` window exceeds it

        (14 936 rows on 2026-07-30, so roughly the first ten days of the window

        are dropped); `today`, `week` and every filtered variant are comfortably

        below it. Raising the cap is not possible on the Free plan: the month

        payload is already ~2.7 MB and is what trips the Worker''s 10 ms CPU

        budget.


        Every `200` reports what you actually got, so truncation is never

        silent: `X-Result-Count`, plus `X-Result-Window-Start` / `X-Result-Window-End`

        for the real date range of the payload, and `X-Result-Truncated: true`

        only when the cap was reached. **If you need the complete 30-day window,

        fetch the CSV feed at `https://tweetfeed.live/feeds/month.csv`** - it is

        served in full with no cap.


        Note: `year` returns `302` to the raw CSV on GitHub because the full year

        dataset exceeds the 10 ms CPU budget of the underlying Cloudflare Worker

        on the Free plan. Clients should follow redirects; the redirect target

        is a raw CSV, never defanged, regardless of `?defang=1`.'
      parameters:
      - $ref: '#/components/parameters/Time'
      - $ref: '#/components/parameters/Defang'
      - $ref: '#/components/parameters/IfNoneMatch'
      - $ref: '#/components/parameters/IfModifiedSince'
      responses:
        '200':
          description: JSON array of IOCs.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/LastModified'
            X-Result-Count:
              $ref: '#/components/headers/ResultCount'
            X-Result-Truncated:
              $ref: '#/components/headers/ResultTruncated'
            X-Result-Window-Start:
              $ref: '#/components/headers/ResultWindowStart'
            X-Result-Window-End:
              $ref: '#/components/headers/ResultWindowEnd'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Ioc'
              example:
              - date: '2026-05-21 09:13:00'
                user: malwrhunterteam
                type: url
                value: http://example.malicious/path
                tags:
                - phishing
                - scam
        '302':
          description: Only for `time=year`. Redirects to the raw CSV on GitHub.
          headers:
            Location:
              schema:
                type: string
                example: https://raw.githubusercontent.com/0xDanielLopez/TweetFeed/master/year.csv
        '304':
          $ref: '#/components/responses/NotModified'
        '400':
          $ref: '#/components/responses/DefangInvalid'
      tags:
      - TweetFeed API
  /v1/{time}/{filter1}:
    get:
      operationId: getIocsByWindowFilter
      summary: List IOCs in a window, filtered once
      description: 'Same as `/v1/{time}` but filtered by one of:

        - **IOC type** - `url`, `domain`, `ip`, `sha256`, `md5`

        - **Tag** - e.g. `phishing`, `cobaltstrike`, `lockbit`, `ransomware` (full

        taxonomy: 95 tags, see https://tweetfeed.live/tags/)

        - **Researcher handle** - must include the leading `@`, e.g.

        `@malwrhunterteam`'
      parameters:
      - $ref: '#/components/parameters/Time'
      - $ref: '#/components/parameters/Filter1'
      - $ref: '#/components/parameters/Defang'
      - $ref: '#/components/parameters/IfNoneMatch'
      - $ref: '#/components/parameters/IfModifiedSince'
      responses:
        '200':
          description: JSON array of IOCs.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/LastModified'
            X-Result-Count:
              $ref: '#/components/headers/ResultCount'
            X-Result-Truncated:
              $ref: '#/components/headers/ResultTruncated'
            X-Result-Window-Start:
              $ref: '#/components/headers/ResultWindowStart'
            X-Result-Window-End:
              $ref: '#/components/headers/ResultWindowEnd'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Ioc'
        '304':
          $ref: '#/components/responses/NotModified'
        '400':
          $ref: '#/components/responses/DefangInvalid'
      tags:
      - TweetFeed API
  /v1/{time}/{filter1}/{filter2}:
    get:
      operationId: getIocsByWindowTwoFilters
      summary: List IOCs in a window, two filters AND-ed
      description: 'Two filters combined with AND semantics. Common patterns:

        - **tag + type** - `/v1/week/phishing/url` (phishing URLs in last 7 d)

        - **tag + tag** - `/v1/month/cobaltstrike/c2`

        - **@user + type** - `/v1/today/@malwrhunterteam/sha256`'
      parameters:
      - $ref: '#/components/parameters/Time'
      - $ref: '#/components/parameters/Filter1'
      - $ref: '#/components/parameters/Filter2'
      - $ref: '#/components/parameters/Defang'
      - $ref: '#/components/parameters/IfNoneMatch'
      - $ref: '#/components/parameters/IfModifiedSince'
      responses:
        '200':
          description: JSON array of IOCs.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/LastModified'
            X-Result-Count:
              $ref: '#/components/headers/ResultCount'
            X-Result-Truncated:
              $ref: '#/components/headers/ResultTruncated'
            X-Result-Window-Start:
              $ref: '#/components/headers/ResultWindowStart'
            X-Result-Window-End:
              $ref: '#/components/headers/ResultWindowEnd'
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Ioc'
        '304':
          $ref: '#/components/responses/NotModified'
        '400':
          $ref: '#/components/responses/DefangInvalid'
      tags:
      - TweetFeed API
components:
  headers:
    ResultCount:
      description: Number of rows in this response.
      schema:
        type: integer
      example: 10000
    ResultWindowEnd:
      description: 'Date of the NEWEST row in this response. On a truncated

        `/v1/since/{datetime}` call this is where to resume: pass it back as

        the next `since` value to page forward through the remainder.

        '
      schema:
        type: string
      example: '2026-07-30 17:00:00'
    ResultTruncated:
      description: 'Present, with the value `true`, only when the 10 000-row cap was

        reached and rows were dropped. Absent means you received the whole

        window. It is never sent as `false`, so test for presence.

        '
      schema:
        type: string
        enum:
        - 'true'
      example: 'true'
    ResultWindowStart:
      description: 'Date of the OLDEST row in this response. When `X-Result-Truncated` is

        present on a `/v1/{time}` call this is later than the window you asked

        for, and the difference is exactly what the cap dropped.

        '
      schema:
        type: string
      example: '2026-07-11 21:34:00'
    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"'
  parameters:
    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"'
    Defang:
      name: defang
      in: query
      required: false
      description: 'Defang IOC values in the response body: `hxxps://evil[.]tld` and

        `1[.]2[.]3[.]4` instead of live, clickable values. `1` or `true`

        turns it on; absent, empty, `0` or `false` leaves the response

        byte-identical to the same request with no `defang` parameter. Any

        other value returns `400` with `{"error": "defang must be 1 or 0"}`.


        Transform: the scheme (`http://`, `https://`, `ftp://`, `ftps://`)

        becomes `hxxp://`, `hxxps://`, `fxp://`, `fxps://` (lowercased,

        only when followed by `://`); every literal `.` in the value

        becomes `[.]`, in the host, path and query alike. For example,

        `https://evil.tld/a.php?id=1.2` becomes

        `hxxps://evil[.]tld/a[.]php?id=1[.]2`, and `171.229.217.2` becomes

        `171[.]229[.]217[.]2`. Ports, `://` and `@` are left untouched, and

        hashes are unaffected (no `.` to defang). Reversible with

        CyberChef''s "Defang URL" / "Refang"

        recipes, or Python''s `iocextract` (`refang_data` for URLs,

        `refang_data(no_scheme=True)` for bare domains, `refang_ipv4` for

        IPs) - a value that already contains `[` or `]` is lossy under

        `iocextract`, a pre-existing library behaviour, not something this

        parameter introduces.


        Applies only to the fields that carry a live IOC value on each

        route (see each field''s own description below); never to

        `tweet`/`user`, `external[].link`, `net.*`, or `ai.summary` (which

        may still name a live hostname in prose). Accepted and validated

        on every route, but has no effect on the body of `/v1/campaigns`,

        `/v1/campaigns/iocs`, the blocklists, the RSS/CSV feeds, or

        TAXII/STIX.


        Same cache lifetime as the equivalent request without `defang` -

        `?defang=1` is cached as its own entry, separate from the plain

        response.

        '
      schema:
        type: string
        enum:
        - ''
        - '1'
        - 'true'
        - '0'
        - 'false'
      example: '1'
    Filter2:
      name: filter2
      in: path
      required: true
      description: Second filter, AND-ed with `filter1`. Same value space as `filter1`.
      schema:
        type: string
    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
    Time:
      name: time
      in: path
      required: true
      description: 'Time window for the query.


        `year` is only meaningful on the unfiltered `/v1/{time}` route. On the

        filtered routes it does NOT filter: the request still returns `302` to

        the full, unfiltered `year.csv`, so `/v1/year/phishing/url` yields every

        IOC of every type from every researcher. Filter the CSV client-side, or

        use `month` if a 30-day window is enough.

        '
      schema:
        type: string
        enum:
        - today
        - week
        - month
        - year
    Filter1:
      name: filter1
      in: path
      required: true
      description: 'First filter. Accepts an IOC type (`url`, `domain`, `ip`, `sha256`, `md5`),

        a tag (e.g. `phishing`, `cobaltstrike`), or a researcher handle prefixed

        with `@` (e.g. `@malwrhunterteam`).

        '
      schema:
        type: string
      examples:
        type:
          value: url
          summary: IOC type
        tag:
          value: phishing
          summary: Tag
        researcher:
          value: '@malwrhunterteam'
          summary: Researcher handle
  responses:
    DefangInvalid:
      description: '`defang` was present but not `1`, `true`, `0` or `false`.

        '
      content:
        application/json:
          schema:
            type: object
            required:
            - error
            properties:
              error:
                type: string
          example:
            error: defang must be 1 or 0
    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'
  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
externalDocs:
  description: API guide with copy-paste examples and FAQ.
  url: https://tweetfeed.live/api/