API Documentation
Query IP reputation scores and export threat feeds via a simple REST API. All responses are JSON unless otherwise noted. IP addresses are echoed in canonical form (compressed lowercase IPv6; IPv4-mapped addresses as dotted IPv4).
🔑 Authentication
Every endpoint except /badge requires an API key. Keys are provisioned from the admin dashboard, follow the format ti_<64hex>, and are shown only once, when created.
Send your key in the X-API-Key header:
X-API-Key: ti_your_api_key_here
Deprecated: the ?key= query parameter is still accepted (except by POST /check/bulk) for tools that cannot set headers, but it puts the raw key in the request URL, where server and proxy logs and browser history keep it. Every response to a request that carries ?key= includes Deprecation and Link: </docs#authentication>; rel="deprecation" headers. Move to the header, and rotate a key that has been sent in a URL.
A key can be limited to scopes: check:read (/check), bulk:read (/check/bulk), feed:read (/feed/* and /metrics), siem:read (/feed/cef, /feed/syslog) and account:read (/account). A key created without a scope list gets check:read and account:read; bulk lookups, feeds and the SIEM feeds must be granted explicitly. Only keys created before scopes were stored have full access (GET /account shows them as ["*"]).
Always call the API over HTTPS. A plain-HTTP request is answered with a 308 redirect to HTTPS, but by then a key sent in that request has already crossed the network unencrypted.
| Status | Meaning |
|---|---|
| 401 | No API key was sent, or the key has expired (the response then carries X-Key-Expired: true) |
| 403 | The key is unknown, malformed or revoked, or it lacks the endpoint's scope ("error": "Insufficient scope" with a required field) |
| 429 | The key's daily quota is used up, or a bulk request costs more than the quota left today |
Errors are JSON objects with an error field, except on the SIEM feeds, which answer in plain text. Unknown /api/v1/* paths and unsupported methods return 404. HEAD is accepted wherever GET is.
⚡ Rate Limits
Each API key has a daily quota (default: 100 requests/day; the admin can set 1–10,000 per key). Usage resets at 00:00 UTC. Most calls cost 1 unit; POST /check/bulk costs one unit per unique valid IP; GET /account and GET /badge are free. When the quota is used up, the API returns:
429 Too Many Requests { "error": "Daily rate limit exceeded", "usage": 100, "limit": 100 }
A call is charged before its lookup runs, so a /check or SIEM feed call that ends in 502, or a feed call that ends in 503, still costs its unit. POST /check/bulk charges the whole batch (one unit per unique valid IP) before any lookup; when that is more than the quota left today, nothing is charged and the response is:
429 Too Many Requests { "error": "Not enough daily quota left for this request", "usage": 95, "limit": 100, "requested": 20, "remaining": 5 }
Split the batch to fit remaining. Usage counters are aggregated per edge instance and can briefly lag under concurrent use. Call GET /account to check your headroom before large jobs, and contact the admin to request a higher quota.
🛡 Threat Levels
IP reputation is expressed as a score from 0 to 100, mapped to four threat levels:
🔎 Endpoints
Look up the threat reputation of a single IP address. Returns the cached verdict when there is one ("cached": true), otherwise a live weighted score from up to 11 IP reputation sources. The score reflects threat intelligence only, not this gateway's own allow/block lists. Scope: check:read. Cost: 1.
| Parameter | Type | Description |
|---|---|---|
| iprequired | string | IPv4 or IPv6 address to check |
| detailsoptional | boolean | true adds sourceDetails (per-source breakdown), totalReports and lastReportedAt |
curl "https://threatintel.furkandanis.com/api/v1/check?ip=8.8.8.8" \ -H "X-API-Key: ti_your_key"
{
"ok": true,
"ip": "8.8.8.8",
"score": 0,
"threatLevel": 0,
"threatLevelLabel": "CLEAN",
"sources": ["abuseipdb", "greynoise", "virustotal", "rtbh", "feodo", "rtbhcomtr", "tor", "blocklistde", "cinsarmy", "stopforumspam"],
"lastChecked": "2026-03-15T12:00:00.000Z",
"hitCount": 1,
"confidence": 100,
"categories": [],
"unknown": false,
"cached": false,
"checkedAt": "2026-03-15T12:00:00.000Z"
}
sources lists the sources consulted; confidence (0–100) is how far the sources that answered agree (a source without an API key on this deployment does not count as answering, nor, for an IPv6 address, does a blocklist without IPv6 entries: rtbh and rtbhcomtr always; tor, feodo, cinsarmy and blocklistde while their current list holds none); unknown is true when no source answered a live lookup — every source failed, timed out, has no key or does not cover the address — and the 0 score and CLEAN label are then placeholders, not a verdict (confidence is 0, nothing is cached, the call still costs its unit; retry later). A cached result always has "unknown": false, and /check/bulk results carry the same flag; hitCount counts this gateway's hits from the IP within its most recent 1-hour window (recorded at most once a minute), not a lifetime total; categories may contain TOR, BOTNET, SCANNER, FREQUENTLY_REPORTED, KNOWN_GOOD, VPN, DATACENTER, HOSTING. Errors: 400 invalid or missing ip, 502 lookup temporarily unavailable.
Same lookup and response as GET /check, with the IP in a JSON body — for clients behind proxies that strip query strings. Body limit 1 MB (413 above). Scope: check:read. Cost: 1.
| Body field | Type | Description |
|---|---|---|
| iprequired | string | IPv4 or IPv6 address to check |
| detailsoptional | boolean | true adds the per-source breakdown |
curl -X POST "https://threatintel.furkandanis.com/api/v1/check" \ -H "X-API-Key: ti_your_key" -H "Content-Type: application/json" \ -d '{"ip":"203.0.113.42"}'
Check up to 100 IPs in one request. The key must be sent in the X-API-Key header. Results are keyed by the canonical IP; invalid entries are keyed by the input and carry {"error": "invalid IP"}; duplicates are counted once. Add ?details=true for per-source breakdowns. Body limit 1 MB. Scope: bulk:read. Cost: one unit per unique valid IP, charged before any lookup; a batch that does not fit in the remaining quota gets 429 and is not charged.
curl -X POST "https://threatintel.furkandanis.com/api/v1/check/bulk" \ -H "X-API-Key: ti_your_key" -H "Content-Type: application/json" \ -d '{"ips":["203.0.113.42","198.51.100.7","not-an-ip"]}'
{
"ok": true,
"results": {
"203.0.113.42": { "ip": "203.0.113.42", "score": 92, "threatLevel": 3, "threatLevelLabel": "CRITICAL", "cached": true, ... },
"198.51.100.7": { "ip": "198.51.100.7", "score": 0, "threatLevel": 0, "threatLevelLabel": "CLEAN", "cached": false, ... },
"not-an-ip": { "error": "invalid IP" }
},
"meta": { "requestId": "...", "total": 3, "valid": 2, "invalid": 1, "duplicates": 0 }
}
Response headers include X-Request-Id and X-Duration-Ms.
Your key's name, daily limit, usage today, remaining quota, scopes and expiry. Free (no quota charged) and still answers once the quota is used up; an expired key gets 401. Scope: account:read.
{
"ok": true,
"keyName": "siem-prod",
"dailyLimit": 1000,
"usage": 212,
"remaining": 788,
"scopes": ["*"],
"expiresAt": null,
"createdAt": "2026-03-01T09:00:00.000Z",
"lastUsedAt": "2026-03-15T11:58:00.000Z"
}
Plain-text list of blocked IPs, one per line. Designed for direct ingestion by firewalls, iptables, or network appliances. Every feed contains the admin's manual blocks (score 100) plus cached IPs scoring at or above threshold, highest score first; admin-allowlisted IPs are never included. Up to about 5,000 entries, regenerated at most every 5 minutes (Cache-Control: public, max-age=300). A partial list is never published: when a rebuild fails, the last good build is served with X-Feed-Stale: true and Cache-Control: no-store, or, with no earlier build, 503 with Retry-After (keep your current list and retry; the call still costs its unit). Scope: feed:read. Cost: 1.
| Parameter | Type | Description |
|---|---|---|
| thresholdoptional | integer | Minimum score to include (default: 60). Plain integers only, clamped to 25–100; any other value uses the default. |
curl "https://threatintel.furkandanis.com/api/v1/feed/blocklist?threshold=60" \ -H "X-API-Key: ti_your_key"
# Content-Type: text/plain 203.0.113.42 198.51.100.7 2001:db8::5
CSV export with headers, same entries as the blocklist. Suitable for spreadsheets, SIEM imports, and data analysis tools. type is manual (admin block) or ti-cache (threat-intel verdict).
| Parameter | Type | Description |
|---|---|---|
| thresholdoptional | integer | Minimum score to include (default: 60; clamped to 25–100) |
curl "https://threatintel.furkandanis.com/api/v1/feed/csv?threshold=60" \ -H "X-API-Key: ti_your_key"
ip,score,threat_level,source,type,added_at,reason 203.0.113.42,100,CRITICAL,manual-blocklist,manual,2026-03-15T11:00:00.000Z,botnet-c2 198.51.100.7,85,MALICIOUS,abuseipdb+blocklistde,ti-cache,2026-03-15T10:30:00.000Z,
Structured JSON feed with metadata and entries array. Best for programmatic consumption and API integrations.
| Parameter | Type | Description |
|---|---|---|
| thresholdoptional | integer | Minimum score to include (default: 60; clamped to 25–100) |
curl "https://threatintel.furkandanis.com/api/v1/feed/json?threshold=60" \ -H "X-API-Key: ti_your_key"
{
"generated": "2026-03-15T12:00:00.000Z",
"threshold": 60,
"count": 2,
"entries": [
{
"ip": "203.0.113.42",
"score": 100,
"threatLevel": 3,
"levelLabel": "CRITICAL",
"source": "manual-blocklist",
"type": "manual",
"addedAt": "2026-03-15T11:00:00.000Z",
"reason": "botnet-c2"
},
{
"ip": "198.51.100.7",
"score": 85,
"threatLevel": 2,
"levelLabel": "MALICIOUS",
"source": "abuseipdb+blocklistde",
"type": "ti-cache",
"addedAt": "2026-03-15T10:30:00.000Z",
"reason": ""
}
]
}
The same entries in other formats, with the same threshold parameter, scope and cost: a STIX 2.1 bundle of indicators (application/stix+json, confidence = score) for Sentinel, OpenCTI or MISP; a MISP event with ip-dst attributes; and an ipset list, one IP per line, or ipset restore commands with ?syntax=batch. A batch adds IPv4 entries to the ti-blocklist set (family inet) and IPv6 entries to ti-blocklist6 (family inet6). Both sets are always created, so a feed with both address families restores cleanly; match ti-blocklist from iptables and ti-blocklist6 from ip6tables.
curl "https://threatintel.furkandanis.com/api/v1/feed/ipset?syntax=batch" \ -H "X-API-Key: ti_your_key" | ipset restore
create ti-blocklist hash:net family inet -exist create ti-blocklist6 hash:net family inet6 -exist add ti-blocklist 203.0.113.42 -exist add ti-blocklist6 2001:db8::5 -exist
Returns an SVG shield badge showing the IP's threat level. No API key required and no quota charged. Useful for embedding in dashboards or README files. The badge shows the level label only (never the score), from cached data; an IP that has never been checked shows CLEAN, and an invalid IP gets an "invalid ip" badge.
| Parameter | Type | Description |
|---|---|---|
| iprequired | string | IPv4 or IPv6 address to check |
curl "https://threatintel.furkandanis.com/api/v1/badge?ip=8.8.8.8"
Response: image/svg+xml, always 200 — cached for 60 seconds by browsers and 5 minutes by the CDN.
Common Event Format (CEF) export for SIEM integration. Returns recent gateway events, newest first, as CEF lines. Server-to-server only: there is no CORS support (browser preflight gets 405), and errors are plain text. The body is empty when the operator has not enabled event history; a failed event query answers 502 (the call still costs its unit), never an empty 200. Scope: siem:read. Cost: 1.
| Parameter | Type | Description |
|---|---|---|
| hoursoptional | integer | Time window in hours (default: 24). Integers are clamped to 1–168; any other value uses the default. |
| limitoptional | integer | Max events to return (default: 1000). Integers are clamped to 1–10000; any other value uses the default. |
curl "https://threatintel.furkandanis.com/api/v1/feed/cef?hours=12&limit=500" \ -H "X-API-Key: ti_your_key"
Syslog format export for SIEM integration. Same parameters, scope, cost and behaviour as the CEF endpoint.
| Parameter | Type | Description |
|---|---|---|
| hoursoptional | integer | Time window in hours (default: 24). Integers are clamped to 1–168; any other value uses the default. |
| limitoptional | integer | Max events to return (default: 1000). Integers are clamped to 1–10000; any other value uses the default. |
curl "https://threatintel.furkandanis.com/api/v1/feed/syslog?hours=24" \ -H "X-API-Key: ti_your_key"
Prometheus exposition format (text/plain; version=0.0.4): ti_requests_total{action}, ti_cache_total{type} and ti_source_queries_total{source,result}. Counters are kept per edge instance and reset when it restarts. Scope: feed:read. Cost: 1.
📈 Rate Limit Headers
Once your key has been validated, responses include rate limit headers so clients can track their quota usage:
| Header | Description |
|---|---|
| X-RateLimit-Limit | Daily request limit for your API key |
| X-RateLimit-Remaining | Quota left before this call was charged (after a successful call, subtract its cost) |
| X-RateLimit-Reset | Unix timestamp (seconds) of the next 00:00 UTC, when usage resets |
Sent on successful responses (except /metrics) and on errors returned after the key was accepted: 400, 413, 429, 502, 503, expired-key 401 and insufficient-scope 403. Not sent when the key is missing or invalid. The headers are not exposed to cross-origin browser scripts; use GET /account there.
▶ Try It
Test the IP reputation endpoint directly from your browser. Enter your API key and an IP address below. Each check costs 1 unit of your quota.
Learn more about how the threat intelligence pipeline works. Machine-readable spec: /openapi.json.
🔎 About Threat Intel