{
  "openapi": "3.0.1",
  "info": {
    "title": "Dark Web Monitoring API: Leaked Credentials and Stealer Logs",
    "description": "Dark web monitoring API on your own Flare account: search leaked credentials by domain, email or password, stealer logs, Telegram, forum, paste and ransomware leak mentions of a domain, brand, IP or keyword, read your tenant feed and full events with severity. Bring your own key.",
    "version": "0.1",
    "x-build-id": "p5J0TwqDhAetaDolr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~dark-web-leaked-credentials-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-dark-web-leaked-credentials-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nabeelbaghoor~dark-web-leaked-credentials-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-dark-web-leaked-credentials-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nabeelbaghoor~dark-web-leaked-credentials-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-dark-web-leaked-credentials-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "eventSearch",
              "credentialSearch",
              "tenantEvents",
              "eventDetails"
            ],
            "type": "string",
            "description": "Each mode calls one documented read-only route of the Flare API with your own key. Nothing is created, changed, ignored or remediated in your Flare account. The two global searches count toward your Flare Global Search quota.",
            "default": "eventSearch"
          },
          "apiKey": {
            "title": "Flare API key",
            "type": "string",
            "description": "Your own Flare API key secret, generated on your Flare profile page (app.flare.io, Profile, API keys). It is exchanged for a one hour token at api.flare.io/tokens/generate, sent only in the Authorization header and removed from every log line. Leave empty to use the DATA_API_KEY secret."
          },
          "tenantId": {
            "title": "Tenant id",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. The numeric id of the Flare tenant to work in, from the Tenants section of your Flare profile page. Leave empty for the key's default tenant."
          },
          "searchType": {
            "title": "Event search type",
            "enum": [
              "domain",
              "email",
              "keyword",
              "query_string",
              "username",
              "brand",
              "ip",
              "bin",
              "secret",
              "azure_tenant",
              "name",
              "github_repository"
            ],
            "type": "string",
            "description": "Global event search and tenant feed. What each search value is. query_string takes Lucene syntax, for example conversation_name:\"Best Telegram Source\". name takes a first and last name, github_repository takes owner/name, secret searches for a password or API secret.",
            "default": "domain"
          },
          "credentialSearchType": {
            "title": "Credential search type",
            "enum": [
              "domain",
              "auth_domain",
              "email",
              "keyword",
              "secret"
            ],
            "type": "string",
            "description": "Leaked credential search. domain matches credentials whose email is on that domain; auth_domain matches the site the credential was used to log in to; keyword matches the username part before the @; secret matches a password.",
            "default": "domain"
          },
          "searchValues": {
            "title": "Search values",
            "type": "array",
            "description": "One value per line; each value is one search. For the tenant feed this is optional: leave it empty to read the whole feed.",
            "items": {
              "type": "string"
            }
          },
          "strictName": {
            "title": "Strict name match",
            "type": "boolean",
            "description": "Name searches only. Match the first and last name strictly.",
            "default": false
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Global event search and tenant feed. Only return these source types. The global search and the tenant feed document slightly different lists (lookalike and credential status types are tenant feed only; stealer_log, bot and bucket types are global search only). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "illicit_networks",
                "open_web",
                "leak",
                "domain",
                "listing",
                "forum_content",
                "blog_content",
                "blog_post",
                "profile",
                "chat_message",
                "ransomleak",
                "infected_devices",
                "financial_data",
                "bot",
                "stealer_log",
                "paste",
                "social_media",
                "source_code",
                "source_code_files",
                "stack_exchange",
                "google",
                "service",
                "buckets",
                "bucket",
                "bucket_object",
                "valid_credential",
                "invalid_credential",
                "mitigated_credential",
                "lookalike_discovery",
                "lookalike_title",
                "lookalike_ip_address",
                "lookalike_favicon",
                "lookalike_screenshot",
                "lookalike_dns",
                "lookalike_whois_rdap",
                "lookalike_ssl_certificate"
              ],
              "enumTitles": [
                "Illicit networks",
                "Open web",
                "Leak",
                "Domain",
                "Listing",
                "Forum content",
                "Blog content",
                "Blog post",
                "Profile",
                "Chat message",
                "Ransomleak",
                "Infected devices",
                "Financial data",
                "Bot",
                "Stealer log",
                "Paste",
                "Social media",
                "Source code",
                "Source code files",
                "Stack exchange",
                "Google",
                "Service",
                "Buckets",
                "Bucket",
                "Bucket object",
                "Valid credential",
                "Invalid credential",
                "Mitigated credential",
                "Lookalike discovery",
                "Lookalike title",
                "Lookalike ip address",
                "Lookalike favicon",
                "Lookalike screenshot",
                "Lookalike dns",
                "Lookalike whois rdap",
                "Lookalike ssl certificate"
              ]
            }
          },
          "severities": {
            "title": "Severities",
            "type": "array",
            "description": "Global event search and tenant feed. Only return events with one of these severities. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "info",
                "low",
                "medium",
                "high",
                "critical"
              ],
              "enumTitles": [
                "Info",
                "Low",
                "Medium",
                "High",
                "Critical"
              ]
            }
          },
          "eventStatuses": {
            "title": "Event statuses",
            "type": "array",
            "description": "Tenant feed only. Only return open, ignored or remediated events. Leave empty for the API default.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "ignored",
                "remediated"
              ],
              "enumTitles": [
                "Open",
                "Ignored",
                "Remediated"
              ]
            }
          },
          "tags": {
            "title": "Tenant tags",
            "type": "array",
            "description": "Tenant feed only. Only return events carrying these tenant tags.",
            "items": {
              "type": "string"
            }
          },
          "createdAfter": {
            "title": "From date",
            "type": "string",
            "description": "Only return events created on their source (or credentials imported) on or after this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 30d."
          },
          "createdBefore": {
            "title": "To date",
            "type": "string",
            "description": "Only return events created on their source (or credentials imported) on or before this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 1d."
          },
          "sortBy": {
            "title": "Tenant feed sort",
            "enum": [
              "matched_at",
              "estimated_created_at"
            ],
            "type": "string",
            "description": "Tenant feed only. The date the feed is sorted by.",
            "default": "matched_at"
          },
          "order": {
            "title": "Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Newest first (desc) or oldest first (asc).",
            "default": "desc"
          },
          "credentialInclude": {
            "title": "Extra credential fields",
            "type": "array",
            "description": "Leaked credential search. auth_domains adds up to 100 hosts the credential was seen being used on, known_password_id the id of the password, urls the login URLs.",
            "items": {
              "type": "string",
              "enum": [
                "auth_domains",
                "known_password_id",
                "urls"
              ],
              "enumTitles": [
                "Login hosts (auth domains)",
                "Known password id",
                "Login URLs"
              ]
            },
            "default": [
              "auth_domains"
            ]
          },
          "includePasswords": {
            "title": "Show passwords",
            "type": "boolean",
            "description": "Leaked credential search and event details. Off: passwords and hashes are masked to their first two characters in every row. On: they are kept in full. Leave off unless you need them for remediation.",
            "default": false
          },
          "eventUids": {
            "title": "Event UIDs",
            "type": "array",
            "description": "Event details only. One event UID per line, as the uid column of the search modes returns it, or a Flare event link.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most rows this run returns in total, across all search values. Global event search pages hold 10 events and every 100 results is one Global Search quota unit, so a low cap also limits quota use.",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}