Skip to content
OSINTtools.io

ThreatFox API

abuse.ch database of malware indicators (IPs, domains, URLs, hashes) shared by the community.

Base URL
https://threatfox-api.abuse.ch/api/v1
Sign-in
API key
Free tier
Free tier
Pricing
Free
Format
REST, Bulk files
Endpoints
1

Compiled by OSINTtools.io editors from threatfox.abuse.ch · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

ThreatFox is abuse.ch's community database of indicators of compromise (IOCs): botnet command-and-control addresses, malware URLs, domains and file hashes, each tied to a malware family, a threat type and a confidence level. An investigator can check whether an IP, domain, URL or hash has been reported.

Every call is an HTTP POST with a JSON body to https://threatfox-api.abuse.ch/api/v1/; a query field selects the operation. Send the key in the Auth-Key header; keys are free from the abuse.ch Authentication Portal (auth.abuse.ch). Since 2025-05-01 IOCs older than 6 months are not returned by the API. Submitting IOCs (submit_ioc) is documented but not covered here.

Quick start

  1. Get a key

    Create an account with ThreatFox and copy your api key (free tier). Where to get it

  2. Make your first request

    One endpoint, many queries: the body's query field picks search_ioc, search_hash, get_iocs, ioc or malwareinfo.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl -X POST 'https://threatfox-api.abuse.ch/api/v1/' \
      -H 'Auth-Key: YOUR_API_KEY' \
      -H 'Content-Type: application/json' \
      -d '{"query":"search_ioc","search_term":"example.com","exact_match":true}'
  3. Read the response

    A 200 response looks like this.

    {
      "query_status": "ok",
      "data": [
        {
          "id": "1001",
          "ioc": "example.com",
          "threat_type": "botnet_cc",
          "ioc_type": "domain",
          "malware": "win.example_family",
          "confidence_level": 50,
          "first_seen": "2026-11-01 12:00:00 UTC",
          "last_seen": null,
          "reporter": "example_reporter",
          "tags": [
            "exe"
          ]
        }
      ]
    }

Authentication

Send your API key in the Auth-Key header of every request.

Free key from the abuse.ch Authentication Portal.

Get a key from ThreatFox

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs beyond fair use. Commercial use may require abuse.ch's commercial API.

Free tier. Pricing: free.

Queries

Every call is POST to the same URL. query=search_ioc (search_term, exact_match; wildcard unless exact_match is true), search_hash (hash: MD5 or SHA256), get_iocs (days 1-7, default 3), ioc (id) or malwareinfo (malware: exact Malpedia name; limit default 100, max 1000). Responses have query_status ok and a data list.

Request body (JSON) · 8Show

querystringalways present

search_ioc, search_hash, get_iocs, ioc or malwareinfo

search_termstring

search_ioc: IP, domain, URL or hash to search

exact_matchboolean

search_ioc: default false (wildcard search)

hashstring

search_hash: MD5 or SHA256

daysinteger

get_iocs: 1-7, default 3

idinteger

ioc: IOC ID

malwarestring

malwareinfo: Malpedia family name

limitinteger

malwareinfo: default 100, max 1000

Response fields · 11Show

query_statusstring

ok on success

idstring

IOC ID

iocstring

The indicator

ioc_typestring

Indicator type, such as domain

threat_typestring

Threat type, such as botnet_cc

malwarestring

Malpedia malware name

confidence_levelinteger

Confidence 0-100

first_seenstring

When first seen (UTC)

last_seenstring

When last seen, or null

reporterstring

Reporter

tags[]string

Tags

curl -X POST 'https://threatfox-api.abuse.ch/api/v1/' \
  -H 'Auth-Key: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"query":"search_ioc","search_term":"example.com","exact_match":true}'
Replace YOUR_API_KEY with your key
Response
{
  "query_status": "ok",
  "data": [
    {
      "id": "1001",
      "ioc": "example.com",
      "threat_type": "botnet_cc",
      "ioc_type": "domain",
      "malware": "win.example_family",
      "confidence_level": 50,
      "first_seen": "2026-11-01 12:00:00 UTC",
      "last_seen": null,
      "reporter": "example_reporter",
      "tags": [
        "exe"
      ]
    }
  ]
}