{
  "openapi": "3.0.1",
  "info": {
    "title": "Interpol Red Notice & Wanted Persons Search",
    "description": "Search Interpol red notices and wanted persons database via API. Filter by name, nationality, age, sex, or free text. Returns full details: charges, arrest warrants, physical descriptions, photos, and nationalities. Ideal for compliance screening and investigations.",
    "version": "2.0",
    "x-build-id": "UpN0UZHbJ5ZA8Xv4R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~interpol-red-notices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-interpol-red-notices",
        "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/ryanclinton~interpol-red-notices/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-interpol-red-notices",
        "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/ryanclinton~interpol-red-notices/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-interpol-red-notices",
        "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": "Run mode",
            "enum": [
              "search",
              "screen"
            ],
            "type": "string",
            "description": "search = query Interpol with filters. screen = submit a batch of subjects and get ranked candidate matches with explainability.",
            "default": "search"
          },
          "noticeType": {
            "title": "Notice type",
            "enum": [
              "red",
              "yellow",
              "un"
            ],
            "type": "string",
            "description": "Which Interpol notice database to search. Red = wanted for arrest. Yellow = missing persons. UN = UN Security Council consolidated sanctions list (includes individuals and entities).",
            "default": "red"
          },
          "name": {
            "title": "Family name",
            "type": "string",
            "description": "Search mode only. Family name / surname to search for. Case-insensitive — Interpol stores names in uppercase Latin transliteration (e.g. SMITH, PETROV) but you can type any case."
          },
          "forename": {
            "title": "First name",
            "type": "string",
            "description": "Search mode only. First name / forename to search for. Case-insensitive."
          },
          "nationality": {
            "title": "Nationality",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Search mode only. Two-letter ISO 3166-1 country code (e.g. US, GB, DE, FR, RU). Uppercase or lowercase accepted."
          },
          "sexId": {
            "title": "Sex",
            "enum": [
              "M",
              "F"
            ],
            "type": "string",
            "description": "Search mode only. Filter by sex."
          },
          "ageMin": {
            "title": "Minimum age",
            "type": "integer",
            "description": "Search mode only. Minimum age of the subject."
          },
          "ageMax": {
            "title": "Maximum age",
            "type": "integer",
            "description": "Search mode only. Maximum age of the subject."
          },
          "freeText": {
            "title": "Free text search",
            "type": "string",
            "description": "Search mode only. Free text search across all notice fields (names, charges, marks, etc.)."
          },
          "issuingCountry": {
            "title": "Issuing country (post-filter)",
            "pattern": "^[A-Za-z]{2}$",
            "type": "string",
            "description": "Search mode post-filter. Two-letter ISO country code. Only return notices with at least one arrest warrant issued by this country. Applied after fetch."
          },
          "chargeContains": {
            "title": "Charge contains (post-filter)",
            "type": "string",
            "description": "Search mode post-filter. Case-insensitive substring. Only return notices whose charge text or translated charge contains this phrase (e.g. \"fraud\", \"terrorism\", \"homicide\"). Applied after fetch."
          },
          "subjects": {
            "title": "Subjects to screen (structured)",
            "type": "array",
            "description": "Screen mode only. Array of people (or entities) to screen against the selected Interpol notice database. Each subject can include: subjectId (your tracking ID), name (surname), forename, fullName, aliases, dateOfBirth, yearOfBirth, nationality (ISO2), sex (M/F), freeText. At minimum provide one of: name, forename, fullName, or freeText.",
            "default": []
          },
          "subjectsText": {
            "title": "Subjects to screen (paste)",
            "type": "string",
            "description": "Screen mode only. Paste one subject per line. Simple formats supported: just names (one per line) OR CSV/tab-separated 'name,ISO2,yearOfBirth'. Lines starting with # or // are treated as comments. Merged with the structured subjects array if both are provided."
          },
          "minMatchScore": {
            "title": "Minimum match score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Screen mode only. Candidates below this score (0.0–1.0) are excluded from output. 0.5 = balanced, 0.6–0.7 = tighter, 0.4 = looser (more false positives).",
            "default": 0.5
          },
          "candidatesPerSubject": {
            "title": "Candidates per subject",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Screen mode only. Maximum candidates returned per subject (sorted by match score, highest first). Default 5.",
            "default": 5
          },
          "emitNoMatchStubs": {
            "title": "Emit no-match rows",
            "type": "boolean",
            "description": "Screen mode only. When true, subjects with zero matches still appear in the dataset as stub rows with matchBand='none'. Useful for audit completeness; skip for cleaner output.",
            "default": false
          },
          "policyPreset": {
            "title": "Policy preset",
            "enum": [
              "strict-kyc",
              "balanced",
              "loose",
              "custom"
            ],
            "type": "string",
            "description": "Screen mode only. Bundle of matchConfig + decisionPolicy defaults for common use cases. strict-kyc = require nationality/sex/DOB match, treat possible as block. balanced = default-balanced (recommended). loose = no strict requirements, treat strong as review (journalism/research). custom = no preset, use your own matchConfig/decisionPolicy. Individual matchConfig / decisionPolicy fields override preset values.",
            "default": "balanced"
          },
          "matchConfig": {
            "title": "Match tuning (false-positive reduction)",
            "type": "object",
            "description": "Screen mode only. Overrides policyPreset match rules. Enable strict-match flags to disqualify candidates that fail key signals regardless of name similarity. Disqualified candidates receive matchScore=0, matchBand='none'."
          },
          "decisionPolicy": {
            "title": "Decision policy",
            "type": "object",
            "description": "Screen mode only. Overrides policyPreset decisions. Map each match band to a decision: 'block', 'review', or 'allow'. Unset bands fall back to preset defaults. Each candidate row gets decision / decisionReason / policyRuleId fields."
          },
          "watchlistId": {
            "title": "Watchlist ID",
            "type": "string",
            "description": "Screen mode only. Stable identifier for this screening watchlist. When set, the actor snapshots matches under this key and diffs subsequent runs — emits watchlistChangeType on each row: new-match / match-updated / match-removed. Great for 'monitor these 73 people forever' workflows."
          },
          "includeImages": {
            "title": "Include all photos",
            "type": "boolean",
            "description": "Fetch the full image gallery for each notice (not just the thumbnail). Adds one extra API call per notice.",
            "default": false
          },
          "diffMode": {
            "title": "Diff mode (new/updated/removed since last run)",
            "type": "boolean",
            "description": "Search mode only. Compare this run against the previous run with the same filters. Returns only notices that are new, updated (field-level), or removed since the last snapshot. The baseline is stored per search fingerprint in the key-value store — pair with a daily Apify schedule for automated monitoring.",
            "default": false
          },
          "diffKey": {
            "title": "Diff key (optional)",
            "type": "string",
            "description": "Custom key to store the diff baseline under. Leave blank to auto-derive from your search filters. Use a custom key when you want multiple schedules to share a baseline."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Search mode only. Maximum number of notices to fetch and return (1–500). Post-filters reduce this after fetch. Screening mode ignores this — use candidatesPerSubject instead.",
            "default": 20
          },
          "outputProfile": {
            "title": "Output profile (per-record field filter)",
            "enum": [
              "minimal",
              "standard",
              "llm",
              "full"
            ],
            "type": "string",
            "description": "Field-level filter applied at push time. 'minimal' = decision-only (recordType, eventId, fullName, matchScore, matchBand, decision, agentContract, summary, interpolUrl). 'standard' = adds risk/confidence/scoringTrace/eventTaxonomy + identity. 'llm' = LLM-friendly natural-language subset. 'full' = every field (default). Pair with outputMode-style downstream filtering.",
            "default": "full"
          },
          "includeAgentContract": {
            "title": "Include agentContract on every record",
            "type": "boolean",
            "description": "Add a top-level agentContract { decision, confidence, nextAction, costToAct } on every record (and run-level on SUMMARY) for MCP and AI-agent consumers. Maps decision + matchBand + matchScore to a stable enum.",
            "default": true
          },
          "scoringWeights": {
            "title": "Scoring weights (screen mode)",
            "type": "object",
            "description": "Override the default screen-mode scoring weights for power users. Default: name=0.55, nationality=0.15, sex=0.10, dob=0.20. Weights do not need to sum to 1 — final score is clamped to 0..1 with mismatch penalties."
          },
          "circuitBreakerThreshold": {
            "title": "Circuit breaker threshold (screen mode)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Abort the screen-mode batch after this many consecutive subject-fetch failures (proxy/network/upstream errors). 0 = disabled (continue through all subjects). Recommended: 3 for unattended schedules so a proxy outage doesn't burn the whole batch.",
            "default": 0
          },
          "webhookUrl": {
            "title": "Webhook URL (Slack or Discord)",
            "type": "string",
            "description": "Optional. Slack or Discord incoming webhook URL. Posts a rich embed with run decision + counts (blocked/review/new/updated) on screen mode, or new/updated/removed on diff search. Auto-detects vendor.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}