# ThreatFox API reference

> 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…

Source: https://osinttools.io/apis/threatfox/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/threatfox/

- Base URL: https://threatfox-api.abuse.ch/api/v1
- Authentication: API key in the `Auth-Key` header. Get a key: https://auth.abuse.ch/ Free key from the abuse.ch Authentication Portal.
- Free tier: yes
- Pricing: Free
- Rate limits: Not stated in the docs beyond fair use. Commercial use may require abuse.ch's commercial API.
- Vendor docs: https://threatfox.abuse.ch/api/

## Overview

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.

## Queries

### One endpoint, many queries: the body's query field picks search_ioc, search_hash, get_iocs, ioc or malwareinfo.

`POST /`

- Takes: IP address, Domain, URL, File
- Footprint: passive (the target is not contacted)

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.

Response fields:

- `query_status` (string): ok on success
- `data[].id` (string): IOC ID
- `data[].ioc` (string): The indicator
- `data[].ioc_type` (string): Indicator type, such as domain
- `data[].threat_type` (string): Threat type, such as botnet_cc
- `data[].malware` (string): Malpedia malware name
- `data[].confidence_level` (integer): Confidence 0-100
- `data[].first_seen` (string): When first seen (UTC)
- `data[].last_seen` (string): When last seen, or null
- `data[].reporter` (string): Reporter
- `data[].tags[]` (string): Tags

```bash
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}'
```

Example response (200):

```json
{
  "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"
      ]
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
