TweetFeed Counts API

The Counts API from TweetFeed — 1 operation(s) for counts.

GitHub OpenAPI

Operations 1

GET /v1/counts Per-window totals, type/tag breakdowns and date bounds #

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-counts-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-counts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TweetFeed Counts 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: Counts
paths:
  /v1/counts:
    get:
      operationId: getCounts
      summary: Per-window totals, type/tag breakdowns and date bounds
      description: 'Returns pre-aggregated counts for the four standard windows

        (`today`, `week`, `month`, `year`): total IOCs, a per-type

        breakdown, a per-tag breakdown, and the first/last IOC timestamp

        in that window. Lets a client render dashboard-style stats without

        fetching and parsing the full `year` CSV (~120k rows). `today` also

        carries `hours` (24 counts by UTC hour), `week` and `month` carry

        `days` (count per UTC day) and `year` carries `months`. Regenerated

        every 15 minutes alongside the rest of the feed.'
      parameters:
      - $ref: '#/components/parameters/IfNoneMatch'
      - $ref: '#/components/parameters/IfModifiedSince'
      responses:
        '200':
          description: Counts document.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/LastModified'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountsDocument'
        '304':
          $ref: '#/components/responses/NotModified'
      tags:
      - Counts
components:
  schemas:
    CountsDays:
      type: object
      required:
      - days
      properties:
        days:
          type: array
          description: 'IOC count per UTC day, only present on `week` and `month`.

            Ascending by date; days with no IOCs are left out, so the

            array is empty when the window has no IOCs.

            '
          items:
            type: object
            required:
            - date
            - count
            properties:
              date:
                type: string
                format: date
                description: UTC day, `YYYY-MM-DD`.
                example: '2026-07-28'
              count:
                type: integer
                description: IOCs published on that day.
                example: 233
          example:
          - date: '2026-07-27'
            count: 201
          - date: '2026-07-28'
            count: 233
    CountsWindow:
      type: object
      required:
      - total
      - types
      - tags
      - first_date
      - last_date
      properties:
        total:
          type: integer
          description: Total IOC count in this window.
        types:
          type: object
          description: IOC count per type (`url`, `domain`, `ip`, `sha256`, `md5`).
          additionalProperties:
            type: integer
          example:
            url: 812
            domain: 301
            ip: 90
        tags:
          type: object
          description: 'IOC count per tag. Keys are lowercase and have no leading `#`

            (unlike the `tags` array on `Ioc`, which keeps the `#` prefix).

            '
          additionalProperties:
            type: integer
          example:
            phishing: 640
            malware: 210
        first_date:
          type: string
          nullable: true
          description: 'Timestamp of the earliest IOC in this window, `YYYY-MM-DD

            HH:MM:SS`. `null` when the window has no IOCs.

            '
          example: '2026-07-28 00:04:11'
        last_date:
          type: string
          nullable: true
          description: 'Timestamp of the most recent IOC in this window, `YYYY-MM-DD

            HH:MM:SS`. `null` when the window has no IOCs.

            '
          example: '2026-07-29 18:11:47'
    CountsDocument:
      type: object
      required:
      - generated_at
      - windows
      properties:
        generated_at:
          type: string
          format: date-time
          description: UTC timestamp this document was generated, `YYYY-MM-DDTHH:MM:SSZ`.
          example: '2026-07-29T18:15:03Z'
        tag_names:
          type: object
          additionalProperties:
            type: string
          description: 'Display spelling for each tag key used in `windows.*.tags` (keys there

            are lowercase without `#`): the most common spelling in the posts, with `#`.

            '
          example:
            cobaltstrike: '#CobaltStrike'
            phishing: '#phishing'
        windows:
          type: object
          required:
          - today
          - week
          - month
          - year
          description: One entry per standard time window.
          properties:
            today:
              allOf:
              - $ref: '#/components/schemas/CountsWindow'
              - type: object
                required:
                - hours
                properties:
                  hours:
                    type: array
                    minItems: 24
                    maxItems: 24
                    items:
                      type: integer
                    description: 'IOC count per UTC hour, only present on `today`.

                      Index `0` is 00:00-00:59 UTC, index `23` is

                      23:00-23:59 UTC. All zeros when the window has no

                      IOCs.

                      '
                    example:
                    - 12
                    - 8
                    - 5
                    - 0
                    - 3
                    - 9
                    - 14
                    - 11
                    - 10
                    - 18
                    - 16
                    - 13
                    - 15
                    - 12
                    - 19
                    - 17
                    - 11
                    - 10
                    - 11
                    - 0
                    - 0
                    - 0
                    - 0
                    - 0
            week:
              allOf:
              - $ref: '#/components/schemas/CountsWindow'
              - $ref: '#/components/schemas/CountsDays'
            month:
              allOf:
              - $ref: '#/components/schemas/CountsWindow'
              - $ref: '#/components/schemas/CountsDays'
            year:
              allOf:
              - $ref: '#/components/schemas/CountsWindow'
              - type: object
                required:
                - months
                properties:
                  months:
                    type: array
                    minItems: 12
                    maxItems: 12
                    items:
                      type: integer
                    description: 'IOC count per calendar month, only present on `year`.

                      Indexed by calendar month, NOT relative to the window:

                      index `0` is always January, index `11` is always

                      December, regardless of which month the document was

                      generated in.

                      '
                    example:
                    - 1203
                    - 980
                    - 1450
                    - 1102
                    - 1330
                    - 1560
                    - 1290
                    - 0
                    - 0
                    - 0
                    - 0
                    - 0
  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"'
    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
  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/