{
  "openapi": "3.0.1",
  "info": {
    "title": "Identity Risk Analyzer",
    "description": "Map anyone's digital footprint across 15+ platforms in seconds. Collects public profiles from social media, forums & dev platforms — runs identity clustering, risk scoring, breach detection, and generates an interactive graph. For security research, HR & fraud prevention.",
    "version": "0.0",
    "x-build-id": "FZlPQVEnGO3wH2cgU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rexreus~Identity-Risk-Analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rexreus-Identity-Risk-Analyzer",
        "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/rexreus~Identity-Risk-Analyzer/runs": {
      "post": {
        "operationId": "runs-sync-rexreus-Identity-Risk-Analyzer",
        "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/rexreus~Identity-Risk-Analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-rexreus-Identity-Risk-Analyzer",
        "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": {
          "name": {
            "title": "Full Name",
            "type": "string",
            "description": "Target's full name (optional). At least one of name, username, or email is required."
          },
          "username": {
            "title": "Username",
            "type": "string",
            "description": "Target's username. The Actor will automatically generate 10+ permutations (e.g. john_doe, johndoe, john.doe, johndoe1). At least one of name, username, or email is required."
          },
          "email": {
            "title": "Email Address",
            "type": "string",
            "description": "Target's email address. Used for breach check (requires hibpApiKey) and paste site search. At least one of name, username, or email is required."
          },
          "phone": {
            "title": "Phone Number",
            "type": "string",
            "description": "Target's phone number. Will be normalized to E.164 format automatically (e.g. +628123456789)."
          },
          "targets": {
            "title": "Batch Targets",
            "type": "array",
            "description": "Array of target objects for batch mode (max 20 targets). Each object may contain: name, username, email, phone. Cannot be used together with single-target fields."
          },
          "runMode": {
            "title": "Run Mode",
            "enum": [
              "quick",
              "deep",
              "custom"
            ],
            "type": "string",
            "description": "Scan depth and cost tier:\n• quick — 8 free platforms (Twitter/X via Nitter, Reddit, GitHub, StackOverflow, HackerNews, Medium, Telegram, Kaskus). No paid actor calls. ~60s runtime. Est. cost: Free.\n• deep — All 15 platforms including paid actors (Instagram, TikTok, LinkedIn, Facebook, YouTube, Pinterest, Quora) + breach + paste + domain + geolocation. ~300s runtime. Est. cost: $1.50–$3.00.\n• custom — Use the platforms and features parameters to select sources manually.",
            "default": "quick"
          },
          "platforms": {
            "title": "Platforms (custom mode only)",
            "type": "array",
            "description": "List of platforms to scan. Only used when runMode is 'custom' — ignored for quick/deep modes.\n\nFree (internal collectors, no Actor.call cost):\n• twitter — Nitter public instance (~free, ~15s)\n• reddit — Reddit JSON API (~free, ~10s)\n• github — GitHub public API (~free, ~10s)\n• stackoverflow — StackExchange API (~free, ~10s)\n• hackernews — Algolia HN API (~free, ~10s)\n• medium — RSS feed (~free, ~10s)\n• telegram — public scraper (~free, ~15s)\n• kaskus — custom scraper (~free, ~25s)\n\nPaid (third-party actors, incur Apify compute cost):\n• instagram (~$0.40, ~30s)\n• tiktok (~$0.40, ~30s)\n• linkedin (~$0.50, ~40s)\n• facebook (~$0.40, ~30s)\n• youtube (~$0.30, ~25s)\n• pinterest (~$0.30, ~25s)\n• quora (~$0.30, ~25s)"
          },
          "features": {
            "title": "Features (custom mode only)",
            "type": "array",
            "description": "Optional analysis features to enable. Only used when runMode is 'custom'. Cost per feature:\n• breachCheck — HIBP data breach lookup (requires hibpApiKey, +~$0.10)\n• pasteCheck — Pastebin + GitHub Gists search (free, direct HTTP)\n• domainAnalysis — WHOIS + DNS + reverse IP lookup (free, direct HTTP)\n• geolocation — Timezone/location inference from public metadata (free)\n• imageSearch — Reverse image search API (+$1.00, requires enableImageSearch: true)"
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "full",
              "summary"
            ],
            "type": "string",
            "description": "Controls the verbosity of the Dataset output record:\n• full — Includes all raw source data, profiles, and analysis results.\n• summary — Includes only clusters, risk score, and graphUrl (smaller output, faster downstream processing).",
            "default": "full"
          },
          "forceRefresh": {
            "title": "Force Refresh (bypass cache)",
            "type": "boolean",
            "description": "Set to true to bypass the 24-hour result cache and run a full fresh analysis. The new result will overwrite the existing cache entry.",
            "default": false
          },
          "clusteringThreshold": {
            "title": "Clustering Confidence Threshold",
            "minimum": 0.5,
            "maximum": 0.95,
            "type": "number",
            "description": "Minimum composite similarity score (0.50–0.95) required to auto-assign two accounts to the same identity cluster. Default: 0.75. Values below 0.60 may produce false-positive cluster assignments (a warning will be included in the output).",
            "default": 0.75
          },
          "hibpApiKey": {
            "title": "HaveIBeenPwned API Key",
            "type": "string",
            "description": "Required for data breach checking (breachCheck feature). Obtain your key at https://haveibeenpwned.com/API/Key. Without this key, breach check will be skipped."
          },
          "whoisApiKey": {
            "title": "WhoisFreaks API Key (optional)",
            "type": "string",
            "description": "Optional API key for WhoisFreaks WHOIS lookup (domainAnalysis feature). Without this key, the free tier is used which may have rate limits. Get your key at https://whoisfreaks.com."
          },
          "githubToken": {
            "title": "GitHub Personal Access Token (optional)",
            "type": "string",
            "description": "Optional GitHub token to increase API rate limit from 60 to 5000 requests/hour for GitHub profile lookups. Create one at https://github.com/settings/tokens (no scopes needed for public data)."
          },
          "enableImageSearch": {
            "title": "Enable Reverse Image Search",
            "type": "boolean",
            "description": "Submit collected profile images to a reverse image search API (+$1.00 per run). Note: perceptual hash (pHash) comparison between collected profiles is always performed for free regardless of this setting.",
            "default": false
          },
          "platformDelays": {
            "title": "Per-Platform Request Delays (ms)",
            "type": "object",
            "description": "Override default inter-request delays per platform (in milliseconds). Defaults: instagram=2000, twitter=1000, tiktok=2000, linkedin=3000, facebook=2000, youtube=1000, pinterest=2000, telegram=1000, reddit=1000, github=1000, stackoverflow=1000, quora=2000, medium=1000, hackernews=1000, kaskus=2000."
          },
          "platformTimeouts": {
            "title": "Per-Platform Sub-Actor Timeouts (ms)",
            "type": "object",
            "description": "Override default sub-Actor execution timeouts per platform (in milliseconds, custom mode only). Default: 120000ms for all platforms. Example: set github to 90000 for faster failure on slow API responses."
          },
          "delayBetweenTargets": {
            "title": "Delay Between Batch Targets (ms)",
            "type": "integer",
            "description": "Delay in milliseconds between processing each target in batch mode. Increase this value to reduce the risk of rate limiting across consecutive target runs. Default: 5000ms.",
            "default": 5000
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration override. Defaults: RESIDENTIAL proxy for social media platforms, DATACENTER proxy for API-based sources (WHOIS, HIBP, DNS). Residential proxy improves scraping reliability but increases cost."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}