API & MCP

Everything a person can do on IOC Defang and Refang, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

IOC Defang and Refang

Convert recognized HTTP URLs, email domains, domains and IPv4 addresses in pasted text between normal and bracket-dot defanged notation. Hashes and crypto identifiers stay unchanged.

Inputs of IOC Defang and Refang
FieldTypeDefaultDescription
texttextarea"Suspicious link hxxps://example[.]org/login and analyst@example.org. Host 192.0Text to inspect. Paste text you are authorized to review. No lookups are performed.
modeselect (defang, refang)"defang"Conversion

Example request

Defang a link

curl -X POST https://obscuriqiocconverter.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"text":"Visit https://example.org/path and mail analyst@example.org","mode":"defang"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "obscuriq-ioc-converter": { "type": "http", "url": "https://obscuriqiocconverter.usefulweb.site/mcp" }
  }
}