{"swagger": "2.0", "basePath": "/", "paths": {"/api/actors/": {"get": {"responses": {"200": {"description": "List of actors", "schema": {"type": "array", "items": {"$ref": "#/definitions/ActorSummary"}}}}, "description": "Return the list of all public threat actors with name, aliases and wanted status.", "operationId": "get_actors_list", "tags": ["ActorsAPI"]}}, "/api/actors/{name}": {"parameters": [{"description": "Actor name (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Actor not found or private"}, "200": {"description": "Actor details", "schema": {"$ref": "#/definitions/ActorDetail"}}}, "description": "Return full details for a threat actor including relations, wanted status and images.", "operationId": "get_actor_detail", "tags": ["ActorsAPI"]}}, "/api/compare": {"parameters": [{"description": "Entity type: \"group\" or \"market\" (default: group)", "name": "kind", "type": "string", "in": "query"}, {"description": "First entity name (required)", "name": "a", "type": "string", "in": "query"}, {"description": "Second entity name (required)", "name": "b", "type": "string", "in": "query"}], "get": {"responses": {"404": {"description": "One or both entities not found"}, "400": {"description": "Missing parameters"}, "200": {"description": "Comparison result", "schema": {"$ref": "#/definitions/CompareResponse"}}}, "description": "Compare two groups or markets side by side (post activity, mirrors, uptime, captcha, RaaS).", "operationId": "get_compare_endpoint", "tags": ["StatsAPI"]}}, "/api/crypto/": {"get": {"responses": {"200": {"description": "List of crypto groups", "schema": {"type": "array", "items": {"$ref": "#/definitions/CryptoGroup"}}}}, "description": "Return the list of all groups that have associated cryptocurrency wallets.", "operationId": "get_crypto_groups", "tags": ["CryptoAPI"]}}, "/api/crypto/addr/{chain}/{address}": {"parameters": [{"description": "Blockchain name (bitcoin, ethereum, \u2026)", "name": "chain", "in": "path", "required": true, "type": "string"}, {"description": "Wallet address", "name": "address", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Wallet not found"}, "200": {"description": "Wallet details with transactions", "schema": {"$ref": "#/definitions/WalletFull"}}}, "description": "Return full wallet details including transaction history.", "operationId": "get_crypto_address", "tags": ["CryptoAPI"]}}, "/api/crypto/chain/{chain}": {"parameters": [{"description": "Blockchain name (bitcoin, ethereum, litecoin, \u2026)", "name": "chain", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "No wallets found for this blockchain"}, "200": {"description": "List of wallets for this blockchain", "schema": {"type": "array", "items": {"$ref": "#/definitions/Wallet"}}}}, "description": "Return all wallet addresses for a given blockchain.", "operationId": "get_crypto_by_chain", "tags": ["CryptoAPI"]}}, "/api/crypto/links": {"parameters": [{"description": "(Optional) Filter links for a specific group", "name": "name", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Cross-group transaction links"}}, "description": "Find cross-group links via shared transaction addresses. Detects when a tracked address sends to or receives from another tracked address, potentially linking different ransomware groups.", "operationId": "get_crypto_links", "tags": ["CryptoAPI"]}}, "/api/crypto/links/{name}": {"parameters": [{"description": "(Optional) Filter links for a specific group", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Cross-group transaction links"}}, "description": "Find cross-group links via shared transaction addresses. Detects when a tracked address sends to or receives from another tracked address, potentially linking different ransomware groups.", "operationId": "get_crypto_links", "tags": ["CryptoAPI"]}}, "/api/crypto/recent": {"parameters": [{"description": "Maximum number of transactions to return (default 50, max 500)", "name": "limit", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Recent transactions", "schema": {"type": "array", "items": {"$ref": "#/definitions/Transaction"}}}}, "description": "Return the most recent transactions across all wallets.", "operationId": "get_crypto_recent", "tags": ["CryptoAPI"]}}, "/api/crypto/recent/{limit}": {"parameters": [{"description": "Maximum number of transactions to return (default 50, max 500)", "name": "limit", "in": "path", "required": true, "type": "integer"}], "get": {"responses": {"200": {"description": "Recent transactions", "schema": {"type": "array", "items": {"$ref": "#/definitions/Transaction"}}}}, "description": "Return the most recent transactions across all wallets.", "operationId": "get_crypto_recent", "tags": ["CryptoAPI"]}}, "/api/crypto/stats": {"get": {"responses": {"200": {"description": "Crypto statistics", "schema": {"$ref": "#/definitions/CryptoStats"}}}, "description": "Return global cryptocurrency statistics: address and transaction counts, broken down by blockchain.", "operationId": "get_crypto_stats", "tags": ["CryptoAPI"]}}, "/api/crypto/{name}": {"parameters": [{"description": "Group name or alias (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Group not found or has no wallets"}, "200": {"description": "Crypto details for the group", "schema": {"$ref": "#/definitions/CryptoDetail"}}}, "description": "Return all cryptocurrency wallets for a group, organized by blockchain.", "operationId": "get_crypto_detail", "tags": ["CryptoAPI"]}}, "/api/export/{database}": {"parameters": [{"description": "Database number: 0, 2, 3, 4, 5, 6, 10", "name": "database", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"403": {"description": "Database not allowed"}, "401": {"description": "API key required"}, "200": {"description": "Key-value dump of the database (object)"}}, "description": "Dump a full Redis database for reimport or offline analysis. Requires a valid API key (Authorization header). Private entries are filtered from groups (0), markets (3) and actors (5). Allowed databases: 0 (Groups \u2014 ransomware group metadata and locations), 2 (Posts \u2014 victim posts across all groups), 3 (Markets \u2014 market / forum metadata and locations), 4 (Leaks \u2014 data breach records), 5 (Actors \u2014 threat actor profiles and relations), 6 (Health \u2014 mirror uptime series (30-day daily)), 10 (Recorded Future \u2014 RF channel data).", "operationId": "get_exportdb", "security": [{"apikey": []}], "tags": ["GenericAPI"]}}, "/api/group-first-seen": {"get": {"responses": {"200": {"description": "Success"}}, "description": "Return the earliest discovered timestamp of each tracked group across the whole post database. Used by the /stats page to tell truly new groups apart from groups that merely resumed activity.", "operationId": "get_group_first_seen", "tags": ["GenericAPI"]}}, "/api/group/{name}": {"parameters": [{"description": "Name of the group (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Group not found, or private and the caller may not see it"}, "200": {"description": "Array [group_object, posts_array]"}}, "description": "Return group metadata, locations and associated posts.", "operationId": "get_groupinfo", "tags": ["GenericAPI"]}}, "/api/groups": {"get": {"responses": {"200": {"description": "List of group names (strings)"}}, "description": "Return the list of all public group names.", "operationId": "get_groups", "tags": ["GenericAPI"]}}, "/api/health/{name}": {"parameters": [{"description": "Group or market name (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "No health data found"}, "200": {"description": "Mirror health data", "schema": {"type": "array", "items": {"$ref": "#/definitions/HealthEntry"}}}}, "description": "Return 30-day uptime percentage and daily availability series for all mirrors of a group or market.", "operationId": "get_health_endpoint", "tags": ["StatsAPI"]}}, "/api/hot": {"parameters": [{"description": "Number of days to look back (1-365, default 7)", "name": "days", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Trending groups", "schema": {"$ref": "#/definitions/HotResponse"}}}, "description": "Return groups ranked by post activity over the last N days (default 7, max 365).", "operationId": "get_hot_endpoint", "tags": ["StatsAPI"]}}, "/api/hot/{days}": {"parameters": [{"description": "Number of days to look back (1-365, default 7)", "name": "days", "in": "path", "required": true, "type": "integer"}], "get": {"responses": {"200": {"description": "Trending groups", "schema": {"$ref": "#/definitions/HotResponse"}}}, "description": "Return groups ranked by post activity over the last N days (default 7, max 365).", "operationId": "get_hot_endpoint", "tags": ["StatsAPI"]}}, "/api/last": {"parameters": [{"description": "Number of days to look back (default 1).", "name": "number", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return posts discovered in the last X days.", "operationId": "get_last_post", "tags": ["GenericAPI"]}}, "/api/last/{number}": {"parameters": [{"description": "Number of days to look back (default 1).", "name": "number", "in": "path", "required": true, "type": "integer"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return posts discovered in the last X days.", "operationId": "get_last_post", "tags": ["GenericAPI"]}}, "/api/leaks/leaks": {"get": {"responses": {"200": {"description": "List of breaches", "schema": {"type": "array", "items": {"$ref": "#/definitions/LeakSummary"}}}}, "description": "Return the list of all known data breaches (id and name).", "operationId": "get_leaks", "tags": ["LeaksAPI"]}}, "/api/leaks/leaks/{id}": {"parameters": [{"description": "Numeric breach identifier", "name": "id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Breach not found"}, "200": {"description": "Breach details", "schema": {"$ref": "#/definitions/LeakDetail"}}}, "description": "Return full details for a specific breach.", "operationId": "get_leaks_details", "tags": ["LeaksAPI"]}}, "/api/market/{name}": {"parameters": [{"description": "Name of the market (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Market not found, or private and the caller may not see it"}, "200": {"description": "Array [market_object, posts_array]"}}, "description": "Return market metadata, locations and associated posts.", "operationId": "get_marketinfo", "tags": ["GenericAPI"]}}, "/api/markets": {"get": {"responses": {"200": {"description": "List of market names (strings)"}}, "description": "Return the list of all public market / forum names.", "operationId": "get_markets", "tags": ["GenericAPI"]}}, "/api/notes/": {"get": {"responses": {"200": {"description": "List of groups with notes", "schema": {"type": "array", "items": {"$ref": "#/definitions/NoteGroup"}}}}, "description": "Return the list of all groups that have associated ransom notes.", "operationId": "get_note_groups", "tags": ["NotesAPI"]}}, "/api/notes/group/{name}": {"parameters": [{"description": "Group name or alias (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "No notes found for this group"}, "200": {"description": "List of notes for this group", "schema": {"type": "array", "items": {"$ref": "#/definitions/NoteSummary"}}}}, "description": "Return all ransom notes associated with a specific group.", "operationId": "get_notes_by_group", "tags": ["NotesAPI"]}}, "/api/notes/recent": {"parameters": [{"description": "Number of notes to return (default 50)", "name": "number", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "List of recent notes", "schema": {"type": "array", "items": {"$ref": "#/definitions/Note"}}}}, "description": "Return the most recently added or updated ransom notes (default 50).", "operationId": "get_notes_recent", "tags": ["NotesAPI"]}}, "/api/notes/recent/{number}": {"parameters": [{"description": "Number of notes to return (default 50)", "name": "number", "in": "path", "required": true, "type": "integer"}], "get": {"responses": {"200": {"description": "List of recent notes", "schema": {"type": "array", "items": {"$ref": "#/definitions/Note"}}}}, "description": "Return the most recently added or updated ransom notes (default 50).", "operationId": "get_notes_recent", "tags": ["NotesAPI"]}}, "/api/notes/{note_id}": {"parameters": [{"description": "Note identifier", "name": "note_id", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Note not found"}, "200": {"description": "Note details", "schema": {"$ref": "#/definitions/Note"}}}, "description": "Return full details for a specific ransom note.", "operationId": "get_note_detail", "tags": ["NotesAPI"]}}, "/api/post/{name}": {"parameters": [{"description": "Name of the group or market (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}, {"description": "Exact post title, URL-encoded", "in": "query", "type": "string", "required": true, "name": "title"}], "get": {"responses": {"404": {"description": "Post not found"}, "400": {"description": "The title query parameter is missing or empty"}, "200": {"description": "Post object", "schema": {"$ref": "#/definitions/Post"}}}, "description": "Return one post, selected by its exact title given in the `title` query parameter. **Use this endpoint.** It reaches every post, whatever the title contains \u2014 slashes, newlines, raw HTML, quotes, non-ASCII. The other endpoint, GET /api/post/{name}/{postname}, puts the title in the URL path instead; a reverse proxy rewrites the path before the application sees it, so titles holding `//`, a leading or trailing `/`, or a newline cannot be requested that way at all. Example: /api/post/8base?title=JAI%20A%2FS", "operationId": "get_group_post_by_title", "tags": ["GenericAPI"]}}, "/api/post/{name}/{postname}": {"parameters": [{"description": "Name of the group or market (case-insensitive)", "name": "name", "in": "path", "required": true, "type": "string"}, {"description": "Exact post title. Slashes are allowed but see the note above.", "name": "postname", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Post not found"}, "200": {"description": "Post object", "schema": {"$ref": "#/definitions/Post"}}}, "description": "Return one post, selected by its title placed in the URL path. **Kept for backwards compatibility only \u2014 prefer GET /api/post/{name}?title=...** A reverse proxy rewrites the path before the application sees it, so a title containing `//`, a leading or trailing `/`, or a newline can never be requested here, no matter how it is encoded. Those titles do exist: query the group with GET /api/group/{name} to see them.", "operationId": "get_group_post", "tags": ["GenericAPI"]}}, "/api/posts": {"get": {"responses": {"200": {"description": "Posts matching the filter", "schema": {"$ref": "#/definitions/PostsStatResponse"}}}, "description": "Return posts with group_name and discovered timestamp, filtered by date range. Useful for statistics and charting.", "operationId": "get_posts", "parameters": [{"description": "Relative period in days (e.g. 7, 14, 30, 90). Default 30. Ignored if \"from\" and \"to\" are provided.", "name": "days", "type": "string", "in": "query"}, {"description": "Start date (YYYY-MM-DD) UTC (inclusive). Requires 'to'. If omitted, 'days' is used.", "name": "from", "type": "string", "in": "query"}, {"description": "End date (YYYY-MM-DD) UTC (inclusive). Requires 'from'. If omitted, 'days' is used.", "name": "to", "type": "string", "in": "query"}, {"description": "Comma-separated group names to include. Default: all groups.", "name": "groups", "type": "string", "in": "query"}], "tags": ["GenericAPI"]}}, "/api/posts/period/{start_date}/{end_date}": {"parameters": [{"description": "Start date (YYYY-MM-DD)", "name": "start_date", "in": "path", "required": true, "type": "string"}, {"description": "End date (YYYY-MM-DD)", "name": "end_date", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return all posts between two dates (inclusive, YYYY-MM-DD format).", "operationId": "get_post_per_period", "tags": ["GenericAPI"]}}, "/api/posts/{year}": {"parameters": [{"description": "Year (e.g. 2025)", "name": "year", "in": "path", "required": true, "type": "string"}, {"description": "Month 1-12 (optional)", "name": "month", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return all posts for a given year, or a specific month (YYYY/MM).", "operationId": "get_post_per_month", "tags": ["GenericAPI"]}}, "/api/posts/{year}/{month}": {"parameters": [{"description": "Year (e.g. 2025)", "name": "year", "in": "path", "required": true, "type": "string"}, {"description": "Month 1-12 (optional)", "name": "month", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return all posts for a given year, or a specific month (YYYY/MM).", "operationId": "get_post_per_month", "tags": ["GenericAPI"]}}, "/api/raas-rules/": {"get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/RaasGroup"}}}}, "description": "List the groups whose affiliate rules are recorded.", "operationId": "get_raas_index", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["RaasAPI"]}}, "/api/raas-rules/{name}": {"parameters": [{"description": "Group name", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"200": {"description": "Success", "schema": {"type": "array", "items": {"$ref": "#/definitions/RaasBlock"}}}, "404": {"description": "Unknown group, or one this caller may not see"}}, "description": "Every recorded version of a group's affiliate rules, current first, then newest dated, then undated.", "operationId": "get_raas_group", "parameters": [{"name": "X-Fields", "in": "header", "type": "string", "format": "mask", "description": "An optional fields mask"}], "tags": ["RaasAPI"]}}, "/api/recent": {"parameters": [{"description": "Number of posts to return (default 100).", "name": "number", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return the X most recent posts across all groups.", "operationId": "get_recent_post", "tags": ["GenericAPI"]}}, "/api/recent/{number}": {"parameters": [{"description": "Number of posts to return (default 100).", "name": "number", "in": "path", "required": true, "type": "integer"}], "get": {"responses": {"200": {"description": "List of posts", "schema": {"type": "array", "items": {"$ref": "#/definitions/Post"}}}}, "description": "Return the X most recent posts across all groups.", "operationId": "get_recent_post", "tags": ["GenericAPI"]}}, "/api/rf/leak/{name}": {"parameters": [{"description": "Channel name", "name": "name", "in": "path", "required": true, "type": "string"}], "get": {"responses": {"404": {"description": "Channel not found (returns {})"}, "200": {"description": "Channel details", "schema": {"$ref": "#/definitions/RFLeak"}}}, "description": "Return details for a specific Recorded Future channel.", "operationId": "get_rf_leakinfo", "tags": ["RecordedFutureAPI"]}}, "/api/rf/leaks": {"get": {"responses": {"200": {"description": "List of channel names (strings)"}}, "description": "Return the list of all Recorded Future channel names.", "operationId": "get_rf_leaks", "tags": ["RecordedFutureAPI"]}}, "/api/search": {"parameters": [{"description": "Search query (required, min 2 characters)", "name": "q", "type": "string", "in": "query"}], "get": {"responses": {"400": {"description": "Missing or too short query"}, "200": {"description": "Search results", "schema": {"$ref": "#/definitions/SearchResult"}}}, "description": "Search across groups, markets, posts, data breaches and ransom notes.", "operationId": "get_search_endpoint", "tags": ["StatsAPI"]}}, "/api/stats": {"get": {"responses": {"200": {"description": "Platform statistics", "schema": {"$ref": "#/definitions/Stats"}}}, "description": "Return aggregated platform statistics (group/market counts, post counts, mirror status).", "operationId": "get_stats_endpoint", "tags": ["StatsAPI"]}}, "/api/torrent/asn/{asn}": {"parameters": [{"description": "Autonomous System Number (with or without AS prefix).", "name": "asn", "in": "path", "required": true, "type": "string"}, {"description": "Response format: 'json' (default) or 'csv'.", "name": "format", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Everything known about an ASN: IPs and torrents observed.", "operationId": "get_asn_detail", "tags": ["TorrentHealth"]}}, "/api/torrent/health": {"parameters": [{"description": "Page number (default 1).", "name": "page", "type": "string", "in": "query"}, {"description": "Items per page (1-200, default 50).", "name": "per_page", "type": "string", "in": "query"}, {"description": "When 1, only include swarms with peers>0. Default 0 (all swarms).", "name": "alive", "type": "string", "in": "query"}, {"description": "Substring match against infohash, name, groups. Default: no filter.", "name": "q", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Paginated list of tracked swarms with last known state.", "operationId": "get_health_list", "tags": ["TorrentHealth"]}}, "/api/torrent/health/{infohash}": {"parameters": [{"description": "SHA-1 or SHA-256 infohash.", "name": "infohash", "in": "path", "required": true, "type": "string"}, {"description": "Number of historic scans to return (1-200, default 50).", "name": "history", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Full metadata + historic scans for one infohash.", "operationId": "get_health_detail", "tags": ["TorrentHealth"]}}, "/api/torrent/ip/{ip}": {"parameters": [{"description": "Peer IP address.", "name": "ip", "in": "path", "required": true, "type": "string"}, {"description": "Response format: 'json' (default) or 'csv'.", "name": "format", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Everything known about an IP: torrent associations, enrichment, group span.", "operationId": "get_ip_detail", "tags": ["TorrentHealth"]}}, "/api/torrent/ip/{ip}/timeline": {"parameters": [{"description": "Peer IP address.", "name": "ip", "in": "path", "required": true, "type": "string"}, {"description": "Time window in days (1-90, default 30).", "name": "days", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Success"}}, "description": "Daily observation counts over the last N days.", "operationId": "get_ip_timeline", "tags": ["TorrentHealth"]}}, "/api/torrent/top/asn": {"parameters": [{"description": "Max rows (1-500, default 50).", "name": "limit", "type": "string", "in": "query"}, {"description": "1 = rank by seeder IPs only. Default 0.", "name": "seed_only", "type": "string", "in": "query"}, {"description": "Time window in days. 0 or omitted = all time (default).", "name": "days", "type": "string", "in": "query"}, {"description": "Response format: 'json' (default) or 'csv'.", "name": "format", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Top ASNs", "schema": {"type": "array", "items": {"$ref": "#/definitions/TopAsn"}}}}, "description": "Top ASNs by distinct IPs observed on tracked swarms.", "operationId": "get_top_asn", "tags": ["TorrentHealth"]}}, "/api/torrent/top/cross-group": {"parameters": [{"description": "Max rows (1-500, default 50).", "name": "limit", "type": "string", "in": "query"}, {"description": "Response format: 'json' (default) or 'csv'.", "name": "format", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "IPs spanning multiple groups", "schema": {"type": "array", "items": {"$ref": "#/definitions/CrossGroupIp"}}}}, "description": "IPs observed seeding/leeching for 2+ distinct ransomware groups.", "operationId": "get_top_cross_group", "tags": ["TorrentHealth"]}}, "/api/torrent/top/ips": {"parameters": [{"description": "Max rows (1-500, default 50).", "name": "limit", "type": "string", "in": "query"}, {"description": "1 = rank by seeder appearances only. Default 0.", "name": "seed_only", "type": "string", "in": "query"}, {"description": "Time window in days. 0 or omitted = all time (default).", "name": "days", "type": "string", "in": "query"}, {"description": "Response format: 'json' (default) or 'csv'.", "name": "format", "type": "string", "in": "query"}], "get": {"responses": {"200": {"description": "Top IPs", "schema": {"type": "array", "items": {"$ref": "#/definitions/TopIp"}}}}, "description": "Top IPs by scan appearances. Optionally restrict to the last N days.", "operationId": "get_top_ips", "tags": ["TorrentHealth"]}}}, "info": {"title": "RansomLook API", "version": "2.1.0", "description": "API to query a RansomLook instance."}, "produces": ["application/json"], "consumes": ["application/json"], "securityDefinitions": {"apikey": {"type": "apiKey", "in": "header", "name": "Authorization"}}, "tags": [{"name": "StatsAPI", "description": "Statistics, trending and search API"}, {"name": "GenericAPI", "description": "Generic Ransomlook API"}, {"name": "ActorsAPI", "description": "Threat actor intelligence API"}, {"name": "CryptoAPI", "description": "Cryptocurrency wallet tracking API"}, {"name": "NotesAPI", "description": "Ransom notes API"}, {"name": "RaasAPI", "description": "Ransomware-as-a-Service affiliate rules"}, {"name": "LeaksAPI", "description": "Data breach / leak database API"}, {"name": "RecordedFutureAPI", "description": "Recorded Future integration API"}, {"name": "TorrentHealth", "description": "Torrent swarm health, peer enrichment and IP/ASN pivot"}], "definitions": {"Stats": {"properties": {"groups": {"type": "integer", "description": "Total number of groups"}, "groups_locations": {"type": "integer", "description": "Total group locations (unique FQDNs)"}, "groups_dls": {"type": "integer", "description": "DLS (leak site) mirrors"}, "groups_fs": {"type": "integer", "description": "File server mirrors"}, "groups_chat": {"type": "integer", "description": "Chat mirrors"}, "groups_admin": {"type": "integer", "description": "Admin panel mirrors"}, "groups_online": {"type": "integer", "description": "Currently reachable group mirrors"}, "markets": {"type": "integer", "description": "Total number of markets / forums"}, "markets_locations": {"type": "integer", "description": "Total market locations"}, "markets_online": {"type": "integer", "description": "Currently reachable market mirrors"}, "posts_total": {"type": "integer", "description": "Total posts across all time"}, "posts_24h": {"type": "integer", "description": "Posts discovered in the last 24 hours"}, "posts_month": {"type": "integer", "description": "Posts discovered this month"}, "posts_month_label": {"type": "string", "description": "Current month name"}, "posts_90d": {"type": "integer", "description": "Posts in the last 90 days"}, "posts_year": {"type": "integer", "description": "Posts this year"}, "year": {"type": "integer", "description": "Current year"}, "parsers": {"type": "integer", "description": "Number of active parsers"}}, "type": "object"}, "HotResponse": {"properties": {"days": {"type": "integer", "description": "Number of days in the window"}, "from_date": {"type": "string", "description": "Start date (YYYY-MM-DD)"}, "total_posts": {"type": "integer", "description": "Total posts in the window"}, "rows": {"type": "array", "items": {"$ref": "#/definitions/HotEntry"}}}, "type": "object"}, "HotEntry": {"properties": {"group": {"type": "string", "description": "Group name (lowercase)"}, "count": {"type": "integer", "description": "Number of posts in the period"}, "last_post": {"type": "string", "description": "Most recent post timestamp"}}, "type": "object"}, "SearchResult": {"properties": {"groups": {"type": "array", "description": "Matching groups", "items": {"type": "object"}}, "markets": {"type": "array", "description": "Matching markets / forums", "items": {"type": "object"}}, "posts": {"type": "array", "description": "Matching posts", "items": {"type": "object"}}, "leaks": {"type": "array", "description": "Matching data breaches", "items": {"type": "object"}}, "notes": {"type": "array", "description": "Matching ransom notes", "items": {"type": "object"}}}, "type": "object"}, "HealthEntry": {"properties": {"slug": {"type": "string", "description": "Mirror URL"}, "uptime_30d": {"type": "integer", "description": "Uptime percentage over last 30 days"}, "series": {"type": "array", "description": "Daily availability (0/1) for up to 90 days", "items": {"type": "integer"}}}, "type": "object"}, "CompareResponse": {"properties": {"kind": {"type": "string", "description": "Entity type (group or market)"}, "a": {"description": "First entity", "allOf": [{"$ref": "#/definitions/CompareEntry"}]}, "b": {"description": "Second entity", "allOf": [{"$ref": "#/definitions/CompareEntry"}]}}, "type": "object"}, "CompareEntry": {"properties": {"name": {"type": "string", "description": "Group or market name"}, "posts7": {"type": "integer", "description": "Posts in the last 7 days"}, "posts30": {"type": "integer", "description": "Posts in the last 30 days"}, "posts365": {"type": "integer", "description": "Posts in the last 365 days"}, "mirrors_total": {"type": "integer", "description": "Total visible mirrors"}, "mirrors_up": {"type": "integer", "description": "Currently reachable mirrors"}, "captcha": {"type": "boolean", "description": "Uses captcha"}, "raas": {"type": "boolean", "description": "Ransomware-as-a-Service"}, "uptime30": {"type": "integer", "description": "Average 30-day uptime percentage (null if no data)"}}, "type": "object"}, "Post": {"properties": {"post_title": {"type": "string", "description": "Title of the post"}, "discovered": {"type": "string", "description": "Discovery timestamp (ISO 8601)"}, "description": {"type": "string", "description": "Post description (may be empty)"}, "website": {"type": "string", "description": "Victim website (if known)"}, "link": {"type": "string", "description": "Original post URL (if available)"}, "screen": {"type": "string", "description": "Base64-encoded screenshot (if available)"}, "source": {"type": "string", "description": "Base64-encoded HTML source (if available)"}, "group_name": {"type": "string", "description": "Name of the group (injected on list endpoints)"}}, "type": "object"}, "PostsStatResponse": {"properties": {"posts": {"type": "array", "items": {"$ref": "#/definitions/PostStat"}}}, "type": "object"}, "PostStat": {"properties": {"group_name": {"type": "string", "description": "Group name"}, "post_title": {"type": "string", "description": "Title of the post"}, "discovered": {"type": "string", "description": "ISO 8601 UTC timestamp (Z suffix)"}}, "type": "object"}, "ActorSummary": {"properties": {"name": {"type": "string", "description": "Actor name"}, "aliases": {"type": "array", "description": "Known aliases", "items": {"type": "string"}}, "has_wanted": {"type": "boolean", "description": "True if actor appears on any wanted list"}}, "type": "object"}, "ActorDetail": {"properties": {"name": {"type": "string", "description": "Actor name"}, "aliases": {"type": "array", "description": "Known aliases", "items": {"type": "string"}}, "wanted": {"description": "Wanted list entries", "allOf": [{"$ref": "#/definitions/Wanted"}]}, "contacts": {"type": "object", "description": "Contact channels (telegram, email, x, \u2026)"}, "profile": {"type": "array", "description": "Profile links", "items": {"type": "string"}}, "relations": {"description": "Relations to groups/forums/peers", "allOf": [{"$ref": "#/definitions/Relations"}]}, "rel_groups_known": {"type": "array", "description": "Related groups that exist in DB", "items": {"type": "string"}}, "rel_groups_unknown": {"type": "array", "description": "Related groups not found in DB", "items": {"type": "string"}}, "rel_forums_known": {"type": "array", "description": "Related forums that exist in DB", "items": {"type": "string"}}, "rel_forums_unknown": {"type": "array", "description": "Related forums not found in DB", "items": {"type": "string"}}, "peers_known": {"type": "array", "description": "Peers that exist in DB", "items": {"type": "string"}}, "peers_unknown": {"type": "array", "description": "Peers not found in DB", "items": {"type": "string"}}, "images": {"type": "array", "description": "Image filenames in the actor logo directory", "items": {"type": "string"}}}, "type": "object"}, "Wanted": {"properties": {"fbi": {"description": "FBI wanted entry", "allOf": [{"$ref": "#/definitions/WantedEntry"}]}, "europol": {"description": "Europol wanted entry", "allOf": [{"$ref": "#/definitions/WantedEntry"}]}, "interpol": {"description": "Interpol wanted entry", "allOf": [{"$ref": "#/definitions/WantedEntry"}]}}, "type": "object"}, "WantedEntry": {"properties": {"url": {"type": "string", "description": "Wanted poster URL"}}, "type": "object"}, "Relations": {"properties": {"groups": {"type": "array", "description": "Linked ransomware groups", "items": {"type": "string"}}, "forums": {"type": "array", "description": "Linked markets / forums", "items": {"type": "string"}}, "peers": {"type": "array", "description": "Known peer actors", "items": {"type": "string"}}}, "type": "object"}, "CryptoStats": {"properties": {"total_addresses": {"type": "integer", "description": "Total number of tracked addresses"}, "total_transactions": {"type": "integer", "description": "Total number of tracked transactions"}, "by_chain": {"type": "object", "description": "Per-blockchain breakdown {chain: {addresses, transactions}}"}, "groups_with_crypto": {"type": "integer", "description": "Number of groups with at least one wallet"}}, "type": "object"}, "Wallet": {"properties": {"address": {"type": "string", "description": "Wallet address"}, "blockchain": {"type": "string", "description": "Blockchain name (bitcoin, ethereum, \u2026)"}, "group": {"type": "string", "description": "Associated group slug"}, "family": {"type": "string", "description": "Ransomware family name"}, "label": {"type": "string", "description": "Optional label"}, "source": {"type": "string", "description": "Data source (ransomwhe.re, ransomlook, \u2026)"}, "tx_count": {"type": "integer", "description": "Number of known transactions"}, "last_tx_time": {"type": "string", "description": "Timestamp of last known transaction"}, "risk_score": {"type": "integer", "description": "Risk score (0-100)"}}, "type": "object"}, "Transaction": {"properties": {"hash": {"type": "string", "description": "Transaction hash"}, "amount": {"type": "number", "description": "Transaction amount"}, "from": {"type": "string", "description": "Sender address"}, "to": {"type": "string", "description": "Recipient address"}, "time": {"type": "string", "description": "Transaction timestamp"}, "block": {"type": "integer", "description": "Block number"}, "fee": {"type": "number", "description": "Transaction fee"}, "source": {"type": "string", "description": "Data source"}}, "type": "object"}, "CryptoGroup": {"properties": {"name": {"type": "string", "description": "Canonical group name"}, "aliases": {"type": "array", "description": "Known aliases for this group", "items": {"type": "string"}}}, "type": "object"}, "CryptoDetail": {"properties": {"group": {"type": "string", "description": "Canonical group name"}, "aliases": {"type": "array", "description": "Known aliases", "items": {"type": "string"}}, "total": {"type": "integer", "description": "Total number of wallets"}, "by_chain": {"type": "object", "description": "Wallets grouped by blockchain {chain: [wallet, \u2026]}"}}, "type": "object"}, "WalletFull": {"properties": {"address": {"type": "string", "description": "Wallet address"}, "blockchain": {"type": "string", "description": "Blockchain name"}, "group": {"type": "string", "description": "Associated group slug"}, "family": {"type": "string", "description": "Ransomware family name"}, "label": {"type": "string", "description": "Optional label"}, "source": {"type": "string", "description": "Data source"}, "tx_count": {"type": "integer", "description": "Number of known transactions"}, "last_tx_time": {"type": "string", "description": "Timestamp of last known transaction"}, "risk_score": {"type": "integer", "description": "Risk score (0-100)"}, "transactions": {"type": "array", "description": "Transaction history", "items": {"$ref": "#/definitions/Transaction"}}}, "type": "object"}, "NoteGroup": {"properties": {"name": {"type": "string", "description": "Canonical group slug"}, "aliases": {"type": "array", "description": "Known aliases", "items": {"type": "string"}}}, "type": "object"}, "Note": {"properties": {"id": {"type": "string", "description": "Note identifier"}, "title": {"type": "string", "description": "Note title"}, "content": {"type": "string", "description": "Note content (plain text)"}, "format": {"type": "string", "description": "Content format (txt, md, \u2026)"}, "updated_at": {"type": "string", "description": "Last update timestamp"}, "groups": {"type": "array", "description": "Associated group names", "items": {"type": "string"}}}, "type": "object"}, "NoteSummary": {"properties": {"id": {"type": "string", "description": "Note identifier (use with /api/notes/<id>)"}, "name": {"type": "string", "description": "Note title"}, "content": {"type": "string", "description": "Note content (plain text)"}}, "type": "object"}, "RaasGroup": {"properties": {"name": {"type": "string", "description": "Group name"}, "blocks": {"type": "integer", "description": "Number of recorded rule versions"}, "latest": {"type": "string", "description": "Most recent start date, empty when none is dated"}, "has_current": {"type": "boolean", "description": "Whether one version is flagged as the current rules"}}, "type": "object"}, "RaasBlock": {"properties": {"id": {"type": "string", "description": "Block identifier"}, "content": {"type": "string", "description": "Rules body, as Markdown source"}, "comment": {"type": "string", "description": "Public editorial comment, may be empty"}, "started": {"type": "string", "description": "Date the version came into force (YYYY-MM-DD), empty when unknown"}, "current": {"type": "boolean", "description": "Whether this is the set of rules in force"}, "images": {"type": "array", "description": "Screenshot URLs", "items": {"type": "string"}}, "created_at": {"type": "string", "description": "Creation timestamp"}, "updated_at": {"type": "string", "description": "Last update timestamp"}}, "type": "object"}, "LeakSummary": {"properties": {"id": {"type": "integer", "description": "Numeric breach identifier"}, "name": {"type": "string", "description": "Breach name"}}, "type": "object"}, "LeakDetail": {"properties": {"name": {"type": "string", "description": "Breach name"}, "columns": {"type": "array", "description": "Column names exposed", "items": {"type": "string"}}, "records": {"type": "integer", "description": "Number of records"}, "domain": {"type": "string", "description": "Affected domain"}, "date": {"type": "string", "description": "Breach date"}, "description": {"type": "string", "description": "Breach description"}}, "type": "object"}, "RFLeak": {"properties": {"name": {"type": "string", "description": "Channel / leak name"}, "url": {"type": "string", "description": "Source URL"}, "type": {"type": "string", "description": "Channel type"}}, "type": "object"}, "TopIp": {"properties": {"ip": {"type": "string", "description": "Peer IP address"}, "count": {"type": "integer", "description": "Number of scan appearances"}, "torrents": {"type": "integer", "description": "Number of distinct torrents"}, "seed_torrents": {"type": "integer", "description": "Number of torrents where this IP seeded"}}, "type": "object"}, "TopAsn": {"properties": {"asn": {"type": "string", "description": "Autonomous System Number"}, "ips": {"type": "integer", "description": "Distinct IPs observed for this ASN"}, "torrents": {"type": "integer", "description": "Distinct torrents observed with an IP from this ASN"}, "seed_torrents": {"type": "integer", "description": "Torrents where at least one IP from this ASN seeded"}}, "type": "object"}, "CrossGroupIp": {"properties": {"ip": {"type": "string"}, "group_count": {"type": "integer", "description": "Number of ransomware groups this IP touched"}, "groups": {"type": "array", "items": {"type": "string"}}, "torrents": {"type": "integer"}, "seed_torrents": {"type": "integer"}}, "type": "object"}}, "responses": {"ParseError": {"description": "When a mask can't be parsed"}, "MaskError": {"description": "When any error occurs on mask"}}}
